diff options
author | Daniel Kolesa <d.kolesa@samsung.com> | 2020-06-06 19:09:21 +0200 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@samsung.com> | 2020-06-06 19:28:26 +0200 |
commit | c3a1060b94ae9df82e8406b481e8bd5fe5741df5 (patch) | |
tree | ecdbdd44fa4e58e9f415549dcf77873787e54c58 /meson.build | |
parent | 628268a102dde3b94b74f1652c6a5e56c2810cb6 (diff) | |
download | efl-c3a1060b94ae9df82e8406b481e8bd5fe5741df5.tar.gz |
build: disable elua by default, plus nicer detection
Elua is now disabled by default. There are some other changes:
1) Elua scripts are only installed if Elua is enabled
2) Lua bindings are only installed if Elua is enabled
3) Elua with interpreter is clearly experimental and will message
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 3585eabdef..f820761ade 100644 --- a/meson.build +++ b/meson.build @@ -270,6 +270,7 @@ luaold_interpreters = [ ] lua_pc_name = '' +have_elua = get_option('elua') if get_option('lua-interpreter') == 'lua' config_h.set('ENABLE_LUA_OLD', '1') @@ -280,13 +281,27 @@ if get_option('lua-interpreter') == 'lua' break endif endforeach + if not lua.found() + error('Lua not found') + endif + if have_elua + luaver_min = cc.compute_int('LUA_VERSION_NUM - 500', + prefix: '#include <lua.h>', dependencies: lua + ) + lua_ffi = dependency('cffi-lua-5.@0@'.format(luaver_min), required: false) + if not lua_ffi.found() + error('Elua with interpreter is experimental, disable it or install cffi-lua...') + else + message('Using experimental Elua with interpreter support...') + endif + endif else lua = dependency(get_option('lua-interpreter')) lua_pc_name = 'luajit' endif if sys_osx == true and get_option('lua-interpreter') == 'luajit' -# luajit on macro is broken, this means we need to generate our own dependency with our arguments, a library later still needs to link to luajit for the pagesize argument thingy +# luajit on macos is broken, this means we need to generate our own dependency with our arguments, a library later still needs to link to luajit for the pagesize argument thingy lua = declare_dependency( include_directories: include_directories(lua.get_pkgconfig_variable('includedir')), link_args: ['-L'+lua.get_pkgconfig_variable('libdir'), '-l'+lua.get_pkgconfig_variable('libname')] |