summaryrefslogtreecommitdiff
path: root/tests/console
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-15 10:30:14 +0800
committerruki <[email protected]>2015-06-15 10:30:14 +0800
commitddf03c22b1b6fcab81e0d3ce5c4a081b704f3a65 (patch)
tree98cdbfc56ad0e911c826cfddfde92d4a9a12de38 /tests/console
parent31bba0ba7852b0699e41642815455afb62ddc8b7 (diff)
enable and disable show menu for option
Diffstat (limited to 'tests/console')
-rw-r--r--tests/console/src/demo/xmake.lua2
-rw-r--r--tests/console/xmake.lua14
2 files changed, 10 insertions, 6 deletions
diff --git a/tests/console/src/demo/xmake.lua b/tests/console/src/demo/xmake.lua
index 7415b2564..9d70a95e6 100644
--- a/tests/console/src/demo/xmake.lua
+++ b/tests/console/src/demo/xmake.lua
@@ -18,7 +18,7 @@ add_target("demo_cpp")
set_kind("binary")
add_deps("hello2")
add_files("src/demo/*.cpp")
- set_configfile("$(buildir)/demo_cpp.h")
+ set_config_h("$(buildir)/demo_cpp.h")
add_linkdirs("$(buildir)")
add_includedirs("$(buildir)")
add_undefines("HELLO2")
diff --git a/tests/console/xmake.lua b/tests/console/xmake.lua
index a66c805f4..c7be700c7 100644
--- a/tests/console/xmake.lua
+++ b/tests/console/xmake.lua
@@ -1,5 +1,5 @@
set_version("1.0.1")
-set_configfile("$(buildir)/demo.h")
+set_config_h("$(buildir)/demo.h")
if modes("debug") then
set_symbols("debug")
@@ -29,26 +29,30 @@ end
add_option("option1")
set_option_default(true)
- add_option_defines_if_ok("OPTION1_ENABLE")
+ set_option_showmenu(true)
+ add_option_defines_to_config_h("OPTION1_ENABLE")
set_option_description("The option for definition and need not check.")
add_option("option2")
set_option_default(false)
- add_option_defines_if_ok("OPTION2_ENABLE")
+ set_option_showmenu(true)
+ add_option_defines_to_config_h("OPTION2_ENABLE")
add_option_cincludes("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_if_ok("OPTION3_ENABLE")
+ set_option_showmenu(true)
+ add_option_defines_to_config_h("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_if_ok("OPTION4_ENABLE")
+ set_option_showmenu(true)
+ add_option_defines_to_config_h("OPTION4_ENABLE")
set_option_description("The option for finding interfaces.")
if not plats("windows") then
add_option_links("z", "sqlite3")