mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
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.
This commit is contained in:
parent
7fd75ee074
commit
063324cff0
2 changed files with 20 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
||||||
lua=@LUA_PATH@luajit.exe
|
lua=@LUA_PATH@
|
||||||
luajit=@LUA_PATH@luajit.exe
|
luajit=@LUA_PATH@
|
||||||
/usr/bin/luajit=@LUA_PATH@luajit.exe
|
/usr/bin/luajit=@LUA_PATH@
|
||||||
/usr/bin/lua=@LUA_PATH@luajit.exe
|
/usr/bin/lua=@LUA_PATH@
|
||||||
:Lua:E::lua::luajit:
|
:Lua:E::lua::@LUA_PATH@:
|
||||||
|
|
|
@ -1,15 +1,19 @@
|
||||||
subdir('goat-exercises')
|
subdir('goat-exercises')
|
||||||
|
|
||||||
# Fallback fix to the problem of non-configured interpreters
|
if not meson.is_cross_build() and lua.found() and (platform_windows or not relocatable_bundle)
|
||||||
if platform_windows and not meson.is_cross_build() and lua.found()
|
|
||||||
lua_config = configuration_data()
|
lua_config = configuration_data()
|
||||||
lua_config.set('LUA_PATH', '')
|
# 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(
|
configure_file(input : 'lua.interp.in',
|
||||||
input : 'lua.interp.in',
|
output: 'lua.interp',
|
||||||
output: 'lua.interp',
|
configuration: lua_config,
|
||||||
configuration: lua_config,
|
install: true,
|
||||||
install: true,
|
install_dir: gimpplugindir / 'interpreters')
|
||||||
install_dir: gimpplugindir / 'interpreters',
|
endif
|
||||||
)
|
|
||||||
endif
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue