Gimp/extensions/meson.build
Bruno Lopes 0c70a9fe00
app, build, plug-ins: Run interpreters conditionally on Windows console
Closes: #12642

Now, we will check at runtime if GIMP is not on a console and
use the corresponding _win.interp file on such case only.
2025-11-09 15:56:32 -03:00

20 lines
762 B
Meson

subdir('goat-exercises')
#.interp file read by gimp_interpreter_db_load_interp_file in gimpinterpreterdb.c
if have_lua and not meson.is_cross_build() and is_variable('lua') and lua.found() and (platform_windows or not relocatable_bundle)
lua_config = configuration_data()
# For Windows, we set the binary name only.
# For other OSes, we use the full path (when not in a relocatable
# bundle).
if platform_windows
lua_config.set('LUA_PATH', lua_bin + '.exe')
else
lua_config.set('LUA_PATH', lua.full_path())
endif
configure_file(input : 'lua.interp.in',
output: 'lua.interp',
configuration: lua_config,
install: true,
install_dir: gimpplugindir / 'interpreters')
endif