
Now that we bumped our meson requirement, meson is complaining about several features now deprecated even in the minimum required meson version: s/meson.source_root/meson.project_source_root/ to fix: > WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.56.0': meson.source_root. use meson.project_source_root() or meson.global_source_root() instead. s/meson.build_root/meson.project_build_root/ to fix: > WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.56.0': meson.build_root. use meson.project_build_root() or meson.global_build_root() instead. Fixing using path() on xdg_email and python ExternalProgram variables: > WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead s/get_pkgconfig_variable *(\([^)]*\))/get_variable(pkgconfig: \1)/ to fix: > WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.56.0': dependency.get_pkgconfig_variable. use dependency.get_variable(pkgconfig : ...) instead
41 lines
922 B
Meson
41 lines
922 B
Meson
if not have_python
|
|
subdir_done()
|
|
endif
|
|
|
|
plugins = [
|
|
{ 'name': 'colorxhtml' },
|
|
{ 'name': 'file-openraster' },
|
|
{ 'name': 'foggify' },
|
|
{ 'name': 'gradients-save-as-css' },
|
|
{ 'name': 'histogram-export' },
|
|
{ 'name': 'palette-offset' },
|
|
{ 'name': 'palette-sort' },
|
|
{ 'name': 'palette-to-gradient' },
|
|
{ 'name': 'python-eval' },
|
|
{ 'name': 'spyro-plus' },
|
|
]
|
|
|
|
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')
|
|
endforeach
|
|
|
|
|
|
if python.found()
|
|
python_config = configuration_data()
|
|
python_config.set('PYTHON_PATH', python.full_path())
|
|
|
|
configure_file(
|
|
input : 'pygimp.interp.in',
|
|
output: 'pygimp.interp',
|
|
configuration: python_config,
|
|
install: true,
|
|
install_dir: gimpplugindir / 'interpreters',
|
|
)
|
|
endif
|