aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-22 09:00:39 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-22 09:00:47 +0100
commit6661314a25ce2f7ae3061418b52a00860058e59d (patch)
tree583c0ff2506fe4732fb919c5e00adfaa4927412f
parenteo: fix reflection (diff)
downloadefl-devs/bu5hm4n/macos-buildfix.tar.gz
build: fix macos builddevs/bu5hm4n/macos-buildfix
it the .pc file of luajit carries linker flags that causes compilation fails on macos, thus we need to split up the .pc file into our own dependency, and use it with causion
-rw-r--r--src/lib/elua/meson.build13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/elua/meson.build b/src/lib/elua/meson.build
index 9f1d270bba..33cb3f9733 100644
--- a/src/lib/elua/meson.build
+++ b/src/lib/elua/meson.build
@@ -1,5 +1,16 @@
elua_deps = [eina, eo, efl, ecore, ecore_file, intl]
-elua_pub_deps = [dependency('luajit')]
+if sys_osx == true
+# 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 = dependency('luajit')
+ lua = 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')]
+ )
+ elua_pub_deps = [lua]
+else
+ elua_pub_deps = [dependency('luajit')]
+endif
+
elua_src = ['elua.c', 'io.c', 'cache.c']
elua_header_src = ['Elua.h']