path: root/src/lib/elua
diff options
authorMarcel Hollerbach <>2019-02-22 08:53:19 -0500
committerMike Blumenkrantz <>2019-02-22 08:53:20 -0500
commita6d256cb6a53571d399b40c01c71d249b70a037c (patch)
treebc0625dbd78ebfe8f3e160529dc94bbd6f750884 /src/lib/elua
parent11e80c73275a46277a527d3dd9106637fc51cfb4 (diff)
build: fix macos build
Summary: 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 Reviewers: zmike, cedric, segfaultxavi Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision:
Diffstat (limited to 'src/lib/elua')
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/elua/ b/src/lib/elua/
index 9f1d270bba..33cb3f9733 100644
--- a/src/lib/elua/
+++ b/src/lib/elua/
@@ -1,5 +1,16 @@
1elua_deps = [eina, eo, efl, ecore, ecore_file, intl] 1elua_deps = [eina, eo, efl, ecore, ecore_file, intl]
2elua_pub_deps = [dependency('luajit')] 2if sys_osx == true
3# 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
4 luajit = dependency('luajit')
5 lua = declare_dependency(
6 include_directories: include_directories(luajit.get_pkgconfig_variable('includedir')),
7 link_args: ['-L'+luajit.get_pkgconfig_variable('libdir'), '-l'+luajit.get_pkgconfig_variable('libname')]
8 )
9 elua_pub_deps = [lua]
11 elua_pub_deps = [dependency('luajit')]
3 14
4elua_src = ['elua.c', 'io.c', 'cache.c'] 15elua_src = ['elua.c', 'io.c', 'cache.c']
5elua_header_src = ['Elua.h'] 16elua_header_src = ['Elua.h']