summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJason Wray <friedbunny@users.noreply.github.com>2019-03-04 15:59:01 -0800
committerGitHub <noreply@github.com>2019-03-04 15:59:01 -0800
commit05026b704adcbe97c923989b3e2e46feb4fdc7ee (patch)
tree96ceb42a79025f3d5a269b72efff88da41c60008 /platform
parent7b7ad9d39b4e5427dc1ce10dbddf4fbe2fc7e268 (diff)
downloadqtlocation-mapboxgl-05026b704adcbe97c923989b3e2e46feb4fdc7ee.tar.gz
[build, darwin] Disable Xcode indexing-while-compiling on CI
Diffstat (limited to 'platform')
-rw-r--r--platform/darwin/ci.xcconfig1
-rwxr-xr-xplatform/ios/scripts/package.sh9
-rwxr-xr-xplatform/macos/scripts/package.sh10
3 files changed, 20 insertions, 0 deletions
diff --git a/platform/darwin/ci.xcconfig b/platform/darwin/ci.xcconfig
new file mode 100644
index 0000000000..8928c867ae
--- /dev/null
+++ b/platform/darwin/ci.xcconfig
@@ -0,0 +1 @@
+COMPILER_INDEX_STORE_ENABLE = NO
diff --git a/platform/ios/scripts/package.sh b/platform/ios/scripts/package.sh
index 54a34bdf8f..45aab45f3f 100755
--- a/platform/ios/scripts/package.sh
+++ b/platform/ios/scripts/package.sh
@@ -70,6 +70,13 @@ if [[ ${BUILD_STATIC} == true ]]; then
SCHEME='static'
fi
+CI_XCCONFIG=''
+if [[ ! -z "${CI:=}" ]]; then
+ xcconfig='platform/darwin/ci.xcconfig'
+ echo "CI environment, using ${xcconfig}"
+ CI_XCCONFIG="-xcconfig ./${xcconfig}"
+fi
+
step "Building ${FORMAT} framework for iOS Simulator using ${SCHEME} scheme"
xcodebuild \
CURRENT_PROJECT_VERSION=${PROJ_VERSION} \
@@ -77,6 +84,7 @@ xcodebuild \
CURRENT_SEMANTIC_VERSION=${SEM_VERSION} \
CURRENT_COMMIT_HASH=${HASH} \
ONLY_ACTIVE_ARCH=NO \
+ ${CI_XCCONFIG} \
-derivedDataPath ${DERIVED_DATA} \
-workspace ./platform/ios/ios.xcworkspace \
-scheme ${SCHEME} \
@@ -92,6 +100,7 @@ if [[ ${BUILD_FOR_DEVICE} == true ]]; then
CURRENT_SEMANTIC_VERSION=${SEM_VERSION} \
CURRENT_COMMIT_HASH=${HASH} \
ONLY_ACTIVE_ARCH=NO \
+ ${CI_XCCONFIG} \
-derivedDataPath ${DERIVED_DATA} \
-workspace ./platform/ios/ios.xcworkspace \
-scheme ${SCHEME} \
diff --git a/platform/macos/scripts/package.sh b/platform/macos/scripts/package.sh
index 6a04b4b948..407b116b06 100755
--- a/platform/macos/scripts/package.sh
+++ b/platform/macos/scripts/package.sh
@@ -24,12 +24,20 @@ PROJ_VERSION=$(git rev-list --count HEAD)
SEM_VERSION=$( git describe --tags --match=macos-v*.*.* --abbrev=0 | sed 's/^macos-v//' )
SHORT_VERSION=${SEM_VERSION%-*}
+CI_XCCONFIG=''
+if [[ ! -z "${CI:=}" ]]; then
+ xcconfig='platform/darwin/ci.xcconfig'
+ echo "CI environment, using ${xcconfig}"
+ CI_XCCONFIG="-xcconfig ./${xcconfig}"
+fi
+
step "Building dynamic framework (build ${PROJ_VERSION}, version ${SEM_VERSION})…"
xcodebuild \
CURRENT_PROJECT_VERSION=${PROJ_VERSION} \
CURRENT_SHORT_VERSION=${SHORT_VERSION} \
CURRENT_SEMANTIC_VERSION=${SEM_VERSION} \
CURRENT_COMMIT_HASH=${HASH} \
+ ${CI_XCCONFIG} \
-derivedDataPath ${DERIVED_DATA} \
-archivePath "${APP_OUTPUT}/macosapp.xcarchive" \
-workspace ./platform/macos/macos.xcworkspace \
@@ -53,6 +61,7 @@ if [[ ${BUILDTYPE} == Release ]]; then
CURRENT_SHORT_VERSION=${SHORT_VERSION} \
CURRENT_SEMANTIC_VERSION=${SEM_VERSION} \
CURRENT_COMMIT_HASH=${HASH} \
+ ${CI_XCCONFIG} \
-derivedDataPath ${DERIVED_DATA} \
-archivePath "${APP_OUTPUT}/macosapp.xcarchive" \
-workspace ./platform/macos/macos.xcworkspace \
@@ -89,6 +98,7 @@ if [[ ${BUILDTYPE} == Release ]]; then
step "Exporting Mapbox GL.app"
xcodebuild \
+ ${CI_XCCONFIG} \
-exportArchive \
-archivePath "${APP_OUTPUT}/macosapp.xcarchive" \
-exportPath "${APP_OUTPUT}" \