| 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 # Do not add any imports to non-//build directories here. | 5 # Do not add any imports to non-//build directories here. |
| 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. | 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. |
| 7 import("//build_overrides/build.gni") | 7 import("//build_overrides/build.gni") |
| 8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
| 9 import("//build/config/sanitizers/sanitizers.gni") | 9 import("//build/config/sanitizers/sanitizers.gni") |
| 10 | 10 |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 # deps = [ ":foo(//baz)" ] | 364 # deps = [ ":foo(//baz)" ] |
| 365 # assert(current_toolchain == default_toolchain) | 365 # assert(current_toolchain == default_toolchain) |
| 366 # } | 366 # } |
| 367 _msg = [ | 367 _msg = [ |
| 368 "Tried to build an Android target in a non-default toolchain.", | 368 "Tried to build an Android target in a non-default toolchain.", |
| 369 "target: " + get_label_info(":$target_name", "label_with_toolchain"), | 369 "target: " + get_label_info(":$target_name", "label_with_toolchain"), |
| 370 "default_toolchain: $default_toolchain", | 370 "default_toolchain: $default_toolchain", |
| 371 ] | 371 ] |
| 372 args += [ "--fail=$_msg" ] | 372 args += [ "--fail=$_msg" ] |
| 373 } | 373 } |
| 374 if (defined(invoker.not_chromium_code) && invoker.not_chromium_code) { |
| 375 args += [ "--not-chromium-code" ] |
| 376 } |
| 374 } | 377 } |
| 375 } | 378 } |
| 376 | 379 |
| 377 template("copy_ex") { | 380 template("copy_ex") { |
| 378 set_sources_assignment_filter([]) | 381 set_sources_assignment_filter([]) |
| 379 action(target_name) { | 382 action(target_name) { |
| 380 forward_variables_from(invoker, | 383 forward_variables_from(invoker, |
| 381 [ | 384 [ |
| 382 "data", | 385 "data", |
| 383 "deps", | 386 "deps", |
| (...skipping 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2268 forward_variables_from(invoker, | 2271 forward_variables_from(invoker, |
| 2269 [ | 2272 [ |
| 2270 "input_jars_paths", | 2273 "input_jars_paths", |
| 2271 "proguard_configs", | 2274 "proguard_configs", |
| 2272 ]) | 2275 ]) |
| 2273 if (defined(invoker.is_java_binary) && invoker.is_java_binary) { | 2276 if (defined(invoker.is_java_binary) && invoker.is_java_binary) { |
| 2274 type = "java_binary" | 2277 type = "java_binary" |
| 2275 } else { | 2278 } else { |
| 2276 type = "java_library" | 2279 type = "java_library" |
| 2277 } | 2280 } |
| 2281 not_chromium_code = false |
| 2282 |
| 2283 # If it's not chromium code then we don't support modifying it in |
| 2284 # android studio. |
| 2285 if (defined(invoker.chromium_code) && !invoker.chromium_code) { |
| 2286 not_chromium_code = true |
| 2287 } |
| 2278 if (defined(invoker.deps)) { | 2288 if (defined(invoker.deps)) { |
| 2279 possible_config_deps = invoker.deps | 2289 possible_config_deps = invoker.deps |
| 2280 } | 2290 } |
| 2281 supports_android = _supports_android | 2291 supports_android = _supports_android |
| 2282 requires_android = _requires_android | 2292 requires_android = _requires_android |
| 2283 bypass_platform_checks = defined(invoker.bypass_platform_checks) && | 2293 bypass_platform_checks = defined(invoker.bypass_platform_checks) && |
| 2284 invoker.bypass_platform_checks | 2294 invoker.bypass_platform_checks |
| 2285 | 2295 |
| 2286 build_config = _build_config | 2296 build_config = _build_config |
| 2287 jar_path = _jar_path | 2297 jar_path = _jar_path |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2703 rebase_path(root_build_dir, root_build_dir), | 2713 rebase_path(root_build_dir, root_build_dir), |
| 2704 "--packed-libraries-dir", | 2714 "--packed-libraries-dir", |
| 2705 rebase_path(_packed_libraries_dir, root_build_dir), | 2715 rebase_path(_packed_libraries_dir, root_build_dir), |
| 2706 "--libraries=${invoker.libraries_filearg}", | 2716 "--libraries=${invoker.libraries_filearg}", |
| 2707 "--filelistjson", | 2717 "--filelistjson", |
| 2708 rebase_path(invoker.file_list_json, root_build_dir), | 2718 rebase_path(invoker.file_list_json, root_build_dir), |
| 2709 ] | 2719 ] |
| 2710 } | 2720 } |
| 2711 } | 2721 } |
| 2712 } | 2722 } |
| OLD | NEW |