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