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