From ebebee003da8aa7092a69d0efef7f69a7635d59b Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 2 Jun 2015 16:58:26 +0800 Subject: improve to make project configs --- tests/console/xmake.xproj | 48 ++++++++++++++++++++--------------------------- 1 file changed, 20 insertions(+), 28 deletions(-) (limited to 'tests/console') 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 + } } } } -- cgit v1.3.1