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("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
7 | 7 |
8 assert(is_android) | 8 assert(is_android) |
9 | 9 |
10 # Write the target's .build_config file. This is a json file that contains a | 10 # Write the target's .build_config file. This is a json file that contains a |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
550 if (defined(invoker.proguard_jar_path)) { | 550 if (defined(invoker.proguard_jar_path)) { |
551 _proguard_jar_path = invoker.proguard_jar_path | 551 _proguard_jar_path = invoker.proguard_jar_path |
552 } else { | 552 } else { |
553 _proguard_jar_path = "//third_party/proguard/lib/proguard.jar" | 553 _proguard_jar_path = "//third_party/proguard/lib/proguard.jar" |
554 } | 554 } |
555 _output_jar_path = invoker.output_jar_path | 555 _output_jar_path = invoker.output_jar_path |
556 _input_jars_paths = [] | 556 _input_jars_paths = [] |
557 if (defined(invoker.input_jars_paths)) { | 557 if (defined(invoker.input_jars_paths)) { |
558 _input_jars_paths += invoker.input_jars_paths | 558 _input_jars_paths += invoker.input_jars_paths |
559 } | 559 } |
560 inputs = [ | 560 inputs = _input_jars_paths + [ _proguard_jar_path ] |
561 _proguard_jar_path, | |
562 ] | |
563 if (defined(invoker.alternative_android_sdk_jar)) { | 561 if (defined(invoker.alternative_android_sdk_jar)) { |
564 inputs += [ invoker.alternative_android_sdk_jar ] | 562 inputs += [ invoker.alternative_android_sdk_jar ] |
565 _rebased_android_sdk_jar = | 563 _rebased_android_sdk_jar = |
566 rebase_path(invoker.alternative_android_sdk_jar) | 564 rebase_path(invoker.alternative_android_sdk_jar) |
567 } else { | 565 } else { |
568 inputs += [ android_sdk_jar ] | 566 inputs += [ android_sdk_jar ] |
569 _rebased_android_sdk_jar = rebased_android_sdk_jar | 567 _rebased_android_sdk_jar = rebased_android_sdk_jar |
570 } | 568 } |
571 if (defined(invoker.inputs)) { | 569 if (defined(invoker.inputs)) { |
572 inputs += invoker.inputs | 570 inputs += invoker.inputs |
(...skipping 11 matching lines...) Expand all Loading... | |
584 "--depfile", | 582 "--depfile", |
585 rebase_path(depfile, root_build_dir), | 583 rebase_path(depfile, root_build_dir), |
586 "--proguard-path", | 584 "--proguard-path", |
587 rebase_path(_proguard_jar_path, root_build_dir), | 585 rebase_path(_proguard_jar_path, root_build_dir), |
588 "--output-path", | 586 "--output-path", |
589 rebase_path(_output_jar_path, root_build_dir), | 587 rebase_path(_output_jar_path, root_build_dir), |
590 "--classpath", | 588 "--classpath", |
591 _rebased_android_sdk_jar, | 589 _rebased_android_sdk_jar, |
592 ] | 590 ] |
593 foreach(c, _input_jars_paths) { | 591 foreach(c, _input_jars_paths) { |
594 args += [ "--classpath=" + c ] | 592 args += [ "--classpath=" + rebase_path(c, root_build_dir) ] |
paulmiller
2016/06/28 18:10:20
I did the rebase in third_party/android/BUILD.gn,
agrieve
2016/06/28 18:35:05
:( That's definitely the wrong place for it. We'll
paulmiller
2016/06/28 18:40:48
I would have thought that rebase_path would be sma
| |
595 } | 593 } |
596 if (proguard_verbose) { | 594 if (proguard_verbose) { |
597 args += [ "--verbose" ] | 595 args += [ "--verbose" ] |
598 } | 596 } |
599 if (defined(invoker.args)) { | 597 if (defined(invoker.args)) { |
600 args += invoker.args | 598 args += invoker.args |
601 } | 599 } |
602 } | 600 } |
603 } | 601 } |
604 | 602 |
(...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2395 outputs = [ | 2393 outputs = [ |
2396 depfile, | 2394 depfile, |
2397 invoker.out_manifest, | 2395 invoker.out_manifest, |
2398 ] | 2396 ] |
2399 inputs = [ | 2397 inputs = [ |
2400 invoker.main_manifest, | 2398 invoker.main_manifest, |
2401 ] | 2399 ] |
2402 } | 2400 } |
2403 } | 2401 } |
2404 } | 2402 } |
OLD | NEW |