diff options
| author | ruki <[email protected]> | 2016-02-14 21:32:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-02-15 19:10:27 +0800 |
| commit | 00db421c6d1fcb4604015e30fbc3ce80e9c00b41 (patch) | |
| tree | 156038808d71a3bbdd66959604293ebc7aa31f94 /tests/console/src/demo/xmake.lua | |
| parent | 52c273079851f2b83b9c632aec8e37b7482f6a83 (diff) | |
rename add_target and add_option to def_xxx
Diffstat (limited to 'tests/console/src/demo/xmake.lua')
| -rw-r--r-- | tests/console/src/demo/xmake.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/console/src/demo/xmake.lua b/tests/console/src/demo/xmake.lua index f304aa255..6585054be 100644 --- a/tests/console/src/demo/xmake.lua +++ b/tests/console/src/demo/xmake.lua @@ -1,5 +1,5 @@ -add_target("demo_c") +def_target("demo_c") set_kind("binary") add_deps("hello1") add_files("*.c") @@ -14,7 +14,7 @@ add_target("demo_c") if options("option3") then add_defines("OPTION3") end if options("option4") then add_defines("OPTION4") end -add_target("demo_cpp") +def_target("demo_cpp") set_kind("binary") add_deps("hello2") add_files("*.cpp") @@ -31,7 +31,7 @@ add_target("demo_cpp") if plats("macosx", "ios") then - add_target("demo_objc") + def_target("demo_objc") set_kind("binary") add_deps("hello3") add_files("*.m") @@ -40,7 +40,7 @@ add_target("demo_cpp") add_includedirs("$(buildir)/inc") add_mflags("-DHELLO3", "-DPLAT=\"macosx\"", "-DARCH='armv7, arm64'") - add_target("demo_objcpp") + def_target("demo_objcpp") set_kind("binary") add_deps("hello3") add_files("*.mm") @@ -52,6 +52,6 @@ add_target("demo_cpp") end end -add_target("demo_swift") +def_target("demo_swift") set_kind("binary") add_files("*.swift") |
