diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2019-01-14 16:44:48 +0100 |
---|---|---|
committer | Łukasz Paczos <lukas.paczos@gmail.com> | 2019-01-14 18:20:41 +0100 |
commit | 1de7722307f5f1dadcf0d3dde5dcffa1b1da0fd1 (patch) | |
tree | e22a4dde8b8b9b85463f4804d23fdfd97591e6d8 | |
parent | de4df2096f9b1c46f02d762c3b7ec45c8f373234 (diff) | |
download | qtlocation-mapboxgl-upstream/lp-vendorize-android-libs.tar.gz |
[android] change vendor modules update scriptupstream/lp-vendorize-android-libs
-rw-r--r-- | Makefile | 11 | ||||
-rw-r--r-- | circle.yml | 6 | ||||
-rw-r--r-- | platform/android/build.gradle | 2 |
3 files changed, 9 insertions, 10 deletions
@@ -517,9 +517,14 @@ android-style-code: node platform/android/scripts/generate-style-code.js style-code: android-style-code +# Vendor submodules configuration for Android. +.PHONY: platform/android/vendor +platform/android/vendor: + git submodule update --init --recursive platform/android/vendor + # Configuration file for running CMake from Gradle within Android Studio. -platform/android/gradle/configuration.gradle: - @echo "ext {\n node = '`command -v node || command -v nodejs`'\n npm = '`command -v npm`'\n ccache = '`command -v ccache`'\n}" > $@ +platform/android/gradle/configuration.gradle: platform/android/vendor + @printf "ext {\n node = '`command -v node || command -v nodejs`'\n npm = '`command -v npm`'\n ccache = '`command -v ccache`'\n}" > $@ define ANDROID_RULES # $1 = arm-v7 (short arch) @@ -760,7 +765,7 @@ android-configuration: platform/android/gradle/configuration.gradle # Updates Android's vendor submodules .PHONY: android-update-vendor -android-update-vendor: platform/android/gradle/configuration.gradle +android-update-vendor: cd platform/android && $(MBGL_ANDROID_GRADLE) -Pmapbox.abis=none updateVendorSubmodules # Creates a dependency graph using Graphviz diff --git a/circle.yml b/circle.yml index 05d92e5558..68d17b774d 100644 --- a/circle.yml +++ b/circle.yml @@ -532,9 +532,6 @@ jobs: steps: - install-dependencies: { gradle: true } - run: - name: Update vendor submodules - command: make android-update-vendor - - run: name: Check code style command: make android-check - run: @@ -596,9 +593,6 @@ jobs: steps: - install-dependencies: { gradle: true } - run: - name: Update vendor submodules - command: make android-update-vendor - - run: name: Generate Maven credentials command: | if [ -n "${PUBLISH_NEXUS_USERNAME}" ]; then diff --git a/platform/android/build.gradle b/platform/android/build.gradle index 9047bb5d96..b932188e77 100644 --- a/platform/android/build.gradle +++ b/platform/android/build.gradle @@ -1,4 +1,5 @@ buildscript { + apply from: "${rootDir}/gradle/gradle-update-vendor-modules.gradle" apply from: "${rootDir}/gradle/dependencies.gradle" repositories { @@ -29,4 +30,3 @@ subprojects { // Load build system information. If this file does not exist, run // `make platform/android/gradle/configuration.gradle` apply from: "${rootDir}/gradle/configuration.gradle" -apply from: "${rootDir}/gradle/gradle-update-vendor-modules.gradle" |