summaryrefslogtreecommitdiff
path: root/core/pkg/tbox.pkg/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/pkg/tbox.pkg/xmake.lua
parent05019549ea769b64a31929b7044e7a53dba97549 (diff)
clear xmake config first for install.bat
Diffstat (limited to 'core/pkg/tbox.pkg/xmake.lua')
-rw-r--r--core/pkg/tbox.pkg/xmake.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/core/pkg/tbox.pkg/xmake.lua b/core/pkg/tbox.pkg/xmake.lua
new file mode 100644
index 000000000..b71bbe659
--- /dev/null
+++ b/core/pkg/tbox.pkg/xmake.lua
@@ -0,0 +1,30 @@
+-- add tbox package
+option("tbox")
+
+ -- show menu
+ set_showmenu(true)
+
+ -- set category
+ set_category("package")
+
+ -- set description
+ set_description("The tbox package")
+
+ -- set language: c99, c++11
+ set_languages("c99", "cxx11")
+
+ -- add defines to config.h if checking ok
+ add_defines_h_if_ok("$(prefix)_PACKAGE_HAVE_TBOX")
+
+ -- add links for checking
+ add_links("tbox")
+
+ -- add link directories
+ add_linkdirs("lib/$(plat)/$(arch)")
+
+ -- add c includes for checking
+ add_cincludes("tbox/tbox.h")
+
+ -- add include directories
+ add_includedirs("inc/$(plat)/$(arch)", "inc")
+