summaryrefslogtreecommitdiff
path: root/core/src/luajit/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-30 10:45:31 +0800
committerruki <[email protected]>2017-03-30 10:45:31 +0800
commitbd9e9505a78602000c2625dc483cc53a2e69f10f (patch)
tree99cde34a4f101a39e3be458fa28c1386cc772b76 /core/src/luajit/xmake.lua
parent130e0d22c840da966e8426e0c2adc1285a70a3d8 (diff)
add luajit sources
Diffstat (limited to 'core/src/luajit/xmake.lua')
-rw-r--r--core/src/luajit/xmake.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/src/luajit/xmake.lua b/core/src/luajit/xmake.lua
new file mode 100644
index 000000000..3a1a0e4fd
--- /dev/null
+++ b/core/src/luajit/xmake.lua
@@ -0,0 +1,18 @@
+-- add target
+target("luajit")
+
+ -- make as a static library
+ set_kind("static")
+
+ -- set warning all and disable error
+ set_warnings("all")
+
+ -- set the object files directory
+ set_objectdir("$(buildir)/.objs")
+
+ -- add include directories
+ add_includedirs("src")
+
+ -- add the common source files
+ add_files("src/**.c")
+