aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/filters/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/filters/meson.build')
-rw-r--r--src/lib/evas/filters/meson.build32
1 files changed, 26 insertions, 6 deletions
diff --git a/src/lib/evas/filters/meson.build b/src/lib/evas/filters/meson.build
index 019b1d123c..a98d039e72 100644
--- a/src/lib/evas/filters/meson.build
+++ b/src/lib/evas/filters/meson.build
@@ -7,13 +7,33 @@ evas_src += files([
'evas_filter_utils.c',
])
-luajit = dependency('luajit')
+luaold_interpreters = [
+ ['lua', '>=5.1.0'],
+ ['lua51', '>=5.1.0'],
+ ['lua-5.1', '>=5.1.0'],
+ ['lua5.1', '>=5.1.0'],
+ ['lua52', '>=5.2.0'],
+ ['lua-5.2', '>=5.2.0'],
+ ['lua5.2', '>=5.2.0'],
+]
+
+if get_option('lua-interpreter') == 'lua'
+ foreach l : luaold_interpreters
+ lua = dependency(l[0], version: l[1], required:false)
+ if lua.found() == true
+ break
+ endif
+ endforeach
+else
+ lua = dependency(get_option('lua-interpreter'), required:false)
+endif
+
if sys_osx == true
-# 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
- luajit = declare_dependency(
- include_directories: include_directories(luajit.get_pkgconfig_variable('includedir')),
- link_args: ['-L'+luajit.get_pkgconfig_variable('libdir'), '-l'+luajit.get_pkgconfig_variable('libname')]
+# lua on macro is broken, this means we need to generate our own dependency with our arguments, a library later still needs to link to lua 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')]
)
endif
-evas_deps += luajit
+evas_deps += lua