crashpad/build
Mark Mentovai f8ef834ef5 android: Support “unified headers” with GCC build
Previously, the __ANDROID_API__ macro was provided by
<android/api-level.h>. With unified headers (expected to become the
default in the next NDK release and the sole option in the subsequent
release), this macro is not set properly by headers. When building with
Clang, the standalone toolchain’s clang and clang++ wrappers set the
macro properly. GCC isn’t accounted for in this way, so the build system
must assume the responsibility of setting it.

This change fishes the value of __ANDROID_API__ out of the standalone
toolchain’s clang wrapper and sets the android_api_level GYP variable
appropriately. From there, it will be picked up by common.gypi in
mini_chromium and used to define __ANDROID_API__.

This updates mini_chromium to 62e6015f633dd4acb1610db15a064889315cadaa
which understands this new GYP variable.

62e6015f633d android: Support “unified headers” with GCC build

https://android.googlesource.com/platform/ndk/+/master/docs/UnifiedHeaders.md
https://android.googlesource.com/platform/ndk/+/ndk-r14/CHANGELOG.md

Bug: crashpad:30
Change-Id: I33e66eba8394e32ced8dca80c8226b85e0e786f3
Reviewed-on: https://chromium-review.googlesource.com/458021
Commit-Queue: Mark Mentovai <mark@chromium.org>
Reviewed-by: Scott Graham <scottmg@chromium.org>
2017-03-23 19:20:35 +00:00
..
crashpad.gypi GCC fix: Disable -Wmultichar warning throughout Crashpad 2016-11-11 17:35:25 +00:00
crashpad_dependencies.gypi Remove vestigial support for in-Chromium GYP build 2017-02-16 18:33:54 +00:00
gyp_crashpad.py android: Add gyp_crashpad_android.py for easier Android development 2017-03-23 00:15:26 +00:00
gyp_crashpad_android.py android: Support “unified headers” with GCC build 2017-03-23 19:20:35 +00:00
run_tests.py Make run_tests.py work with paths instead of configuration names 2017-03-22 01:45:16 +00:00