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

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

Issue 2632463004: Android: Hook up aapt's main dex proguard rules (Closed)
Patch Set: add as input Created 3 years, 11 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
« no previous file with comments | « build/android/gyp/process_resources.py ('k') | build/config/android/rules.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # Do not add any imports to non-//build directories here. 5 # Do not add any imports to non-//build directories here.
6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in.
7 import("//build_overrides/build.gni") 7 import("//build_overrides/build.gni")
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 import("//build/config/dcheck_always_on.gni") 9 import("//build/config/dcheck_always_on.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 "--depfile", 935 "--depfile",
936 rebase_path(depfile, root_build_dir), 936 rebase_path(depfile, root_build_dir),
937 "--android-sdk-tools", 937 "--android-sdk-tools",
938 rebased_android_sdk_build_tools, 938 rebased_android_sdk_build_tools,
939 "--main-dex-list-path", 939 "--main-dex-list-path",
940 rebase_path(_main_dex_list_path, root_build_dir), 940 rebase_path(_main_dex_list_path, root_build_dir),
941 "--main-dex-rules-path", 941 "--main-dex-rules-path",
942 rebase_path(main_dex_rules, root_build_dir), 942 rebase_path(main_dex_rules, root_build_dir),
943 ] 943 ]
944 944
945 if (defined(invoker.extra_main_dex_proguard_config)) {
946 inputs += [ invoker.extra_main_dex_proguard_config ]
947 args += [
948 "--main-dex-rules-path",
949 rebase_path(invoker.extra_main_dex_proguard_config, root_build_dir),
950 ]
951 }
952
945 if (defined(invoker.args)) { 953 if (defined(invoker.args)) {
946 args += invoker.args 954 args += invoker.args
947 } 955 }
948 956
949 if (defined(invoker.sources)) { 957 if (defined(invoker.sources)) {
950 args += rebase_path(invoker.sources, root_build_dir) 958 args += rebase_path(invoker.sources, root_build_dir)
951 } 959 }
952 } 960 }
953 } 961 }
954 962
(...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 } 2703 }
2696 2704
2697 if (defined(invoker.proguard_file)) { 2705 if (defined(invoker.proguard_file)) {
2698 outputs += [ invoker.proguard_file ] 2706 outputs += [ invoker.proguard_file ]
2699 args += [ 2707 args += [
2700 "--proguard-file", 2708 "--proguard-file",
2701 rebase_path(invoker.proguard_file, root_build_dir), 2709 rebase_path(invoker.proguard_file, root_build_dir),
2702 ] 2710 ]
2703 } 2711 }
2704 2712
2713 if (defined(invoker.proguard_file_main_dex)) {
2714 outputs += [ invoker.proguard_file_main_dex ]
2715 args += [
2716 "--proguard-file-main-dex",
2717 rebase_path(invoker.proguard_file_main_dex, root_build_dir),
2718 ]
2719 }
2720
2705 if (defined(invoker.args)) { 2721 if (defined(invoker.args)) {
2706 args += invoker.args 2722 args += invoker.args
2707 } 2723 }
2708 } 2724 }
2709 } 2725 }
2710 2726
2711 # Produces a single .dex.jar out of a set of Java dependencies. 2727 # Produces a single .dex.jar out of a set of Java dependencies.
2712 template("deps_dex") { 2728 template("deps_dex") {
2713 set_sources_assignment_filter([]) 2729 set_sources_assignment_filter([])
2714 build_config = "$target_gen_dir/${target_name}.build_config" 2730 build_config = "$target_gen_dir/${target_name}.build_config"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
2824 rebase_path(root_build_dir, root_build_dir), 2840 rebase_path(root_build_dir, root_build_dir),
2825 "--packed-libraries-dir", 2841 "--packed-libraries-dir",
2826 rebase_path(_packed_libraries_dir, root_build_dir), 2842 rebase_path(_packed_libraries_dir, root_build_dir),
2827 "--libraries=${invoker.libraries_filearg}", 2843 "--libraries=${invoker.libraries_filearg}",
2828 "--filelistjson", 2844 "--filelistjson",
2829 rebase_path(invoker.file_list_json, root_build_dir), 2845 rebase_path(invoker.file_list_json, root_build_dir),
2830 ] 2846 ]
2831 } 2847 }
2832 } 2848 }
2833 } 2849 }
OLDNEW
« no previous file with comments | « build/android/gyp/process_resources.py ('k') | build/config/android/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698