Gimp/plug-ins/python/meson.build

47 lines
1,004 B
Meson
Raw Normal View History

if not have_python
subdir_done()
endif
2017-11-01 06:27:13 -07:00
plugins = [
{ 'name': 'colorxhtml' },
2017-11-01 06:27:13 -07:00
{ 'name': 'file-openraster' },
{ 'name': 'foggify' },
{ 'name': 'gradients-save-as-css' },
{ 'name': 'histogram-export' },
2017-11-01 06:27:13 -07:00
{ 'name': 'palette-offset' },
{ 'name': 'palette-sort' },
2017-11-01 06:27:13 -07:00
{ 'name': 'palette-to-gradient' },
{ 'name': 'python-eval' },
2017-11-01 06:27:13 -07:00
{ 'name': 'spyro-plus' },
]
if not stable
plugins += [
{ 'name': 'benchmark-foreground-extract' }
2017-11-01 06:27:13 -07:00
]
endif
subdir('python-console')
foreach plugin : plugins
name = plugin.get('name')
srcs = plugin.get('srcs', name + '.py')
install_data(srcs, install_dir: gimpplugindir / 'plug-ins' / name,
install_mode: 'rwxr-xr-x')
2017-11-01 06:27:13 -07:00
endforeach
if python.found()
python_config = configuration_data()
python_config.set('PYTHON_PATH', python.path())
configure_file(
input : 'pygimp.interp.in',
2017-11-01 06:27:13 -07:00
output: 'pygimp.interp',
configuration: python_config,
2017-11-01 06:27:13 -07:00
install: true,
install_dir: gimpplugindir / 'interpreters',
)
endif