| 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 assert(rebase_path("//", root_build_dir) == "../../", | 8 assert(rebase_path("//", root_build_dir) == "../../", |
| 9 "Android output directory must be nested 2 levels within src/ (" + | 9 "Android output directory must be nested 2 levels within src/ (" + |
| 10 "e.g.: out-gn/Debug). http://crbug.com/412935") | 10 "e.g.: out-gn/Debug). http://crbug.com/412935") |
| 11 | 11 |
| 12 import("//build_overrides/build.gni") | 12 import("//build_overrides/build.gni") |
| 13 | 13 |
| 14 # Disable all java-related templates in secondary toolchains. Java is not | |
| 15 # toolchain-dependent, so a variation on toolchains is likely a mistake. | |
| 16 if (enable_java_templates) { | |
| 17 assert(current_toolchain == default_toolchain, | |
| 18 "Android templates should be used only by the default toolchain.") | |
| 19 } | |
| 20 | |
| 21 has_chrome_android_internal = | 14 has_chrome_android_internal = |
| 22 exec_script("//build/dir_exists.py", | 15 exec_script("//build/dir_exists.py", |
| 23 [ rebase_path("//clank", root_build_dir) ], | 16 [ rebase_path("//clank", root_build_dir) ], |
| 24 "string") == "True" | 17 "string") == "True" |
| 25 | 18 |
| 26 if (has_chrome_android_internal) { | 19 if (has_chrome_android_internal) { |
| 27 import("//clank/config.gni") | 20 import("//clank/config.gni") |
| 28 } | 21 } |
| 29 | 22 |
| 30 if (!defined(extra_chrome_shared_library_configs)) { | 23 if (!defined(extra_chrome_shared_library_configs)) { |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 } else if (current_cpu == "mips64el") { | 289 } else if (current_cpu == "mips64el") { |
| 297 android_app_abi = "mips64" | 290 android_app_abi = "mips64" |
| 298 } else { | 291 } else { |
| 299 assert(false, "Unknown Android ABI: " + current_cpu) | 292 assert(false, "Unknown Android ABI: " + current_cpu) |
| 300 } | 293 } |
| 301 | 294 |
| 302 if (android_libcpp_lib_dir == "") { | 295 if (android_libcpp_lib_dir == "") { |
| 303 android_libcpp_lib_dir = "${android_libcpp_root}/libs/${android_app_abi}" | 296 android_libcpp_lib_dir = "${android_libcpp_root}/libs/${android_app_abi}" |
| 304 } | 297 } |
| 305 } | 298 } |
| OLD | NEW |