| 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/android/internal_rules.gni") | 6 import("//build/config/android/internal_rules.gni") |
| 7 import("//build/toolchain/toolchain.gni") | 7 import("//build/toolchain/toolchain.gni") |
| 8 | 8 |
| 9 assert(is_android) | 9 assert(is_android) |
| 10 | 10 |
| (...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1822 ":$java_target", # Generates the jar file. | 1822 ":$java_target", # Generates the jar file. |
| 1823 ] | 1823 ] |
| 1824 } | 1824 } |
| 1825 } | 1825 } |
| 1826 | 1826 |
| 1827 if (_proguard_enabled) { | 1827 if (_proguard_enabled) { |
| 1828 _proguard_configs = [ _generated_proguard_config ] | 1828 _proguard_configs = [ _generated_proguard_config ] |
| 1829 if (defined(invoker.proguard_configs)) { | 1829 if (defined(invoker.proguard_configs)) { |
| 1830 _proguard_configs += invoker.proguard_configs | 1830 _proguard_configs += invoker.proguard_configs |
| 1831 } | 1831 } |
| 1832 assert(_proguard_configs != []) # Mark as used. |
| 1832 _proguard_target = "${_template_name}__proguard" | 1833 _proguard_target = "${_template_name}__proguard" |
| 1833 proguard(_proguard_target) { | 1834 proguard(_proguard_target) { |
| 1834 forward_variables_from(invoker, | 1835 forward_variables_from(invoker, |
| 1835 [ | 1836 [ |
| 1836 "alternative_android_sdk_jar", | 1837 "alternative_android_sdk_jar", |
| 1837 "proguard_jar_path", | 1838 "proguard_jar_path", |
| 1838 ]) | 1839 ]) |
| 1839 deps = [ | 1840 deps = [ |
| 1840 ":$build_config_target", | 1841 ":$build_config_target", |
| 1841 ":$java_target", | 1842 ":$java_target", |
| 1842 ":$process_resources_target", | 1843 ":$process_resources_target", |
| 1843 ] | 1844 ] |
| 1845 if (!enable_all_proguard_optimizations) { |
| 1846 _proguard_configs += [ "//testing/android/proguard_for_test.flags" ] |
| 1847 } |
| 1844 inputs = [ | 1848 inputs = [ |
| 1845 _build_config, | 1849 _build_config, |
| 1846 _jar_path, | 1850 _jar_path, |
| 1847 ] + _proguard_configs | 1851 ] + _proguard_configs |
| 1848 | 1852 |
| 1849 output_jar_path = _proguard_output_jar_path | 1853 output_jar_path = _proguard_output_jar_path |
| 1850 _rebased_proguard_configs = | 1854 _rebased_proguard_configs = |
| 1851 rebase_path(_proguard_configs, root_build_dir) | 1855 rebase_path(_proguard_configs, root_build_dir) |
| 1852 args = [ | 1856 args = [ |
| 1853 "--proguard-configs=$_rebased_proguard_configs", | 1857 "--proguard-configs=$_rebased_proguard_configs", |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2549 android_library(target_name) { | 2553 android_library(target_name) { |
| 2550 chromium_code = false | 2554 chromium_code = false |
| 2551 java_files = [] | 2555 java_files = [] |
| 2552 srcjar_deps = [ ":${_template_name}__protoc_java" ] | 2556 srcjar_deps = [ ":${_template_name}__protoc_java" ] |
| 2553 deps = [ | 2557 deps = [ |
| 2554 "//third_party/android_protobuf:protobuf_nano_javalib", | 2558 "//third_party/android_protobuf:protobuf_nano_javalib", |
| 2555 ] | 2559 ] |
| 2556 } | 2560 } |
| 2557 } | 2561 } |
| 2558 } | 2562 } |
| OLD | NEW |