Gimp/extensions/meson.build
Jehan 063324cff0 extensions: install the lua interpreter for all non-relocatable builds.
As discussed in #11876, the interp files work fine on Linux (and other
platforms) too, and this allows to properly redirect to the working
interpreter found at configure time, without touching the scripts'
shebang.
2024-08-09 16:31:00 +02:00

19 lines
644 B
Meson

subdir('goat-exercises')
if not meson.is_cross_build() 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