| 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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 action(target_name) { | 532 action(target_name) { |
| 533 set_sources_assignment_filter([]) | 533 set_sources_assignment_filter([]) |
| 534 forward_variables_from(invoker, | 534 forward_variables_from(invoker, |
| 535 [ | 535 [ |
| 536 "deps", | 536 "deps", |
| 537 "data_deps", | 537 "data_deps", |
| 538 "public_deps", | 538 "public_deps", |
| 539 "testonly", | 539 "testonly", |
| 540 ]) | 540 ]) |
| 541 script = "//build/android/gyp/proguard.py" | 541 script = "//build/android/gyp/proguard.py" |
| 542 _proguard_jar_path = "//third_party/proguard/lib/proguard.jar" | 542 if (defined(invoker.proguard_jar_path)) { |
| 543 _proguard_jar_path = invoker.proguard_jar_path |
| 544 } else { |
| 545 _proguard_jar_path = "//third_party/proguard/lib/proguard.jar" |
| 546 } |
| 543 _output_jar_path = invoker.output_jar_path | 547 _output_jar_path = invoker.output_jar_path |
| 544 inputs = [ | 548 inputs = [ |
| 545 _proguard_jar_path, | 549 _proguard_jar_path, |
| 546 ] | 550 ] |
| 547 if (defined(invoker.alternative_android_sdk_jar)) { | 551 if (defined(invoker.alternative_android_sdk_jar)) { |
| 548 inputs += [ invoker.alternative_android_sdk_jar ] | 552 inputs += [ invoker.alternative_android_sdk_jar ] |
| 549 _rebased_android_sdk_jar = | 553 _rebased_android_sdk_jar = |
| 550 rebase_path(invoker.alternative_android_sdk_jar) | 554 rebase_path(invoker.alternative_android_sdk_jar) |
| 551 } else { | 555 } else { |
| 552 inputs += [ android_sdk_jar ] | 556 inputs += [ android_sdk_jar ] |
| (...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2368 outputs = [ | 2372 outputs = [ |
| 2369 depfile, | 2373 depfile, |
| 2370 invoker.out_manifest, | 2374 invoker.out_manifest, |
| 2371 ] | 2375 ] |
| 2372 inputs = [ | 2376 inputs = [ |
| 2373 invoker.main_manifest, | 2377 invoker.main_manifest, |
| 2374 ] | 2378 ] |
| 2375 } | 2379 } |
| 2376 } | 2380 } |
| 2377 } | 2381 } |
| OLD | NEW |