Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: build/config/android/rules.gni

Issue 2123753005: Creating new gn arg: enable_all_proguard_optimizations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing from 2 apks to gn arg which controls optimizations Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 ":$java_target", # Generates the jar file. 1832 ":$java_target", # Generates the jar file.
1833 ] 1833 ]
1834 } 1834 }
1835 } 1835 }
1836 1836
1837 if (_proguard_enabled) { 1837 if (_proguard_enabled) {
1838 _proguard_configs = [ _generated_proguard_config ] 1838 _proguard_configs = [ _generated_proguard_config ]
1839 if (defined(invoker.proguard_configs)) { 1839 if (defined(invoker.proguard_configs)) {
1840 _proguard_configs += invoker.proguard_configs 1840 _proguard_configs += invoker.proguard_configs
1841 } 1841 }
1842 assert(_proguard_configs != []) # Mark as used.
agrieve 2016/07/08 14:26:20 still necessary?
1842 _proguard_target = "${_template_name}__proguard" 1843 _proguard_target = "${_template_name}__proguard"
1843 proguard(_proguard_target) { 1844 proguard(_proguard_target) {
1844 forward_variables_from(invoker, 1845 forward_variables_from(invoker,
1845 [ 1846 [
1846 "alternative_android_sdk_jar", 1847 "alternative_android_sdk_jar",
1847 "proguard_jar_path", 1848 "proguard_jar_path",
1848 ]) 1849 ])
1849 deps = [ 1850 deps = [
1850 ":$build_config_target", 1851 ":$build_config_target",
1851 ":$java_target", 1852 ":$java_target",
1852 ":$process_resources_target", 1853 ":$process_resources_target",
1853 ] 1854 ]
1855 if (!enable_all_proguard_optimizations) {
1856 _proguard_configs += [ "//testing/android/proguard_for_test.flags" ]
1857 }
1854 inputs = [ 1858 inputs = [
1855 _build_config, 1859 _build_config,
1856 _jar_path, 1860 _jar_path,
1857 ] + _proguard_configs 1861 ] + _proguard_configs
1858 1862
1859 output_jar_path = _proguard_output_jar_path 1863 output_jar_path = _proguard_output_jar_path
1860 _rebased_proguard_configs = 1864 _rebased_proguard_configs =
1861 rebase_path(_proguard_configs, root_build_dir) 1865 rebase_path(_proguard_configs, root_build_dir)
1862 args = [ 1866 args = [
1863 "--proguard-configs=$_rebased_proguard_configs", 1867 "--proguard-configs=$_rebased_proguard_configs",
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
2559 android_library(target_name) { 2563 android_library(target_name) {
2560 chromium_code = false 2564 chromium_code = false
2561 java_files = [] 2565 java_files = []
2562 srcjar_deps = [ ":${_template_name}__protoc_java" ] 2566 srcjar_deps = [ ":${_template_name}__protoc_java" ]
2563 deps = [ 2567 deps = [
2564 "//third_party/android_protobuf:protobuf_nano_javalib", 2568 "//third_party/android_protobuf:protobuf_nano_javalib",
2565 ] 2569 ]
2566 } 2570 }
2567 } 2571 }
2568 } 2572 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698