[Android] Make android_ndk_root configurable.

BUG=pdfium:38

Review-Url: https://codereview.chromium.org/1977723002
Cr-Original-Commit-Position: refs/heads/master@{#394135}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 12d4ff12cfb3c6bc3a51d35f91d08d73d8f14e64
This commit is contained in:
jbudorick 2016-05-17 08:46:22 -07:00 коммит произвёл Commit bot
Родитель 00dd1c02cf
Коммит 8a737cced1
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -21,6 +21,10 @@ if (is_android) {
extra_chrome_shared_library_configs = []
}
if (!defined(default_android_ndk_root)) {
default_android_ndk_root = "//third_party/android_tools/ndk"
}
if (!defined(default_android_sdk_root)) {
default_android_sdk_root = "//third_party/android_tools/sdk"
default_android_sdk_version = "23"
@ -51,6 +55,8 @@ if (is_android) {
}
declare_args() {
android_ndk_root = default_android_ndk_root
android_sdk_root = default_android_sdk_root
android_sdk_version = default_android_sdk_version
android_sdk_build_tools_version = default_android_sdk_build_tools_version
@ -147,7 +153,6 @@ if (is_android) {
android_sdk = "${android_sdk_root}/platforms/android-${android_sdk_version}"
# Path to the Android NDK and SDK.
android_ndk_root = "//third_party/android_tools/ndk"
android_ndk_include_dir = "$android_ndk_root/usr/include"
android_sdk_tools = "${android_sdk_root}/tools"