gimp/plug-ins/python/meson.build

53 lines
1.1 KiB
Meson
Raw Normal View History

if not have_python
subdir_done()
endif
2017-11-01 14:27:13 +01:00
plugins = [
{ 'name': 'colorxhtml' },
2017-11-01 14:27:13 +01:00
{ 'name': 'file-openraster' },
{ 'name': 'foggify' },
{ 'name': 'gradients-save-as-css' },
2017-11-01 14:27:13 +01:00
{ 'name': 'palette-offset' },
{ 'name': 'palette-sort' },
2017-11-01 14:27:13 +01:00
{ 'name': 'palette-to-gradient' },
{ 'name': 'py-slice' },
{ 'name': 'python-eval' },
2017-11-01 14:27:13 +01:00
{ 'name': 'spyro-plus' },
# { 'name': 'histogram-export' },
]
if not stable
plugins += [
{ 'name': 'benchmark-foreground-extract' }
2017-11-01 14:27:13 +01:00
# { 'name': 'clothify', },
# { 'name': 'shadow_bevel', },
# { 'name': 'sphere', },
# { 'name': 'whirlpinch', },
]
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 14:27:13 +01: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 14:27:13 +01:00
output: 'pygimp.interp',
configuration: python_config,
2017-11-01 14:27:13 +01:00
install: true,
install_dir: gimpplugindir / 'interpreters',
)
endif