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

Side by Side Diff: build/java_apk.gypi

Issue 1587673014: Revert of [Android] Rework multidex and enable multidex for unit_tests_apk. (RELAND) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/config/android/rules.gni ('k') | chrome/chrome_tests_unit.gypi » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # This file is meant to be included into a target to provide a rule 5 # This file is meant to be included into a target to provide a rule
6 # to build Android APKs in a consistent manner. 6 # to build Android APKs in a consistent manner.
7 # 7 #
8 # To use this, create a gyp target with the following form: 8 # To use this, create a gyp target with the following form:
9 # { 9 # {
10 # 'target_name': 'my_package_apk', 10 # 'target_name': 'my_package_apk',
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 # java_in_dir_suffix - To override the /src suffix on java_in_dir. 70 # java_in_dir_suffix - To override the /src suffix on java_in_dir.
71 # app_manifest_version_name - set the apps 'human readable' version number. 71 # app_manifest_version_name - set the apps 'human readable' version number.
72 # app_manifest_version_code - set the apps version number. 72 # app_manifest_version_code - set the apps version number.
73 # dependencies_locale_zip_alternative_paths - a list of paths that used to 73 # dependencies_locale_zip_alternative_paths - a list of paths that used to
74 # replace dependencies_locale_zip_paths of all_dependent_settings. 74 # replace dependencies_locale_zip_paths of all_dependent_settings.
75 { 75 {
76 'variables': { 76 'variables': {
77 'tested_apk_obfuscated_jar_path%': '/', 77 'tested_apk_obfuscated_jar_path%': '/',
78 'tested_apk_dex_path%': '/', 78 'tested_apk_dex_path%': '/',
79 'tested_apk_is_multidex%': 0, 79 'tested_apk_is_multidex%': 0,
80 'tested_apk_generated_multidex_config%': 0,
81 'additional_input_paths': [], 80 'additional_input_paths': [],
82 'additional_locale_input_paths': [], 81 'additional_locale_input_paths': [],
83 'create_density_splits%': 0, 82 'create_density_splits%': 0,
84 'language_splits': [], 83 'language_splits': [],
85 'library_jars_paths': [], 84 'library_jars_paths': [],
86 'input_jars_paths': [], 85 'input_jars_paths': [],
87 'library_dexed_jars_paths': [], 86 'library_dexed_jars_paths': [],
88 'additional_src_dirs': [], 87 'additional_src_dirs': [],
89 'generated_src_dirs': [], 88 'generated_src_dirs': [],
90 'app_manifest_version_name%': '<(android_app_version_name)', 89 'app_manifest_version_name%': '<(android_app_version_name)',
(...skipping 24 matching lines...) Expand all
115 'package_input_paths': [], 114 'package_input_paths': [],
116 'ordered_libraries_file': '<(intermediate_dir)/native_libraries.json', 115 'ordered_libraries_file': '<(intermediate_dir)/native_libraries.json',
117 'additional_ordered_libraries_file': '<(intermediate_dir)/additional_native_ libraries.json', 116 'additional_ordered_libraries_file': '<(intermediate_dir)/additional_native_ libraries.json',
118 'native_libraries_template': '<(DEPTH)/base/android/java/templates/NativeLib raries.template', 117 'native_libraries_template': '<(DEPTH)/base/android/java/templates/NativeLib raries.template',
119 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/', 118 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/',
120 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java', 119 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java',
121 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp', 120 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp',
122 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ', 121 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ',
123 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h', 122 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h',
124 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h', 123 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h',
125 'generate_multidex_config%': 0,
126 'multidex_config_template': '<(DEPTH)/base/android/java/templates/ChromiumMu ltiDex.template',
127 'multidex_config_java_dir': '<(intermediate_dir)/multidex_config/',
128 'multidex_config_java_file': '<(multidex_config_java_dir)/ChromiumMultiDex.j ava',
129 'multidex_config_java_stamp': '<(intermediate_dir)/multidex_config_java.stam p',
130 'compile_stamp': '<(intermediate_dir)/compile.stamp', 124 'compile_stamp': '<(intermediate_dir)/compile.stamp',
131 'lint_stamp': '<(intermediate_dir)/lint.stamp', 125 'lint_stamp': '<(intermediate_dir)/lint.stamp',
132 'lint_result': '<(intermediate_dir)/lint_result.xml', 126 'lint_result': '<(intermediate_dir)/lint_result.xml',
133 'lint_config': '<(intermediate_dir)/lint_config.xml', 127 'lint_config': '<(intermediate_dir)/lint_config.xml',
134 'never_lint%': 0, 128 'never_lint%': 0,
135 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', 129 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp',
136 'run_findbugs%': 0, 130 'run_findbugs%': 0,
137 'java_in_dir_suffix%': '/src', 131 'java_in_dir_suffix%': '/src',
138 'emma_instr_stamp': '<(intermediate_dir)/emma_instr.stamp', 132 'emma_instr_stamp': '<(intermediate_dir)/emma_instr.stamp',
139 'jar_stamp': '<(intermediate_dir)/jar.stamp', 133 'jar_stamp': '<(intermediate_dir)/jar.stamp',
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 'variables': { 259 'variables': {
266 'debug_build_proguard_enabled': 'true', 260 'debug_build_proguard_enabled': 'true',
267 } 261 }
268 }], 262 }],
269 ['is_test_apk == 0', { 263 ['is_test_apk == 0', {
270 'variables': { 264 'variables': {
271 'tested_apk_path': '<(final_apk_path)', 265 'tested_apk_path': '<(final_apk_path)',
272 'tested_apk_obfuscated_jar_path': '<(obfuscated_jar_path)', 266 'tested_apk_obfuscated_jar_path': '<(obfuscated_jar_path)',
273 'tested_apk_dex_path': '<(dex_path)', 267 'tested_apk_dex_path': '<(dex_path)',
274 'tested_apk_is_multidex': '<(enable_multidex)', 268 'tested_apk_is_multidex': '<(enable_multidex)',
275 'tested_apk_generated_multidex_config': '>(generate_multidex_config)',
276 } 269 }
277 }] 270 }]
278 ], 271 ],
279 'variables': { 272 'variables': {
280 'apk_output_jar_path': '<(jar_path)', 273 'apk_output_jar_path': '<(jar_path)',
281 }, 274 },
282 }, 275 },
283 'conditions': [ 276 'conditions': [
284 ['resource_dir!=""', { 277 ['resource_dir!=""', {
285 'variables': { 278 'variables': {
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 'action': [ 787 'action': [
795 'python', '<(DEPTH)/build/android/findbugs_diff.py', 788 'python', '<(DEPTH)/build/android/findbugs_diff.py',
796 '--auxclasspath-gyp', '>(input_jars_paths)', 789 '--auxclasspath-gyp', '>(input_jars_paths)',
797 '--stamp', '<(findbugs_stamp)', 790 '--stamp', '<(findbugs_stamp)',
798 '<@(additional_findbugs_args)', 791 '<@(additional_findbugs_args)',
799 '<(jar_path)', 792 '<(jar_path)',
800 ], 793 ],
801 }, 794 },
802 ], 795 ],
803 }], 796 }],
804 ], 797 ['enable_multidex == 1', {
805 'target_conditions': [
806 ['generate_multidex_config == 1 and tested_apk_generated_multidex_config == 0', {
807 'variables': {
808 'generated_src_dirs': ['<(multidex_config_java_dir)'],
809 },
810 'actions': [ 798 'actions': [
811 { 799 {
800 'action_name': 'main_dex_list_for_<(_target_name)',
801 'variables': {
802 'jar_paths': ['>@(input_jars_paths)', '<(javac_jar_path)'],
803 'output_path': '<(main_dex_list_path)',
804 },
805 'includes': [ 'android/main_dex_action.gypi' ],
806 },
807 {
812 'action_name': 'configure_multidex_for_<(_target_name)', 808 'action_name': 'configure_multidex_for_<(_target_name)',
813 'inputs': [ 809 'inputs': [
814 '<(DEPTH)/build/android/gyp/configure_multidex.py', 810 '<(DEPTH)/build/android/gyp/configure_multidex.py',
815 '<(multidex_config_template)',
816 ], 811 ],
817 'outputs': [ 812 'outputs': [
818 '<(multidex_configuration_path)', 813 '<(multidex_configuration_path)',
819 '<(multidex_config_java_stamp)',
820 ], 814 ],
821 'variables': { 815 'variables': {
822 'additional_multidex_config_options': [], 816 'additional_multidex_config_options': [],
823 'enabled_configurations': '>(enable_multidex_configurations)', 817 'enabled_configurations': ['>@(enable_multidex_configurations)'],
824 'conditions': [
825 ['enable_multidex == 1', {
826 'additional_multidex_config_options': ['--enable-multidex'],
827 }],
828 ],
829 }, 818 },
830 'action': [ 819 'action': [
831 'python', '<(DEPTH)/build/android/gyp/configure_multidex.py', 820 'python', '<(DEPTH)/build/android/gyp/configure_multidex.py',
832 '--configuration-name', '<(CONFIGURATION_NAME)', 821 '--configuration-name', '<(CONFIGURATION_NAME)',
833 '--enabled-configurations', '<(enabled_configurations)', 822 '--enabled-configurations', '<(enabled_configurations)',
834 '--multidex-configuration-path', '<(multidex_configuration_path)', 823 '--multidex-configuration-path', '<(multidex_configuration_path)',
835 '--multidex-config-java-template', '<(multidex_config_template)',
836 '--multidex-config-java-file', '<(multidex_config_java_file)',
837 '--multidex-config-java-stamp', '<(multidex_config_java_stamp)',
838 '>@(additional_multidex_config_options)', 824 '>@(additional_multidex_config_options)',
839 ], 825 ],
840 }, 826 },
841 ], 827 ],
842 'conditions': [
843 ['enable_multidex == 1', {
844 'actions': [
845 {
846 'action_name': 'main_dex_list_for_<(_target_name)',
847 'variables': {
848 'jar_paths': ['>@(input_jars_paths)', '<(javac_jar_path)'],
849 'output_path': '<(main_dex_list_path)',
850 },
851 'includes': [ 'android/main_dex_action.gypi' ],
852 },
853 ]
854 }]
855 ],
856 }], 828 }],
857 ], 829 ],
858 'dependencies': [ 830 'dependencies': [
859 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum', 831 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum',
860 ], 832 ],
861 'actions': [ 833 'actions': [
862 { 834 {
863 'action_name': 'process_resources', 835 'action_name': 'process_resources',
864 'message': 'processing resources for <(_target_name)', 836 'message': 'processing resources for <(_target_name)',
865 'variables': { 837 'variables': {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 '<(DEPTH)/build/android/gyp/javac.py', 948 '<(DEPTH)/build/android/gyp/javac.py',
977 '>@(java_sources)', 949 '>@(java_sources)',
978 '>@(input_jars_paths)', 950 '>@(input_jars_paths)',
979 '<(codegen_stamp)', 951 '<(codegen_stamp)',
980 '<@(extra_inputs)', 952 '<@(extra_inputs)',
981 ], 953 ],
982 'conditions': [ 954 'conditions': [
983 ['native_lib_target != ""', { 955 ['native_lib_target != ""', {
984 'inputs': [ '<(native_libraries_java_stamp)' ], 956 'inputs': [ '<(native_libraries_java_stamp)' ],
985 }], 957 }],
986 ['generate_multidex_config == 1', {
987 'inputs': [ '<(multidex_config_java_stamp)' ],
988 }],
989 ], 958 ],
990 'outputs': [ 959 'outputs': [
991 '<(compile_stamp)', 960 '<(compile_stamp)',
992 '<(javac_jar_path)', 961 '<(javac_jar_path)',
993 ], 962 ],
994 'action': [ 963 'action': [
995 'python', '<(DEPTH)/build/android/gyp/javac.py', 964 'python', '<(DEPTH)/build/android/gyp/javac.py',
996 '--bootclasspath=<(android_sdk_jar)', 965 '--bootclasspath=<(android_sdk_jar)',
997 '--classpath=>(input_jars_paths) <(android_sdk_jar) >(library_jars_paths )', 966 '--classpath=>(input_jars_paths) <(android_sdk_jar) >(library_jars_paths )',
998 '--src-gendirs=>(gen_src_dirs)', 967 '--src-gendirs=>(gen_src_dirs)',
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 'native_libs_dir': '<(apk_package_native_libs_dir)', 1207 'native_libs_dir': '<(apk_package_native_libs_dir)',
1239 }, { 1208 }, {
1240 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', 1209 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res',
1241 }], 1210 }],
1242 ], 1211 ],
1243 }, 1212 },
1244 'includes': ['android/apkbuilder_action.gypi'], 1213 'includes': ['android/apkbuilder_action.gypi'],
1245 }, 1214 },
1246 ], 1215 ],
1247 } 1216 }
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698