summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-04-11 20:10:22 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-11 21:21:36 -0700
commitd8d3690010170a4930adbdc64a88dcec43b7f3d4 (patch)
tree34ea6d53fd44f712b5ca8ad62fa6d8abdd0d9224 /Makefile
parenteda132d922df160a413bac9238e98d96c8748667 (diff)
downloadqtlocation-mapboxgl-d8d3690010170a4930adbdc64a88dcec43b7f3d4.tar.gz
[ios] Use the same build configuration for `make ios` and `make test-ios`
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 679dd0df1e..2e5d8f1b6c 100644
--- a/Makefile
+++ b/Makefile
@@ -40,19 +40,18 @@ test-osx: $(OSX_PROJ_PATH) $(OSX_PROJ_PATH)/xcshareddata/xcschemes/osxtest.xcsch
IOS_PROJ_PATH = build/ios-all/platform/ios/platform.xcodeproj
-ios:
- $(RUN) PLATFORM=ios Xcode/All
-
$(IOS_PROJ_PATH): platform/ios/platform.gyp platform/ios/scripts/configure.sh mbgl.gypi test/test.gypi
$(RUN) PLATFORM=ios Xcode/__project__
+ios: $(IOS_PROJ_PATH)
+ set -o pipefail && xcodebuild -configuration $(BUILDTYPE) -sdk iphonesimulator \
+ -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' \
+ -project $(IOS_PROJ_PATH) -target All build | xcpretty
+
iproj: $(IOS_PROJ_PATH)
open $(IOS_PROJ_PATH)
-test-ios: $(IOS_PROJ_PATH)
- set -o pipefail && xcodebuild -project $(IOS_PROJ_PATH) -configuration $(BUILDTYPE) \
- -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' \
- -target test build | xcpretty
+test-ios: ios
ios-sim start
ios-sim launch build/ios-all/$(BUILDTYPE)-iphonesimulator/ios-test.app --verbose