summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-10 15:35:31 +0800
committerruki <[email protected]>2015-06-10 15:35:31 +0800
commit72faab4c7e6468d94364e2fec7c11614845d0c74 (patch)
tree2ba6d0eb659f14646a117aa19b808e1b44635afc /tests
parent33ad09c9a126cb83ba45fb6f1f2c2898cfbb2dbb (diff)
add option switch for xmake.lua
Diffstat (limited to 'tests')
-rw-r--r--tests/console/src/demo/xmake.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/console/src/demo/xmake.lua b/tests/console/src/demo/xmake.lua
index cafc9b2a0..7415b2564 100644
--- a/tests/console/src/demo/xmake.lua
+++ b/tests/console/src/demo/xmake.lua
@@ -9,6 +9,10 @@ add_target("demo_c")
add_cflags("-DHELLO1")
if modes("release") then add_defines("NDEBUG") end
+ if option("option1") then add_defines("OPTION1") end
+ if option("option2") then add_defines("OPTION2") end
+ if option("option3") then add_defines("OPTION3") end
+ if option("option4") then add_defines("OPTION4") end
add_target("demo_cpp")
set_kind("binary")
@@ -19,6 +23,7 @@ add_target("demo_cpp")
add_includedirs("$(buildir)")
add_undefines("HELLO2")
add_cxxflags("-DHELLO1")
+ add_options("option1", "option2", "option3", "option4")
if plats("macosx", "ios") then