summaryrefslogtreecommitdiff
path: root/tests/console
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-10 09:35:33 +0800
committerruki <[email protected]>2015-06-10 09:35:33 +0800
commit7a2f8c098db24b46c37ab0db79d6e511b1681a77 (patch)
tree7972e27a327efbff90a70aea1753824fbb755e10 /tests/console
parent53e332e8b0f6c68f37eaf9a05f72662b4bc3d2d6 (diff)
add option for xmake.lua
Diffstat (limited to 'tests/console')
-rw-r--r--tests/console/xmake.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/console/xmake.lua b/tests/console/xmake.lua
index 154ad5f7e..981ab0cd4 100644
--- a/tests/console/xmake.lua
+++ b/tests/console/xmake.lua
@@ -27,6 +27,35 @@ if archs("x86", "x64") then
add_defines("ARCH=\"$(arch)\"", "PLAT=$(plat)", "MODE=$(mode)", "HOST=$(host)")
end
+add_option("option1")
+ set_option_default(true)
+ add_option_defines("OPTION1_ENABLE")
+ set_option_description("The option for definition and need not check.")
+
+add_option("option2")
+ set_option_default(false)
+ add_option_defines("OPTION2_ENABLE")
+ add_option_includes("stdio.h", "hello1.h")
+ add_option_includedirs("src/hello1")
+ set_option_description("The option for finding includes.")
+
+add_option("option3")
+ set_option_default(false)
+ add_option_defines("OPTION3_ENABLE")
+ add_option_links("hello1")
+ add_option_linkdirs("$(buildir)")
+ set_option_description("The option for finding links.")
+
+add_option("option4")
+ set_option_default(false)
+ add_option_defines("OPTION4_ENABLE")
+ add_option_includes("stdio.h", "hello1.h")
+ add_option_includedirs("src/hello1")
+ add_option_links("hello1")
+ add_option_linkdirs("$(buildir)")
+ add_option_interfaces("hello1")
+ set_option_description("The option for finding interfaces.")
+
add_target("hello1")
set_kind("static")
add_files("src/hello1/*.c")