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

Side by Side Diff: build/java.gypi

Issue 328893003: Make javac and jar a single build action (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 Java in a consistent manner. 6 # to build Java 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_java', 10 # 'target_name': 'my-package_java',
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 }, 223 },
224 'inputs': [ 224 'inputs': [
225 '<(DEPTH)/build/android/gyp/util/build_utils.py', 225 '<(DEPTH)/build/android/gyp/util/build_utils.py',
226 '<(DEPTH)/build/android/gyp/javac.py', 226 '<(DEPTH)/build/android/gyp/javac.py',
227 '>@(java_sources)', 227 '>@(java_sources)',
228 '>@(input_jars_paths)', 228 '>@(input_jars_paths)',
229 '>@(additional_input_paths)', 229 '>@(additional_input_paths)',
230 ], 230 ],
231 'outputs': [ 231 'outputs': [
232 '<(compile_stamp)', 232 '<(compile_stamp)',
233 '<(javac_jar_path)',
233 ], 234 ],
234 'action': [ 235 'action': [
235 'python', '<(DEPTH)/build/android/gyp/javac.py', 236 'python', '<(DEPTH)/build/android/gyp/javac.py',
236 '--output-dir=<(classes_dir)', 237 '--classes-dir=<(classes_dir)',
237 '--classpath=>(input_jars_paths)', 238 '--classpath=>(input_jars_paths)',
238 '--src-gendirs=>(generated_src_dirs)', 239 '--src-gendirs=>(generated_src_dirs)',
239 '--javac-includes=<(javac_includes)', 240 '--javac-includes=<(javac_includes)',
240 '--chromium-code=<(chromium_code)', 241 '--chromium-code=<(chromium_code)',
242 '--jar-path=<(javac_jar_path)',
243 '--jar-excluded-classes=<(jar_excluded_classes)',
241 '--stamp=<(compile_stamp)', 244 '--stamp=<(compile_stamp)',
242 '>@(java_sources)', 245 '>@(java_sources)',
243 ] 246 ]
244 }, 247 },
245 { 248 {
246 'variables': { 249 'variables': {
247 'src_dirs': [ 250 'src_dirs': [
248 '<(java_in_dir)/src', 251 '<(java_in_dir)/src',
249 '>@(additional_src_dirs)', 252 '>@(additional_src_dirs)',
250 ], 253 ],
251 'stamp_path': '<(lint_stamp)', 254 'stamp_path': '<(lint_stamp)',
252 'result_path': '<(lint_result)', 255 'result_path': '<(lint_result)',
253 'config_path': '<(lint_config)', 256 'config_path': '<(lint_config)',
254 }, 257 },
255 'inputs': [ 258 'inputs': [
256 '<(compile_stamp)', 259 '<(compile_stamp)',
257 ], 260 ],
258 'outputs': [ 261 'outputs': [
259 '<(lint_stamp)', 262 '<(lint_stamp)',
260 ], 263 ],
261 'includes': [ 'android/lint_action.gypi' ], 264 'includes': [ 'android/lint_action.gypi' ],
262 }, 265 },
263 { 266 {
264 'action_name': 'jar_<(_target_name)',
265 'message': 'Creating <(_target_name) jar',
266 'inputs': [
267 '<(DEPTH)/build/android/gyp/util/build_utils.py',
268 '<(DEPTH)/build/android/gyp/util/md5_check.py',
269 '<(DEPTH)/build/android/gyp/jar.py',
270 '<(compile_stamp)',
271 ],
272 'outputs': [
273 '<(javac_jar_path)',
274 ],
275 'action': [
276 'python', '<(DEPTH)/build/android/gyp/jar.py',
277 '--classes-dir=<(classes_dir)',
278 '--jar-path=<(javac_jar_path)',
279 '--excluded-classes=<(jar_excluded_classes)',
280 ]
281 },
282 {
283 'action_name': 'instr_jar_<(_target_name)', 267 'action_name': 'instr_jar_<(_target_name)',
284 'message': 'Instrumenting <(_target_name) jar', 268 'message': 'Instrumenting <(_target_name) jar',
285 'variables': { 269 'variables': {
286 'input_path': '<(jar_path)', 270 'input_path': '<(jar_path)',
287 'output_path': '<(jar_final_path)', 271 'output_path': '<(jar_final_path)',
288 'stamp_path': '<(instr_stamp)', 272 'stamp_path': '<(instr_stamp)',
289 'instr_type': 'jar', 273 'instr_type': 'jar',
290 }, 274 },
291 'outputs': [ 275 'outputs': [
292 '<(jar_final_path)', 276 '<(jar_final_path)',
(...skipping 29 matching lines...) Expand all
322 'dex_no_locals': 1, 306 'dex_no_locals': 1,
323 }], 307 }],
324 ], 308 ],
325 'dex_input_paths': [ '<(jar_final_path)' ], 309 'dex_input_paths': [ '<(jar_final_path)' ],
326 'output_path': '<(dex_path)', 310 'output_path': '<(dex_path)',
327 }, 311 },
328 'includes': [ 'android/dex_action.gypi' ], 312 'includes': [ 'android/dex_action.gypi' ],
329 }, 313 },
330 ], 314 ],
331 } 315 }
OLDNEW
« no previous file with comments | « build/android/gyp/util/build_utils.py ('k') | build/java_apk.gypi » ('j') | build/java_apk.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698