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

Side by Side Diff: build/host_jar.gypi

Issue 1136573002: Use the Errorprone Compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Full Sync and Update Created 5 years, 6 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') | build/java.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 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 # This file is meant to be included into a target to provide a rule to build 5 # This file is meant to be included into a target to provide a rule to build
6 # a JAR file for use on a host in a consistent manner. If a main class is 6 # a JAR file for use on a host in a consistent manner. If a main class is
7 # specified, this file will also generate an executable to run the jar in the 7 # specified, this file will also generate an executable to run the jar in the
8 # output folder's /bin/ directory. 8 # output folder's /bin/ directory.
9 # 9 #
10 # To use this, create a gyp target with the following form: 10 # To use this, create a gyp target with the following form:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 'excluded_src_paths': [], 46 'excluded_src_paths': [],
47 'generated_src_dirs': [], 47 'generated_src_dirs': [],
48 'input_jars_paths': [], 48 'input_jars_paths': [],
49 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', 49 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
50 'jar_dir': '<(PRODUCT_DIR)/lib.java', 50 'jar_dir': '<(PRODUCT_DIR)/lib.java',
51 'jar_excluded_classes': [], 51 'jar_excluded_classes': [],
52 'jar_name': '<(_target_name).jar', 52 'jar_name': '<(_target_name).jar',
53 'jar_path': '<(jar_dir)/<(jar_name)', 53 'jar_path': '<(jar_dir)/<(jar_name)',
54 'main_class%': '', 54 'main_class%': '',
55 'stamp': '<(intermediate_dir)/jar.stamp', 55 'stamp': '<(intermediate_dir)/jar.stamp',
56 'enable_errorprone%': '0',
57 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
56 }, 58 },
57 'all_dependent_settings': { 59 'all_dependent_settings': {
58 'variables': { 60 'variables': {
59 'input_jars_paths': ['<(jar_path)'] 61 'input_jars_paths': ['<(jar_path)']
60 }, 62 },
61 }, 63 },
62 'actions': [ 64 'actions': [
63 { 65 {
64 'action_name': 'javac_<(_target_name)', 66 'action_name': 'javac_<(_target_name)',
65 'message': 'Compiling <(_target_name) java sources', 67 'message': 'Compiling <(_target_name) java sources',
66 'variables': { 68 'variables': {
67 'extra_options': [], 69 'extra_args': [],
70 'extra_inputs': [],
68 'java_sources': [ '<!@(find <@(src_paths) -name "*.java")' ], 71 'java_sources': [ '<!@(find <@(src_paths) -name "*.java")' ],
69 'conditions': [ 72 'conditions': [
70 ['"<(excluded_src_paths)" != ""', { 73 ['"<(excluded_src_paths)" != ""', {
71 'java_sources!': ['<!@(find <@(excluded_src_paths) -name "*.java")'] 74 'java_sources!': ['<!@(find <@(excluded_src_paths) -name "*.java")']
72 }], 75 }],
73 ['"<(jar_excluded_classes)" != ""', { 76 ['"<(jar_excluded_classes)" != ""', {
74 'extra_options': ['--jar-excluded-classes=<(jar_excluded_classes)'] 77 'extra_args': ['--jar-excluded-classes=<(jar_excluded_classes)']
75 }], 78 }],
76 ['main_class != ""', { 79 ['main_class != ""', {
77 'extra_options': ['--main-class=>(main_class)'] 80 'extra_args': ['--main-class=>(main_class)']
78 }] 81 }],
82 ['enable_errorprone == 1', {
83 'extra_inputs': [
84 '<(errorprone_exe_path)',
85 ],
86 'extra_args': [ '--use-errorprone-path=<(errorprone_exe_path)' ],
87 }],
79 ], 88 ],
80 }, 89 },
81 'inputs': [ 90 'inputs': [
82 '<(DEPTH)/build/android/gyp/util/build_utils.py', 91 '<(DEPTH)/build/android/gyp/util/build_utils.py',
83 '<(DEPTH)/build/android/gyp/javac.py', 92 '<(DEPTH)/build/android/gyp/javac.py',
84 '^@(java_sources)', 93 '^@(java_sources)',
85 '>@(input_jars_paths)', 94 '>@(input_jars_paths)',
95 '<@(extra_inputs)',
86 ], 96 ],
87 'outputs': [ 97 'outputs': [
88 '<(jar_path)', 98 '<(jar_path)',
89 '<(stamp)', 99 '<(stamp)',
90 ], 100 ],
91 'action': [ 101 'action': [
92 'python', '<(DEPTH)/build/android/gyp/javac.py', 102 'python', '<(DEPTH)/build/android/gyp/javac.py',
93 '--classpath=>(input_jars_paths)', 103 '--classpath=>(input_jars_paths)',
94 '--src-gendirs=>(generated_src_dirs)', 104 '--src-gendirs=>(generated_src_dirs)',
95 '--chromium-code=<(chromium_code)', 105 '--chromium-code=<(chromium_code)',
96 '--stamp=<(stamp)', 106 '--stamp=<(stamp)',
97 '--jar-path=<(jar_path)', 107 '--jar-path=<(jar_path)',
98 '<@(extra_options)', 108 '<@(extra_args)',
99 '^@(java_sources)', 109 '^@(java_sources)',
100 ], 110 ],
101 }, 111 },
102 ], 112 ],
103 'conditions': [ 113 'conditions': [
104 ['main_class != ""', { 114 ['main_class != ""', {
105 'actions': [ 115 'actions': [
106 { 116 {
107 'action_name': 'create_java_binary_script_<(_target_name)', 117 'action_name': 'create_java_binary_script_<(_target_name)',
108 'message': 'Creating java binary script <(_target_name)', 118 'message': 'Creating java binary script <(_target_name)',
109 'variables': { 119 'variables': {
110 'output': '<(PRODUCT_DIR)/bin/<(_target_name)', 120 'output': '<(PRODUCT_DIR)/bin/<(_target_name)',
111 }, 121 },
112 'inputs': [ 122 'inputs': [
113 '<(DEPTH)/build/android/gyp/create_java_binary_script.py', 123 '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
114 '<(jar_path)', 124 '<(jar_path)',
115 ], 125 ],
116 'outputs': [ 126 'outputs': [
117 '<(output)', 127 '<(output)',
118 ], 128 ],
119 'action': [ 129 'action': [
120 'python', '<(DEPTH)/build/android/gyp/create_java_binary_script.py', 130 'python', '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
121 '--classpath=>(input_jars_paths)', 131 '--classpath=>(input_jars_paths)',
122 '--jar-path=<(jar_path)', 132 '--jar-path=<(jar_path)',
123 '--output=<(output)', 133 '--output=<(output)',
124 '--main-class=>(main_class)', 134 '--main-class=>(main_class)',
125 ] 135 ]
126 } 136 }
127 ] 137 ]
128 }] 138 }],
139 ['enable_errorprone == 1', {
140 'dependencies': [
141 '<(DEPTH)/third_party/errorprone/errorprone.gyp:chromium_errorprone',
142 ],
143 }],
129 ] 144 ]
130 } 145 }
131 146
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | build/java.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698