| 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("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//third_party/ijar/ijar.gni") |
| 6 | 7 |
| 7 assert(is_android) | 8 assert(is_android) |
| 8 | 9 |
| 9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) | 10 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) |
| 10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) | 11 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) |
| 11 rebased_android_sdk_build_tools = | 12 rebased_android_sdk_build_tools = |
| 12 rebase_path(android_sdk_build_tools, root_build_dir) | 13 rebase_path(android_sdk_build_tools, root_build_dir) |
| 13 | 14 |
| 14 android_sdk_jar = "$android_sdk/android.jar" | 15 android_sdk_jar = "$android_sdk/android.jar" |
| 15 rebased_android_sdk_jar = rebase_path(android_sdk_jar, root_build_dir) | 16 rebased_android_sdk_jar = rebase_path(android_sdk_jar, root_build_dir) |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 ]) | 470 ]) |
| 470 sources = [ | 471 sources = [ |
| 471 _input_jar_path, | 472 _input_jar_path, |
| 472 ] | 473 ] |
| 473 outputs = [ | 474 outputs = [ |
| 474 _output_jar_path, | 475 _output_jar_path, |
| 475 ] | 476 ] |
| 476 } | 477 } |
| 477 } | 478 } |
| 478 | 479 |
| 479 action("${target_name}__jar_toc") { | 480 # TODO(agrieve): Change file extension to .ijar and use them in classpaths. |
| 480 script = "//build/android/gyp/jar_toc.py" | 481 generate_interface_jar("${target_name}__jar_toc") { |
| 481 depfile = "$target_gen_dir/$target_name.d" | 482 input_jar = _output_jar_path |
| 482 outputs = [ | 483 output_jar = _jar_toc_path |
| 483 depfile, | 484 deps = [ |
| 484 _jar_toc_path, | |
| 485 _jar_toc_path + ".md5.stamp", | |
| 486 ] | |
| 487 inputs = [ | |
| 488 _output_jar_path, | |
| 489 ] | |
| 490 args = [ | |
| 491 "--depfile", | |
| 492 rebase_path(depfile, root_build_dir), | |
| 493 "--jar-path", | |
| 494 rebase_path(_output_jar_path, root_build_dir), | |
| 495 "--toc-path", | |
| 496 rebase_path(_jar_toc_path, root_build_dir), | |
| 497 ] | |
| 498 public_deps = [ | |
| 499 ":$_output_jar_target", | 485 ":$_output_jar_target", |
| 500 ] | 486 ] |
| 501 } | 487 } |
| 502 | 488 |
| 503 group(target_name) { | 489 group(target_name) { |
| 504 forward_variables_from(invoker, [ "visibility" ]) | 490 forward_variables_from(invoker, [ "visibility" ]) |
| 505 public_deps = [ | 491 public_deps = [ |
| 506 ":${target_name}__jar_toc", | 492 ":${target_name}__jar_toc", |
| 507 ":$_output_jar_target", | 493 ":$_output_jar_target", |
| 508 ] | 494 ] |
| (...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1629 ] | 1615 ] |
| 1630 args = [ | 1616 args = [ |
| 1631 "--depfile", | 1617 "--depfile", |
| 1632 rebase_path(depfile, root_build_dir), | 1618 rebase_path(depfile, root_build_dir), |
| 1633 "--script-output-path", | 1619 "--script-output-path", |
| 1634 rebase_path(generated_script, root_build_dir), | 1620 rebase_path(generated_script, root_build_dir), |
| 1635 ] | 1621 ] |
| 1636 args += test_runner_args | 1622 args += test_runner_args |
| 1637 } | 1623 } |
| 1638 } | 1624 } |
| OLD | NEW |