summaryrefslogtreecommitdiff
path: root/core/src/xmake/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-09-17 21:14:56 +0800
committerruki <[email protected]>2016-09-17 21:14:56 +0800
commitf6a99c6c8ee94e5b5af4186aad685d8ccfe715fc (patch)
tree1d0f1d423742254869c6ca875b97db5f97addd0a /core/src/xmake/xmake.lua
parent05019549ea769b64a31929b7044e7a53dba97549 (diff)
clear xmake config first for install.bat
Diffstat (limited to 'core/src/xmake/xmake.lua')
-rw-r--r--core/src/xmake/xmake.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/src/xmake/xmake.lua b/core/src/xmake/xmake.lua
new file mode 100644
index 000000000..abbab6420
--- /dev/null
+++ b/core/src/xmake/xmake.lua
@@ -0,0 +1,25 @@
+-- add target
+target("xmake")
+
+ -- make as a static library
+ set_kind("static")
+
+ -- add defines
+ add_defines("__tb_prefix__=\"xmake\"")
+
+ -- set the auto-generated config.h
+ set_config_h("$(projectdir)/xmake.config.h")
+ set_config_h_prefix("XM_CONFIG")
+
+ -- set the object files directory
+ set_objectdir("$(buildir)/.objs")
+
+ -- add includes directory
+ add_includedirs("$(projectdir)")
+
+ -- add packages
+ add_packages("tbox", "luajit", "base")
+
+ -- add the common source files
+ add_files("**.c")
+