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

Side by Side Diff: build/java_apk.gypi

Issue 1136573002: Use the Errorprone Compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed default to disabled Created 5 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 (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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 'load_library_from_zip_file%' : 0, 173 'load_library_from_zip_file%' : 0,
174 'use_relocation_packer%' : 0, 174 'use_relocation_packer%' : 0,
175 'enable_chromium_linker_tests%': 0, 175 'enable_chromium_linker_tests%': 0,
176 'emma_instrument%': '<(emma_instrument)', 176 'emma_instrument%': '<(emma_instrument)',
177 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)', 177 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)',
178 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)', 178 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)',
179 'libchromium_android_linker': 'libchromium_android_linker.>(android_product_ extension)', 179 'libchromium_android_linker': 'libchromium_android_linker.>(android_product_ extension)',
180 'extra_native_libs': [], 180 'extra_native_libs': [],
181 'native_lib_placeholder_stamp': '<(apk_package_native_libs_dir)/<(android_ap p_abi)/native_lib_placeholder.stamp', 181 'native_lib_placeholder_stamp': '<(apk_package_native_libs_dir)/<(android_ap p_abi)/native_lib_placeholder.stamp',
182 'native_lib_placeholders': [], 182 'native_lib_placeholders': [],
183 'enable_errorprone%': '1',
184
jbudorick 2015/05/15 18:37:13 No need for line breaks.
raywilliams_chromium 2015/05/18 19:53:24 Done.
185
186
187 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
183 }, 188 },
184 # Pass the jar path to the apk's "fake" jar target. This would be better as 189 # Pass the jar path to the apk's "fake" jar target. This would be better as
185 # direct_dependent_settings, but a variable set by a direct_dependent_settings 190 # direct_dependent_settings, but a variable set by a direct_dependent_settings
186 # cannot be lifted in a dependent to all_dependent_settings. 191 # cannot be lifted in a dependent to all_dependent_settings.
187 'all_dependent_settings': { 192 'all_dependent_settings': {
188 'conditions': [ 193 'conditions': [
189 ['proguard_enabled == "true"', { 194 ['proguard_enabled == "true"', {
190 'variables': { 195 'variables': {
191 'proguard_enabled': 'true', 196 'proguard_enabled': 'true',
192 } 197 }
(...skipping 22 matching lines...) Expand all
215 ['native_lib_target != "" and component == "shared_library"', { 220 ['native_lib_target != "" and component == "shared_library"', {
216 'dependencies': [ 221 'dependencies': [
217 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries', 222 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries',
218 ], 223 ],
219 }], 224 }],
220 ['use_chromium_linker == 1', { 225 ['use_chromium_linker == 1', {
221 'dependencies': [ 226 'dependencies': [
222 '<(DEPTH)/base/base.gyp:chromium_android_linker', 227 '<(DEPTH)/base/base.gyp:chromium_android_linker',
223 ], 228 ],
224 }], 229 }],
230
jbudorick 2015/05/15 18:37:12 same
raywilliams_chromium 2015/05/18 19:53:24 Done.
231
232 ['enable_errorprone == 1', {
233 'dependencies': [
234 '<(DEPTH)/third_party/errorprone/errorprone.gyp:chromium_errorprone',
235 ],
236 }],
237
238
239
225 ['native_lib_target != ""', { 240 ['native_lib_target != ""', {
226 'variables': { 241 'variables': {
227 'conditions': [ 242 'conditions': [
228 ['use_chromium_linker == 1', { 243 ['use_chromium_linker == 1', {
229 'variables': { 244 'variables': {
230 'chromium_linker_path': [ 245 'chromium_linker_path': [
231 '<(SHARED_LIB_DIR)/<(libchromium_android_linker)', 246 '<(SHARED_LIB_DIR)/<(libchromium_android_linker)',
232 ], 247 ],
233 } 248 }
234 }, { 249 }, {
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 # wrong .java files when additional_src_dirs is empty. 676 # wrong .java files when additional_src_dirs is empty.
662 # TODO(thakis): Gyp caches >! evaluation by command. Both java.gypi and 677 # TODO(thakis): Gyp caches >! evaluation by command. Both java.gypi and
663 # java_apk.gypi evaluate the same command, and at the moment two targets 678 # java_apk.gypi evaluate the same command, and at the moment two targets
664 # set java_in_dir to "java". Add a dummy comment here to make sure 679 # set java_in_dir to "java". Add a dummy comment here to make sure
665 # that the two targets (one uses java.gypi, the other java_apk.gypi) 680 # that the two targets (one uses java.gypi, the other java_apk.gypi)
666 # get distinct source lists. Medium-term, make targets list all their 681 # get distinct source lists. Medium-term, make targets list all their
667 # Java files instead of using find. (As is, this will be broken if two 682 # Java files instead of using find. (As is, this will be broken if two
668 # targets use the same java_in_dir and both use java_apk.gypi or 683 # targets use the same java_in_dir and both use java_apk.gypi or
669 # both use java.gypi.) 684 # both use java.gypi.)
670 'java_sources': ['>!@(find >(java_in_dir)>(java_in_dir_suffix) >(additio nal_src_dirs) -name "*.java" # apk)'], 685 'java_sources': ['>!@(find >(java_in_dir)>(java_in_dir_suffix) >(additio nal_src_dirs) -name "*.java" # apk)'],
671 686 'conditions': [
687 ['enable_errorprone == 0', {
688 'extra_inputs': [
689 '<(errorprone_exe_path)',
690 ],
691 'extra_args': [ '--errorprone-path=<(errorprone_exe_path)' ],
jbudorick 2015/05/15 18:37:12 same args comment, although this one is flipped so
raywilliams_chromium 2015/05/18 19:53:24 Done.
692 }, {
693 'extra_inputs': [],
694 'extra_args': [ '--enable-errorprone' ],
695 }],
696 ],
672 }, 697 },
673 'inputs': [ 698 'inputs': [
674 '<(DEPTH)/build/android/gyp/util/build_utils.py', 699 '<(DEPTH)/build/android/gyp/util/build_utils.py',
675 '<(DEPTH)/build/android/gyp/javac.py', 700 '<(DEPTH)/build/android/gyp/javac.py',
676 '>@(java_sources)', 701 '>@(java_sources)',
677 '>@(input_jars_paths)', 702 '>@(input_jars_paths)',
678 '<(codegen_stamp)', 703 '<(codegen_stamp)',
704 '<@(extra_inputs)',
679 ], 705 ],
680 'conditions': [ 706 'conditions': [
681 ['native_lib_target != ""', { 707 ['native_lib_target != ""', {
682 'inputs': [ '<(native_libraries_java_stamp)' ], 708 'inputs': [ '<(native_libraries_java_stamp)' ],
683 }], 709 }],
684 ], 710 ],
685 'outputs': [ 711 'outputs': [
686 '<(compile_stamp)', 712 '<(compile_stamp)',
687 '<(javac_jar_path)', 713 '<(javac_jar_path)',
688 ], 714 ],
689 'action': [ 715 'action': [
690 'python', '<(DEPTH)/build/android/gyp/javac.py', 716 'python', '<(DEPTH)/build/android/gyp/javac.py',
691 '--classpath=>(input_jars_paths) <(android_sdk_jar)', 717 '--classpath=>(input_jars_paths) <(android_sdk_jar)',
692 '--src-gendirs=>(gen_src_dirs)', 718 '--src-gendirs=>(gen_src_dirs)',
693 '--javac-includes=<(javac_includes)', 719 '--javac-includes=<(javac_includes)',
694 '--chromium-code=<(chromium_code)', 720 '--chromium-code=<(chromium_code)',
695 '--jar-path=<(javac_jar_path)', 721 '--jar-path=<(javac_jar_path)',
696 '--jar-excluded-classes=<(jar_excluded_classes)', 722 '--jar-excluded-classes=<(jar_excluded_classes)',
697 '--stamp=<(compile_stamp)', 723 '--stamp=<(compile_stamp)',
724 '<@(extra_args)',
698 '>@(java_sources)', 725 '>@(java_sources)',
699 ], 726 ],
700 }, 727 },
701 { 728 {
702 'action_name': 'instr_jar_<(_target_name)', 729 'action_name': 'instr_jar_<(_target_name)',
703 'message': 'Instrumenting <(_target_name) jar', 730 'message': 'Instrumenting <(_target_name) jar',
704 'variables': { 731 'variables': {
705 'input_path': '<(javac_jar_path)', 732 'input_path': '<(javac_jar_path)',
706 'output_path': '<(jar_path)', 733 'output_path': '<(jar_path)',
707 'stamp_path': '<(instr_stamp)', 734 'stamp_path': '<(instr_stamp)',
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 '-DEMMA_INSTRUMENT=<(emma_instrument)', 980 '-DEMMA_INSTRUMENT=<(emma_instrument)',
954 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', 981 '-DEMMA_DEVICE_JAR=<(emma_device_jar)',
955 982
956 '-Dbasedir=.', 983 '-Dbasedir=.',
957 '-buildfile', 984 '-buildfile',
958 '<(DEPTH)/build/android/ant/apk-package.xml', 985 '<(DEPTH)/build/android/ant/apk-package.xml',
959 ] 986 ]
960 }, 987 },
961 ], 988 ],
962 } 989 }
OLDNEW
« build/java.gypi ('K') | « build/java.gypi ('k') | third_party/errorprone/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698