summaryrefslogtreecommitdiff
path: root/core/src/demo/xmake.lua
diff options
context:
space:
mode:
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")