diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-07-13 13:50:50 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-07-13 13:50:50 +0300 |
commit | cc3a81291a124db9e1dd6921616869631863ab61 (patch) | |
tree | 6a60b00b6c11c620806b37384076a86304731a33 | |
parent | 174d367699ad647cba46b8e521f25b436c33fee2 (diff) | |
download | qtlocation-mapboxgl-cc3a81291a124db9e1dd6921616869631863ab61.tar.gz |
[android] Build release with -Os and -fvisibility=hidden
Optimize for size.
-rw-r--r-- | mbgl.gypi | 2 | ||||
-rw-r--r-- | platform/android/platform.gyp | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -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, }, |