diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-07-23 17:55:02 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-08-15 20:41:07 +0300 |
commit | a03912d2db83f4aa3882eef2521e09d08167a231 (patch) | |
tree | 9fddf22245df6a46b9e8a76f3b27d52bf6a28d30 | |
parent | 54ea5f8cdeb18e8946f34ff9adc951a9745b7d39 (diff) | |
download | qtlocation-mapboxgl-a03912d2db83f4aa3882eef2521e09d08167a231.tar.gz |
[build] Simplify Android cmake integration
CMake will detect that is building for Android automatically,
we don't need extra variables.
-rw-r--r-- | platform/android/build.gradle | 6 | ||||
-rw-r--r-- | platform/android/gradle/native-build.gradle | 11 |
2 files changed, 3 insertions, 14 deletions
diff --git a/platform/android/build.gradle b/platform/android/build.gradle index 46666e2ef1..adc703ea55 100644 --- a/platform/android/build.gradle +++ b/platform/android/build.gradle @@ -31,8 +31,4 @@ allprojects { subprojects { apply from: "${rootDir}/gradle/dependencies.gradle" -} - -// Load build system information. If this file does not exist, run -// `make platform/android/gradle/configuration.gradle` -apply from: "${rootDir}/gradle/configuration.gradle"
\ No newline at end of file +}
\ No newline at end of file diff --git a/platform/android/gradle/native-build.gradle b/platform/android/gradle/native-build.gradle index 0c16c379dd..d9c4cda75a 100644 --- a/platform/android/gradle/native-build.gradle +++ b/platform/android/gradle/native-build.gradle @@ -40,19 +40,12 @@ ext.nativeBuild = { nativeTargets -> arguments "-DANDROID_TOOLCHAIN=clang" arguments "-DANDROID_STL=" + stl arguments "-DANDROID_CPP_FEATURES=exceptions" - arguments "-DMBGL_PLATFORM=android" - arguments "-DMASON_PLATFORM=android" - arguments "-DNodeJS_EXECUTABLE=" + node - arguments "-Dnpm_EXECUTABLE=" + npm // Enable ccache if the user has installed it. - if (ccache?.trim()) { - arguments "-DANDROID_CCACHE=" + ccache + if (file("/usr/bin/ccache").exists()) { + arguments "-DANDROID_CCACHE=/usr/bin/ccache" } - cFlags "-Qunused-arguments" - cppFlags "-Qunused-arguments" - for (target in nativeTargets) { targets target } |