summaryrefslogtreecommitdiff
path: root/core/src/demo/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-21 23:45:36 +0800
committerruki <[email protected]>2020-04-21 16:33:40 +0800
commitb043d9eb23c8086aa4f70b060e4041c2971c8bcc (patch)
tree8b7f489ccde3dc45c4da98ef43d8c44718dfc755 /core/src/demo/xmake.lua
parenta45fd8ca3b63a8fe9c21fdc9a87e71c01054422e (diff)
improve headerfiles in core/xmake.lua
Diffstat (limited to 'core/src/demo/xmake.lua')
-rw-r--r--core/src/demo/xmake.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua
index 4e7c0b1af..6eeb0c771 100644
--- a/core/src/demo/xmake.lua
+++ b/core/src/demo/xmake.lua
@@ -1,6 +1,11 @@
-- add target
target("demo")
+ -- disable this target if only build libaries
+ if has_config("onlylib") then
+ set_default(false)
+ end
+
-- add deps
add_deps("xmake")