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 has_chrome_android_internal = | 8 has_chrome_android_internal = |
9 exec_script("//build/dir_exists.py", | 9 exec_script("//build/dir_exists.py", |
10 [ rebase_path("//clank", root_build_dir) ], | 10 [ rebase_path("//clank", root_build_dir) ], |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } else { | 122 } else { |
123 assert(false, "Need android libgcc support for your target arch.") | 123 assert(false, "Need android libgcc support for your target arch.") |
124 } | 124 } |
125 | 125 |
126 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-" | 126 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-" |
127 android_readelf = "${android_tool_prefix}readelf" | 127 android_readelf = "${android_tool_prefix}readelf" |
128 android_objcopy = "${android_tool_prefix}objcopy" | 128 android_objcopy = "${android_tool_prefix}objcopy" |
129 android_gdbserver = | 129 android_gdbserver = |
130 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" | 130 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" |
131 | 131 |
132 # stlport stuff -------------------------------------------------------------- | |
133 | |
134 if (component_mode == "shared_library") { | |
135 android_stlport_library = "stlport_shared" | |
136 } else { | |
137 android_stlport_library = "stlport_static" | |
138 } | |
139 | |
140 # ABI ------------------------------------------------------------------------ | 132 # ABI ------------------------------------------------------------------------ |
141 | 133 |
142 if (cpu_arch == "x86") { | 134 if (cpu_arch == "x86") { |
143 android_app_abi = "x86" | 135 android_app_abi = "x86" |
144 } else if (cpu_arch == "arm") { | 136 } else if (cpu_arch == "arm") { |
145 import("//build/config/arm.gni") | 137 import("//build/config/arm.gni") |
146 if (arm_version < 7) { | 138 if (arm_version < 7) { |
147 android_app_abi = "armeabi" | 139 android_app_abi = "armeabi" |
148 } else { | 140 } else { |
149 android_app_abi = "armeabi-v7a" | 141 android_app_abi = "armeabi-v7a" |
150 } | 142 } |
151 } else if (cpu_arch == "mipsel") { | 143 } else if (cpu_arch == "mipsel") { |
152 android_app_abi = "mips" | 144 android_app_abi = "mips" |
153 } else { | 145 } else { |
154 assert(false, "Unknown Android ABI: " + cpu_arch) | 146 assert(false, "Unknown Android ABI: " + cpu_arch) |
155 } | 147 } |
156 } else { | 148 } else { |
157 if (!defined(is_android_webview_build)) { | 149 if (!defined(is_android_webview_build)) { |
158 is_android_webview_build = false | 150 is_android_webview_build = false |
159 } | 151 } |
160 } | 152 } |
OLD | NEW |