| 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 import("//base/android/linker/config.gni") | 5 import("//base/android/linker/config.gni") |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/android/internal_rules.gni") | 7 import("//build/config/android/internal_rules.gni") |
| 8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
| 9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
| 10 import("//third_party/android_platform/config.gni") | 10 import("//third_party/android_platform/config.gni") |
| (...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1586 action("${_template_name}_dist_ijar") { | 1586 action("${_template_name}_dist_ijar") { |
| 1587 script = "//build/android/gyp/create_dist_jar.py" | 1587 script = "//build/android/gyp/create_dist_jar.py" |
| 1588 depfile = "$target_gen_dir/$target_name.d" | 1588 depfile = "$target_gen_dir/$target_name.d" |
| 1589 inputs = [ | 1589 inputs = [ |
| 1590 _build_config, | 1590 _build_config, |
| 1591 ] | 1591 ] |
| 1592 outputs = [ | 1592 outputs = [ |
| 1593 depfile, | 1593 depfile, |
| 1594 "${_dist_ijar_path}", | 1594 "${_dist_ijar_path}", |
| 1595 ] | 1595 ] |
| 1596 data = [ |
| 1597 _dist_ijar_path, |
| 1598 ] |
| 1596 args = [ | 1599 args = [ |
| 1597 "--depfile", | 1600 "--depfile", |
| 1598 rebase_path(depfile, root_build_dir), | 1601 rebase_path(depfile, root_build_dir), |
| 1599 "--output", | 1602 "--output", |
| 1600 rebase_path("${_dist_ijar_path}", root_build_dir), | 1603 rebase_path("${_dist_ijar_path}", root_build_dir), |
| 1601 "--inputs=@FileArg($_rebased_build_config:dist_jar:all_interface_jars)", | 1604 "--inputs=@FileArg($_rebased_build_config:dist_jar:all_interface_jars)", |
| 1602 ] | 1605 ] |
| 1603 deps = [ | 1606 deps = [ |
| 1604 ":$build_config_target", # Generates the build config file. | 1607 ":$build_config_target", # Generates the build config file. |
| 1605 ":$java_target", # Generates the jar file. | 1608 ":$java_target", # Generates the jar file. |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2042 public_deps = [ | 2045 public_deps = [ |
| 2043 ":$_apk_target_name", | 2046 ":$_apk_target_name", |
| 2044 ":$_test_runner_target_name", | 2047 ":$_test_runner_target_name", |
| 2045 | 2048 |
| 2046 # Required by test runner to enumerate test list. | 2049 # Required by test runner to enumerate test list. |
| 2047 ":${_apk_target_name}_dist_ijar", | 2050 ":${_apk_target_name}_dist_ijar", |
| 2048 ] | 2051 ] |
| 2049 if (defined(invoker.apk_under_test)) { | 2052 if (defined(invoker.apk_under_test)) { |
| 2050 public_deps += [ invoker.apk_under_test ] | 2053 public_deps += [ invoker.apk_under_test ] |
| 2051 } | 2054 } |
| 2055 if (defined(invoker.isolate_file)) { |
| 2056 isolate_values = exec_script("//build/gypi_to_gn.py", |
| 2057 [ |
| 2058 rebase_path(invoker.isolate_file), |
| 2059 "--replace", |
| 2060 "<(DEPTH)=/", |
| 2061 ], |
| 2062 "scope", |
| 2063 [ invoker.isolate_file ]) |
| 2064 data = isolate_values.files |
| 2065 } |
| 2052 } | 2066 } |
| 2053 | 2067 |
| 2054 # TODO(GYP): Delete once recipes no longer use this target. | 2068 # TODO(GYP): Delete once recipes no longer use this target. |
| 2055 group("${target_name}_run") { | 2069 group("${target_name}_run") { |
| 2056 public_deps = [ | 2070 public_deps = [ |
| 2057 ":${invoker.target_name}", | 2071 ":${invoker.target_name}", |
| 2058 ] | 2072 ] |
| 2059 } | 2073 } |
| 2060 group("${target_name}_incremental") { | 2074 group("${target_name}_incremental") { |
| 2061 public_deps = [ | 2075 public_deps = [ |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2403 "--target", | 2417 "--target", |
| 2404 rebase_path(invoker.target, root_build_dir), | 2418 rebase_path(invoker.target, root_build_dir), |
| 2405 "--output-directory", | 2419 "--output-directory", |
| 2406 rebase_path(root_out_dir, root_build_dir), | 2420 rebase_path(root_out_dir, root_build_dir), |
| 2407 ] | 2421 ] |
| 2408 if (defined(invoker.flag_name)) { | 2422 if (defined(invoker.flag_name)) { |
| 2409 args += [ "--flag-name=${invoker.flag_name}" ] | 2423 args += [ "--flag-name=${invoker.flag_name}" ] |
| 2410 } | 2424 } |
| 2411 } | 2425 } |
| 2412 } | 2426 } |
| OLD | NEW |