summaryrefslogtreecommitdiff
path: root/tests/console/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-09 14:40:11 +0800
committerruki <[email protected]>2015-06-09 14:40:11 +0800
commit2664a11c5ae2444241aa72346e7574279ac6b0bd (patch)
treeec924c101d0e089edaa75ecce7a01613215e8ffd /tests/console/xmake.lua
parentd9051004d0b3b24f804e0bfffc5050e260018084 (diff)
reimpl project
Diffstat (limited to 'tests/console/xmake.lua')
-rw-r--r--tests/console/xmake.lua46
1 files changed, 1 insertions, 45 deletions
diff --git a/tests/console/xmake.lua b/tests/console/xmake.lua
index 8762021fe..4c90a75fe 100644
--- a/tests/console/xmake.lua
+++ b/tests/console/xmake.lua
@@ -1,4 +1,3 @@
-project("console")
if modes("debug") then
symbols("debug")
@@ -38,47 +37,4 @@ target("hello3")
targetdir("$(buildir)/lib")
objectdir("$(buildir)/obj")
-target("demo_c")
- kind("binary")
- deps("hello1")
- files("src/demo/*.c")
- links("hello1")
- linkdirs("$(buildir)")
- includedirs("$(buildir)")
- cflags("-DHELLO1")
-
- if modes("release") then defines("NDEBUG") end
-
-target("demo_cpp")
- kind("binary")
- deps("hello2")
- files("src/demo/*.cpp")
- version("1.0.1")
- configfile("$(buildir)/demo_cpp.h")
- linkdirs("$(buildir)")
- includedirs("$(buildir)")
- undefines("HELLO2")
- cxxflags("-DHELLO1")
-
- if platforms("macosx", "ios") then
-
- target("demo_objc")
- kind("binary")
- deps("hello3")
- files("src/demo/*.m")
- links("hello3")
- linkdirs("$(buildir)/lib")
- includedirs("$(buildir)/inc")
- mflags("-DHELLO3", "-DPLAT=\"macosx\"", "-DARCH='armv7, arm64'")
-
- target("demo_objcpp")
- kind("binary")
- deps("hello3")
- files("src/demo/*.mm")
- mxflags("-DHELLO3")
- ldflags("-L$(buildir)/lib", "-lhello3", "-lhello3")
-
- if platforms("ios") then
- ldflags("-framework Cocoa", "-framework IOKit", "-framework CoreFoundation")
- end
- end
+subdirs("src/demo")