2020-10-08 13:58:19 +02:00
|
|
|
subdir('goat-exercises')
|
2023-12-17 11:06:22 -03:00
|
|
|
|
2024-08-12 09:56:42 +01:00
|
|
|
if not meson.is_cross_build() and is_variable('lua') and lua.found() and (platform_windows or not relocatable_bundle)
|
2023-12-17 11:06:22 -03:00
|
|
|
lua_config = configuration_data()
|
2024-08-09 14:32:28 +02:00
|
|
|
# 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
|
2023-12-17 11:06:22 -03:00
|
|
|
|
2024-08-09 14:32:28 +02:00
|
|
|
configure_file(input : 'lua.interp.in',
|
|
|
|
output: 'lua.interp',
|
|
|
|
configuration: lua_config,
|
|
|
|
install: true,
|
|
|
|
install_dir: gimpplugindir / 'interpreters')
|
|
|
|
endif
|