| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # This file contains common system config stuff for the Android build. | 5 # This file contains common system config stuff for the Android build. |
| 6 | 6 |
| 7 if (is_android) { | 7 if (is_android) { |
| 8 declare_args() { | 8 declare_args() { |
| 9 # Absolute directory containing the Android source code. | 9 # Absolute directory containing the Android source code. |
| 10 android_src = "" | 10 android_src = "" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 } else { | 39 } else { |
| 40 assert(false, "Need Android toolchain support for your build OS.") | 40 assert(false, "Need Android toolchain support for your build OS.") |
| 41 } | 41 } |
| 42 | 42 |
| 43 # Directories and files ------------------------------------------------------ | 43 # Directories and files ------------------------------------------------------ |
| 44 # | 44 # |
| 45 # We define may of the dirs strings here for each output architecture (rather | 45 # We define may of the dirs strings here for each output architecture (rather |
| 46 # than just the current one) since these are needed by the Android toolchain | 46 # than just the current one) since these are needed by the Android toolchain |
| 47 # file to define toolchains for all possible targets in one pass. | 47 # file to define toolchains for all possible targets in one pass. |
| 48 | 48 |
| 49 # Path to the Android NDK. | 49 # Path to the Android NDK and SDK. |
| 50 android_ndk_root = "//third_party/android_tools/ndk" | 50 android_ndk_root = "//third_party/android_tools/ndk" |
| 51 android_sdk_root = "//third_party/android_tools/sdk" |
| 52 |
| 53 # Path to the SDK's android.jar |
| 54 android_sdk_jar = "$android_sdk_root/platforms/android-19/android.jar" |
| 51 | 55 |
| 52 # Subdirectories inside android_ndk_root that contain the sysroot for the | 56 # Subdirectories inside android_ndk_root that contain the sysroot for the |
| 53 # associated platform. | 57 # associated platform. |
| 54 _android_api_level = 14 | 58 _android_api_level = 14 |
| 55 x86_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-x86
" | 59 x86_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-x86
" |
| 56 arm_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-arm
" | 60 arm_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-arm
" |
| 57 mips_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-mi
ps" | 61 mips_android_sysroot_subdir = "platforms/android-${_android_api_level}/arch-mi
ps" |
| 58 | 62 |
| 59 # Toolchain root directory for each build. The actual binaries are inside | 63 # Toolchain root directory for each build. The actual binaries are inside |
| 60 # a "bin" directory inside of these. | 64 # a "bin" directory inside of these. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 android_app_abi = "mips" | 110 android_app_abi = "mips" |
| 107 } else { | 111 } else { |
| 108 assert(false, "Unknown Android ABI: " + cpu_arch) | 112 assert(false, "Unknown Android ABI: " + cpu_arch) |
| 109 } | 113 } |
| 110 } else { | 114 } else { |
| 111 if (!defined(is_android_webview_build)) { | 115 if (!defined(is_android_webview_build)) { |
| 112 is_android_webview_build = false | 116 is_android_webview_build = false |
| 113 } | 117 } |
| 114 use_system_stlport = false | 118 use_system_stlport = false |
| 115 } | 119 } |
| OLD | NEW |