summaryrefslogtreecommitdiff
path: root/tests/console
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-02 16:58:26 +0800
committerruki <[email protected]>2015-06-02 16:58:26 +0800
commitebebee003da8aa7092a69d0efef7f69a7635d59b (patch)
tree9120c277bea75725e1fb48a4f7f74c9f594aff1b /tests/console
parentf639faef588a95b28ec02c781dee2a581f7a7992 (diff)
improve to make project configs
Diffstat (limited to 'tests/console')
-rw-r--r--tests/console/xmake.xproj48
1 files changed, 20 insertions, 28 deletions
diff --git a/tests/console/xmake.xproj b/tests/console/xmake.xproj
index 4bf7e7d4a..b36f053cd 100644
--- a/tests/console/xmake.xproj
+++ b/tests/console/xmake.xproj
@@ -76,40 +76,32 @@ project: console
cxxflags: -DHELLO1
}
- target: demo_objc
+ platforms: macosx, ios
{
- kind: binary
- deps: hello3
- files: src/demo/*.m
- links: hello3
- linkdirs: $(buildir)/lib
- includedirs: $(buildir)/inc
- mflags: -DHELLO3, -DPLAT="macosx", -DARCH='armv7, arm64', -DVERSION=[return add(1, 2)]
- }
-
- target: demo_objcpp
- {
- kind: binary
- deps: hello3
- files: src/demo/*.mm
- mxflags: -DHELLO3
- ldflags: -L$(buildir)/lib, -lhello3, -lhello3
-
- # the linux platform
- platforms: linux
+ target: demo_objc
{
- defines: PLAT="linux"
+ kind: binary
+ deps: hello3
+ files: src/demo/*.m
+ links: hello3
+ linkdirs: $(buildir)/lib
+ includedirs: $(buildir)/inc
+ mflags: -DHELLO3, -DPLAT="macosx", -DARCH='armv7, arm64', -DVERSION=[return add(1, 2)]
}
- platforms: windows
+ target: demo_objcpp
{
- defines: PLAT=windows
- }
+ kind: binary
+ deps: hello3
+ files: src/demo/*.mm
+ mxflags: -DHELLO3
+ ldflags: -L$(buildir)/lib, -lhello3, -lhello3
- platforms: macosx, ios
- {
- ldflags: -framework Cocoa, "-framework IOKit"
- , -framework CoreFoundation
+ platforms: ios
+ {
+ ldflags: -framework Cocoa, "-framework IOKit"
+ , -framework CoreFoundation
+ }
}
}
}