[android] add support for gnustl

This commit is contained in:
Konstantin Käfer
2018-06-21 14:44:00 +02:00
parent 30e570aae7
commit 4a3c4edb59
17 changed files with 59 additions and 29 deletions

View File

@@ -59,12 +59,18 @@ android {
}
}
// Allow determining the C++ STL we're using when building Mapbox GL.
def stl = 'c++_static'
if (project.hasProperty("mapbox.stl")) {
stl = project.getProperty("mapbox.stl")
}
defaultConfig {
if (abi != 'none') {
externalNativeBuild {
cmake {
arguments "-DANDROID_TOOLCHAIN=clang"
arguments "-DANDROID_STL=c++_static"
arguments "-DANDROID_STL=" + stl
arguments "-DANDROID_CPP_FEATURES=rtti;exceptions"
arguments "-DMBGL_PLATFORM=android"
arguments "-DMASON_PLATFORM=android"