summaryrefslogtreecommitdiff
path: root/tests/console/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-14 21:32:36 +0800
committerruki <[email protected]>2016-02-15 19:10:27 +0800
commit00db421c6d1fcb4604015e30fbc3ce80e9c00b41 (patch)
tree156038808d71a3bbdd66959604293ebc7aa31f94 /tests/console/xmake.lua
parent52c273079851f2b83b9c632aec8e37b7482f6a83 (diff)
rename add_target and add_option to def_xxx
Diffstat (limited to 'tests/console/xmake.lua')
-rw-r--r--tests/console/xmake.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/console/xmake.lua b/tests/console/xmake.lua
index 01406f127..b4cf57d58 100644
--- a/tests/console/xmake.lua
+++ b/tests/console/xmake.lua
@@ -27,13 +27,13 @@ if archs("x86", "x64") then
add_defines("ARCH=\"$(arch)\"", "PLAT=$(plat)", "MODE=$(mode)", "HOST=$(host)")
end
-add_option("option1")
+def_option("option1")
set_option_enable(true)
set_option_showmenu(true)
add_option_defines_h_if_ok("OPTION1_ENABLE")
set_option_description("The option for definition and need not check.")
-add_option("option2")
+def_option("option2")
set_option_enable(false)
set_option_showmenu(true)
add_option_defines_h_if_ok("OPTION2_ENABLE")
@@ -41,7 +41,7 @@ add_option("option2")
add_option_includedirs("src/hello1")
set_option_description("The option for finding includes.")
-add_option("option3")
+def_option("option3")
set_option_enable(false)
set_option_showmenu(true)
add_option_defines_h_if_ok("OPTION3_ENABLE")
@@ -49,7 +49,7 @@ add_option("option3")
add_option_linkdirs("$(buildir)")
set_option_description("The option for finding links.")
-add_option("option4")
+def_option("option4")
set_option_enable(false)
set_option_showmenu(true)
add_option_defines_h_if_ok("OPTION4_ENABLE")
@@ -60,15 +60,15 @@ add_option("option4")
add_option_cincludes("stdio.h", "sqlite3.h")
end
-add_target("hello1")
+def_target("hello1")
set_kind("static")
add_files("src/hello1/*.c")
-add_target("hello2")
+def_target("hello2")
set_kind("shared")
add_files("$(projectdir)/src/hello2/*.c")
-add_target("hello3")
+def_target("hello3")
set_kind("static")
add_files("src/hello3/*.c")
add_headers("src/(hello3/*.h)")
@@ -76,13 +76,13 @@ add_target("hello3")
set_targetdir("$(buildir)/lib")
set_objectdir("$(buildir)/obj")
-add_target("hello4")
+def_target("hello4")
set_kind("static")
add_deps("hello1", "hello2")
add_files("$(buildir)/.objs/hello1/**.o")
add_files("$(buildir)/.objs/hello2/**.obj")
-add_target("hello5")
+def_target("hello5")
set_kind("static")
add_deps("hello4", "hello1")
add_files("$(buildir)/hello1.lib")