2020-07-08 10:43:31 +02:00
|
|
|
if not have_python
|
|
|
|
subdir_done()
|
|
|
|
endif
|
2017-11-01 14:27:13 +01:00
|
|
|
|
|
|
|
plugins = [
|
2019-12-14 13:19:44 +01:00
|
|
|
{ 'name': 'colorxhtml' },
|
2017-11-01 14:27:13 +01:00
|
|
|
{ 'name': 'file-openraster' },
|
|
|
|
{ 'name': 'foggify' },
|
2019-09-15 10:17:29 +02:00
|
|
|
{ 'name': 'gradients-save-as-css' },
|
2017-11-01 14:27:13 +01:00
|
|
|
{ 'name': 'palette-offset' },
|
2020-05-04 19:03:22 +03:00
|
|
|
{ 'name': 'palette-sort' },
|
2017-11-01 14:27:13 +01:00
|
|
|
{ 'name': 'palette-to-gradient' },
|
|
|
|
{ 'name': 'py-slice' },
|
2019-12-16 02:11:10 +02:00
|
|
|
{ 'name': 'python-eval' },
|
2017-11-01 14:27:13 +01:00
|
|
|
{ 'name': 'spyro-plus' },
|
|
|
|
|
|
|
|
# { 'name': 'histogram-export' },
|
|
|
|
]
|
|
|
|
|
|
|
|
if not stable
|
|
|
|
plugins += [
|
2020-01-08 00:16:40 +02:00
|
|
|
{ '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')
|
|
|
|
|
2019-11-26 20:24:28 +01:00
|
|
|
install_data(srcs, install_dir: gimpplugindir / 'plug-ins' / name,
|
2019-12-25 11:51:56 +01:00
|
|
|
install_mode: 'rwxr-xr-x')
|
2017-11-01 14:27:13 +01:00
|
|
|
endforeach
|
|
|
|
|
|
|
|
|
|
|
|
if python.found()
|
2020-07-08 10:43:31 +02:00
|
|
|
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',
|
2020-07-08 10:43:31 +02:00
|
|
|
configuration: python_config,
|
2017-11-01 14:27:13 +01:00
|
|
|
install: true,
|
|
|
|
install_dir: gimpplugindir / 'interpreters',
|
|
|
|
)
|
|
|
|
endif
|