summaryrefslogtreecommitdiff
path: root/tests/console
diff options
context:
space:
mode:
authorruki <[email protected]>2015-05-13 22:05:42 +0800
committerruki <[email protected]>2015-05-13 22:05:42 +0800
commit74ece0defa314bab78262d95bee517bdc09df689 (patch)
tree950684880d0193e60956a9b695cab50861208ff4 /tests/console
parent1f45e3bf9b41a413804305fc23810639b977a9f1 (diff)
add preprocessor and update tbox
Diffstat (limited to 'tests/console')
-rw-r--r--tests/console/xmake.lua64
-rw-r--r--tests/console/xmake.xconf13
-rw-r--r--tests/console/xmake.xproj82
3 files changed, 95 insertions, 64 deletions
diff --git a/tests/console/xmake.lua b/tests/console/xmake.lua
deleted file mode 100644
index 41784520e..000000000
--- a/tests/console/xmake.lua
+++ /dev/null
@@ -1,64 +0,0 @@
-
-project "console"
---[[
-
- target "hello1"
- kind "static"
- files "src/hello1/*.c"
-
- target "hello2"
- kind "shared"
- files "$(projectdir)/src/hello2/*.c"
-
- target "hello3"
- kind "static"
- files "src/hello3/*.c"
- headers "src/hello3/*.h"
- headerdir "$(buildir)/inc"
- targetdir "$(buildir)/lib"
- objectdir "$(buildir)/obj"
-
- target "demo_c"
- kind "console"
- deps "hello1"
- files "src/demo/*.c"
- links "hello1"
- linkdirs "src/hello1"
- includedirs "src/hello1"
- cflags "-DHELLO1"
-
- target "demo_cpp"
- kind "console"
- deps "hello2"
- files "src/demo/*.cpp"
- links "hello2"
- linkdirs "src/hello2"
- includedirs "src/hello2"
- cxxflags "-DHELLO1"
-
- target "demo_objc"
- kind "console"
- deps "hello3"
- files "src/demo/*.m"
- links "hello3"
- linkdirs "$(buildir)/lib"
- includedirs "$(buildir)/inc"
- mflags "-DHELLO3"
-
- target "demo_objcpp"
- kind "console"
- deps "hello3"
- files "src/demo/*.mm"
- mxflags "-DHELLO3"
- ldflags { "-lhello3", "-L$(buildir)/lib" }
-
- plarforms "linux"
- defines "PLAT=linux"
-
- plarforms "windows"
- defines "PLAT=windows"
-
- plarforms { "macosx", "ios" }
- ldflags { "-framework Cocoa", "-framework IOKit" }
-
-]]
diff --git a/tests/console/xmake.xconf b/tests/console/xmake.xconf
new file mode 100644
index 000000000..7f55bbfba
--- /dev/null
+++ b/tests/console/xmake.xconf
@@ -0,0 +1,13 @@
+return
+{
+ all =
+ {
+ plat = "macosx"
+ , arch = "x64"
+ , packages = "pkg"
+ , mode = "release"
+ , output = "build"
+ , host = "macosx"
+ }
+
+}
diff --git a/tests/console/xmake.xproj b/tests/console/xmake.xproj
new file mode 100644
index 000000000..3fd4d5e67
--- /dev/null
+++ b/tests/console/xmake.xproj
@@ -0,0 +1,82 @@
+project: console
+{
+ target: hello1
+ {
+ kind: static
+ files: src/hello1/*.c
+ }
+
+ target: hello2
+ {
+ kind: shared
+ files: $(projectdir)/src/hello2/*.c
+ }
+
+ target: hello3
+ {
+ kind: static
+ files: src/hello3/*.c
+ headers: src/hello3/*.h
+ headerdir: $(buildir)/inc
+ targetdir: $(buildir)/lib
+ objectdir: $(buildir)/obj
+ }
+
+ target: demo_c
+ {
+ kind: console
+ deps: hello1
+ files: src/demo/*.c
+ links: hello1
+ linkdirs: src/hello1
+ includedirs: src/hello1
+ cflags: -DHELLO1
+ }
+
+ target: demo_cpp
+ {
+ kind: console
+ deps: hello2
+ files: src/demo/*.cpp
+ links: hello2
+ linkdirs: src/hello2
+ includedirs: src/hello2
+ cxxflags: -DHELLO1
+ }
+
+ target: demo_objc
+ {
+ kind: console
+ deps: hello3
+ files: src/demo/*.m
+ links: hello3
+ linkdirs: $(buildir)/lib
+ includedirs: $(buildir)/inc
+ mflags: -DHELLO3
+ }
+
+ target: demo_objcpp
+ {
+ kind: console
+ deps: hello3
+ files: src/demo/*.mm
+ mxflags: -DHELLO3
+ ldflags: -lhello3, -L$(buildir)/lib
+
+ plarforms: linux
+ {
+ defines: PLAT=linux
+ }
+
+ plarforms: windows
+ {
+ defines: PLAT=windows
+ }
+
+ plarforms: macosx, ios
+ {
+ ldflags: -framework Cocoa, -framework IOKit
+ }
+ }
+}
+