File: meson.build

package info (click to toggle)
weston 14.0.94-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 11,320 kB
  • sloc: ansic: 166,909; xml: 1,274; cpp: 480; python: 106; makefile: 39; sh: 39
file content (33 lines) | stat: -rw-r--r-- 786 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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'))