summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlf Watt <alf.watt@mapbox.com>2019-03-18 17:43:15 -0700
committerAlf Watt <alf.watt@mapbox.com>2019-03-19 09:49:34 -0700
commitc9150f258579c6600d404d58374fdaaa06547b58 (patch)
treec4ed72d22494559a1684f63cd90831219c8e1cd3
parent1fb61192d4d1e289170422813a7cf34aadb08773 (diff)
downloadqtlocation-mapboxgl-c9150f258579c6600d404d58374fdaaa06547b58.tar.gz
Add SKIP_DOCS flag to build pipeline for iOS
-rw-r--r--Makefile4
-rwxr-xr-xplatform/ios/scripts/package.sh7
2 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ecc4273cff..d43b5cd1ef 100644
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,8 @@ default: test
BUILD_DEPS += Makefile
BUILD_DEPS += CMakeLists.txt
+SKIP_DOCS := false
+
#### macOS targets ##############################################################
ifeq ($(HOST_PLATFORM), macos)
@@ -272,7 +274,7 @@ ipackage%:
.PHONY: iframework
iframework: $(IOS_PROJ_PATH)
- FORMAT=$(FORMAT) BUILD_DEVICE=$(BUILD_DEVICE) SYMBOLS=$(SYMBOLS) \
+ FORMAT=$(FORMAT) BUILD_DEVICE=$(BUILD_DEVICE) SYMBOLS=$(SYMBOLS) SKIP_DOCS=$(SKIP_DOCS) \
./platform/ios/scripts/package.sh
.PHONY: ideploy
diff --git a/platform/ios/scripts/package.sh b/platform/ios/scripts/package.sh
index 45aab45f3f..d1fa8f9a22 100755
--- a/platform/ios/scripts/package.sh
+++ b/platform/ios/scripts/package.sh
@@ -11,6 +11,7 @@ PRODUCTS=${DERIVED_DATA}
LOG_PATH=build/xcodebuild-$(date +"%Y-%m-%d_%H%M%S").log
BUILD_FOR_DEVICE=${BUILD_DEVICE:-true}
+SKIP_DOCS=${SKIP_DOCS:-false}
SYMBOLS=${SYMBOLS:-YES}
BUILDTYPE=${BUILDTYPE:-Debug}
@@ -270,5 +271,7 @@ sed -i '' \
"${README}"
cp ${README} "${OUTPUT}"
-step "Generating API documentation…"
-make idocument OUTPUT="${OUTPUT}/documentation"
+if [ ${SKIP_DOCS} == false ]; then
+ step "Generating API documentation for ${BUILDTYPE} Build…"
+ make idocument OUTPUT="${OUTPUT}/documentation"
+fi