1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-05 21:02:42 +02:00
Files
gimp/data/environ/meson.build
Bruno Lopes ff1bd20577 data: Fix obscure environ files on Windows
Following 36b660e2b2

- PATH was being set due to the Installer and MSIX but
  on my tests on both relocatable and Unix-style builds it
  was bogus. C and Py plug-ins worked without problems
- Same aplies to GI_TYPELIB_PATH, it is obscure and useless
2025-06-20 16:30:34 -03:00

31 lines
776 B
Meson

#.env files read by gimp_environ_table_load_env_file in gimpenvirontable.c
install_data(
'default.env',
install_dir: gimpplugindir / 'environ',
)
if relocatable_bundle or platform_windows and not meson.is_cross_build()
pygimp_config = configuration_data()
if relocatable_bundle
pygimp_config.set('DONTWRITEBYTECODE_SETTING', 'PYTHONDONTWRITEBYTECODE=1')
else
pygimp_config.set('DONTWRITEBYTECODE_SETTING', '')
endif
if platform_windows
pygimp_config.set('HIGHDPI_SETTING', '__COMPAT_LAYER=HIGHDPIAWARE')
else
pygimp_config.set('HIGHDPI_SETTING', '')
endif
configure_file(
input : 'pygimp.env.in',
output: 'pygimp.env',
configuration: pygimp_config,
install: true,
install_dir: gimpplugindir / 'environ',
)
endif