summaryrefslogtreecommitdiff
path: root/tests/console/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-15 13:38:18 +0800
committerruki <[email protected]>2015-06-15 13:38:18 +0800
commit2ff2b14ec02d4d2ec77d26213412c1b82473bf8d (patch)
treedcf30572925e452e37d3f57371218913ea342105 /tests/console/xmake.lua
parent7345d435c1c09f6a1d2ccd329174f99f150ec9b0 (diff)
add defines to config.h if ok
Diffstat (limited to 'tests/console/xmake.lua')
-rw-r--r--tests/console/xmake.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/console/xmake.lua b/tests/console/xmake.lua
index 3d20cc516..9f45c4cce 100644
--- a/tests/console/xmake.lua
+++ b/tests/console/xmake.lua
@@ -30,13 +30,13 @@ end
add_option("option1")
set_option_enable(true)
set_option_showmenu(true)
- add_option_defines_h("OPTION1_ENABLE")
+ add_option_defines_h_if_ok("OPTION1_ENABLE")
set_option_description("The option for definition and need not check.")
add_option("option2")
set_option_enable(false)
set_option_showmenu(true)
- add_option_defines_h("OPTION2_ENABLE")
+ add_option_defines_h_if_ok("OPTION2_ENABLE")
add_option_cincludes("stdio.h", "hello1.h")
add_option_includedirs("src/hello1")
set_option_description("The option for finding includes.")
@@ -44,7 +44,7 @@ add_option("option2")
add_option("option3")
set_option_enable(false)
set_option_showmenu(true)
- add_option_defines_h("OPTION3_ENABLE")
+ add_option_defines_h_if_ok("OPTION3_ENABLE")
add_option_links("hello1")
add_option_linkdirs("$(buildir)")
set_option_description("The option for finding links.")
@@ -52,7 +52,7 @@ add_option("option3")
add_option("option4")
set_option_enable(false)
set_option_showmenu(true)
- add_option_defines_h("OPTION4_ENABLE")
+ add_option_defines_h_if_ok("OPTION4_ENABLE")
set_option_description("The option for finding interfaces.")
if not plats("windows") then
add_option_links("z", "sqlite3")