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

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

Issue 2845773004: DO NOT SUBMIT: add main dex list check to classloader. (Closed)
Patch Set: Created 3 years, 7 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 # 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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 921
922 template("dex") { 922 template("dex") {
923 set_sources_assignment_filter([]) 923 set_sources_assignment_filter([])
924 924
925 _enable_multidex = 925 _enable_multidex =
926 defined(invoker.enable_multidex) && invoker.enable_multidex 926 defined(invoker.enable_multidex) && invoker.enable_multidex
927 927
928 if (_enable_multidex) { 928 if (_enable_multidex) {
929 _main_dex_list_path = invoker.output + ".main_dex_list" 929 _main_dex_list_path = invoker.output + ".main_dex_list"
930 _main_dex_list_target_name = "${target_name}__main_dex_list" 930 _main_dex_list_target_name = "${target_name}__main_dex_list"
931 _gen_main_dex_java_list = false
932 if (defined(invoker.list_output)) {
933 _gen_main_dex_java_list = true
934 _main_dex_list_path_java = invoker.list_output
935 }
931 action(_main_dex_list_target_name) { 936 action(_main_dex_list_target_name) {
932 forward_variables_from(invoker, 937 forward_variables_from(invoker,
933 [ 938 [
934 "deps", 939 "deps",
935 "inputs", 940 "inputs",
936 "sources", 941 "sources",
937 "testonly", 942 "testonly",
938 ]) 943 ])
939 944
940 script = "//build/android/gyp/main_dex_list.py" 945 script = "//build/android/gyp/main_dex_list.py"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 rebase_path(_proguard_jar_path, root_build_dir), 978 rebase_path(_proguard_jar_path, root_build_dir),
974 ] 979 ]
975 980
976 if (defined(invoker.extra_main_dex_proguard_config)) { 981 if (defined(invoker.extra_main_dex_proguard_config)) {
977 inputs += [ invoker.extra_main_dex_proguard_config ] 982 inputs += [ invoker.extra_main_dex_proguard_config ]
978 args += [ 983 args += [
979 "--main-dex-rules-path", 984 "--main-dex-rules-path",
980 rebase_path(invoker.extra_main_dex_proguard_config, root_build_dir), 985 rebase_path(invoker.extra_main_dex_proguard_config, root_build_dir),
981 ] 986 ]
982 } 987 }
988 if (_gen_main_dex_java_list) {
989 outputs += [ _main_dex_list_path_java ]
990 args += [
991 "--main-dex-list-path-java",
992 rebase_path(_main_dex_list_path_java, root_build_dir),
993 ]
994 }
983 995
984 if (defined(invoker.args)) { 996 if (defined(invoker.args)) {
985 args += invoker.args 997 args += invoker.args
986 } 998 }
987 999
988 if (defined(invoker.sources)) { 1000 if (defined(invoker.sources)) {
989 args += rebase_path(invoker.sources, root_build_dir) 1001 args += rebase_path(invoker.sources, root_build_dir)
990 } 1002 }
991 } 1003 }
992 } 1004 }
(...skipping 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 rebase_path(root_build_dir, root_build_dir), 2804 rebase_path(root_build_dir, root_build_dir),
2793 "--packed-libraries-dir", 2805 "--packed-libraries-dir",
2794 rebase_path(_packed_libraries_dir, root_build_dir), 2806 rebase_path(_packed_libraries_dir, root_build_dir),
2795 "--libraries=${invoker.libraries_filearg}", 2807 "--libraries=${invoker.libraries_filearg}",
2796 "--filelistjson", 2808 "--filelistjson",
2797 rebase_path(invoker.file_list_json, root_build_dir), 2809 rebase_path(invoker.file_list_json, root_build_dir),
2798 ] 2810 ]
2799 } 2811 }
2800 } 2812 }
2801 } 2813 }
OLDNEW
« no previous file with comments | « build/android/incremental_install/java/org/chromium/incrementalinstall/Reflect.java ('k') | build/config/android/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698