Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] change vendor modules update script
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPaczos committed Jan 15, 2019
1 parent ab7e7e0 commit de12f59
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -765,7 +770,7 @@ android-update-vendor: platform/android/gradle/configuration.gradle

# Creates a dependency graph using Graphviz
.PHONY: android-graph
android-graph:
android-graph: platform/android/gradle/configuration.gradle
cd platform/android && $(MBGL_ANDROID_GRADLE) -Pmapbox.abis=none :MapboxGLAndroidSDK:generateDependencyGraphMapboxLibraries

#### Miscellaneous targets #####################################################
Expand Down
6 changes: 0 additions & 6 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,6 @@ jobs:
MBGL_ANDROID_STL: << parameters.stl >>
steps:
- install-dependencies: { gradle: true }
- run:
name: Update vendor submodules
command: make android-update-vendor
- run:
name: Check code style
command: make android-check
Expand Down Expand Up @@ -595,9 +592,6 @@ jobs:
IS_LOCAL_DEVELOPMENT: false
steps:
- install-dependencies: { gradle: true }
- run:
name: Update vendor submodules
command: make android-update-vendor
- run:
name: Generate Maven credentials
command: |
Expand Down
2 changes: 1 addition & 1 deletion platform/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
buildscript {
apply from: "${rootDir}/gradle/gradle-update-vendor-modules.gradle"
apply from: "${rootDir}/gradle/dependencies.gradle"

repositories {
Expand Down Expand Up @@ -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"

0 comments on commit de12f59

Please sign in to comment.