summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-07-13 13:50:50 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-07-13 13:50:50 +0300
commitcc3a81291a124db9e1dd6921616869631863ab61 (patch)
tree6a60b00b6c11c620806b37384076a86304731a33
parent174d367699ad647cba46b8e521f25b436c33fee2 (diff)
downloadqtlocation-mapboxgl-cc3a81291a124db9e1dd6921616869631863ab61.tar.gz
[android] Build release with -Os and -fvisibility=hidden
Optimize for size.
-rw-r--r--mbgl.gypi2
-rw-r--r--platform/android/platform.gyp1
2 files changed, 3 insertions, 0 deletions
diff --git a/mbgl.gypi b/mbgl.gypi
index 26e32ac07e..c3dd37b34a 100644
--- a/mbgl.gypi
+++ b/mbgl.gypi
@@ -108,6 +108,8 @@
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
'DEAD_CODE_STRIPPING': 'NO',
},
+ }, 'OS=="android"', {
+ 'cflags_cc': [ '-g', '-Os', '-fvisibility=hidden' ],
}, {
'cflags_cc': [ '-g', '-O3' ],
}],
diff --git a/platform/android/platform.gyp b/platform/android/platform.gyp
index 964492a21e..c5b81c9748 100644
--- a/platform/android/platform.gyp
+++ b/platform/android/platform.gyp
@@ -1,6 +1,7 @@
{
'variables': {
'loop_lib': 'android',
+ 'OS': 'android',
'headless_lib': 'none',
'coverage': 0,
},