summaryrefslogtreecommitdiff
path: root/tests/console/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-15 12:12:25 +0800
committerruki <[email protected]>2015-06-15 12:12:25 +0800
commit7345d435c1c09f6a1d2ccd329174f99f150ec9b0 (patch)
tree5b5ce6cb11215bae55cc9b6689b80d349bec5f48 /tests/console/xmake.lua
parentddf03c22b1b6fcab81e0d3ce5c4a081b704f3a65 (diff)
add defines_h and undefines_h
Diffstat (limited to 'tests/console/xmake.lua')
-rw-r--r--tests/console/xmake.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/console/xmake.lua b/tests/console/xmake.lua
index c7be700c7..3d20cc516 100644
--- a/tests/console/xmake.lua
+++ b/tests/console/xmake.lua
@@ -28,31 +28,31 @@ if archs("x86", "x64") then
end
add_option("option1")
- set_option_default(true)
+ set_option_enable(true)
set_option_showmenu(true)
- add_option_defines_to_config_h("OPTION1_ENABLE")
+ add_option_defines_h("OPTION1_ENABLE")
set_option_description("The option for definition and need not check.")
add_option("option2")
- set_option_default(false)
+ set_option_enable(false)
set_option_showmenu(true)
- add_option_defines_to_config_h("OPTION2_ENABLE")
+ add_option_defines_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)
+ set_option_enable(false)
set_option_showmenu(true)
- add_option_defines_to_config_h("OPTION3_ENABLE")
+ add_option_defines_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)
+ set_option_enable(false)
set_option_showmenu(true)
- add_option_defines_to_config_h("OPTION4_ENABLE")
+ add_option_defines_h("OPTION4_ENABLE")
set_option_description("The option for finding interfaces.")
if not plats("windows") then
add_option_links("z", "sqlite3")