weston/lua-shell/meson.build
Derek Foreman e91eccd709 lua-shell: Add lua-shell
lua-shell is a new meta-shell for Weston. It does nothing in and of
itself, but is defined to be user-scriptable and configurable. A
supplied Lua script will be interpreted and executed by Weston, allowing
full control over window management in response to events.

This includes a shell.lua example script which behaves as a tiling WM.

Co-authored-by: Michael Tretter <m.tretter@pengutronix.de>
Co-authored-by: Marius Vlad <marius.vlad@collabora.com>
Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
2025-06-04 15:47:06 +03:00

33 lines
786 B
Meson

if not get_option('shell-lua')
subdir_done()
endif
config_h.set('BUILD_LUA_SHELL', '1')
dep_lua = dependency('lua', version: '>= 5.4', required: false)
if not dep_lua.found()
error('lua-shell requires Lua >= 5.4 which was not found. Or, you can use \'-Dshell-lua=false\'.')
endif
srcs_shell_lua = [
'lua-shell.c',
]
deps_shell_lua = [
dep_libm,
dep_libexec_weston,
dep_libshared,
dep_libweston_public,
dep_lua,
]
plugin_shell_lua = shared_library(
'lua-shell',
srcs_shell_lua,
include_directories: common_inc,
dependencies: deps_shell_lua,
name_prefix: '',
install: true,
install_dir: dir_module_weston,
install_rpath: '$ORIGIN'
)
env_modmap += 'lua-shell.so=@0@;'.format(plugin_shell_lua.full_path())
install_data('shell.lua', install_dir: get_option('libexecdir'))