| OLD | NEW |
| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 'res_v14_skip%': 0, | 72 'res_v14_skip%': 0, |
| 73 'resource_input_paths': ['>@(res_extra_files)'], | 73 'resource_input_paths': ['>@(res_extra_files)'], |
| 74 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', | 74 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', |
| 75 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 75 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
| 76 'lint_stamp': '<(intermediate_dir)/lint.stamp', | 76 'lint_stamp': '<(intermediate_dir)/lint.stamp', |
| 77 'lint_result': '<(intermediate_dir)/lint_result.xml', | 77 'lint_result': '<(intermediate_dir)/lint_result.xml', |
| 78 'lint_config': '<(intermediate_dir)/lint_config.xml', | 78 'lint_config': '<(intermediate_dir)/lint_config.xml', |
| 79 'never_lint%': 0, | 79 'never_lint%': 0, |
| 80 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', | 80 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', |
| 81 'run_findbugs%': 0, | 81 'run_findbugs%': 0, |
| 82 'java_in_dir_suffix%': '/src', |
| 82 'proguard_config%': '', | 83 'proguard_config%': '', |
| 83 'proguard_preprocess%': '0', | 84 'proguard_preprocess%': '0', |
| 84 'enable_errorprone%': '0', | 85 'enable_errorprone%': '0', |
| 85 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone', | 86 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone', |
| 86 'variables': { | 87 'variables': { |
| 87 'variables': { | 88 'variables': { |
| 88 'proguard_preprocess%': 0, | 89 'proguard_preprocess%': 0, |
| 89 'emma_never_instrument%': 0, | 90 'emma_never_instrument%': 0, |
| 90 }, | 91 }, |
| 91 'conditions': [ | 92 'conditions': [ |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 ], | 253 ], |
| 253 }], | 254 }], |
| 254 ], | 255 ], |
| 255 'actions': [ | 256 'actions': [ |
| 256 { | 257 { |
| 257 'action_name': 'javac_<(_target_name)', | 258 'action_name': 'javac_<(_target_name)', |
| 258 'message': 'Compiling <(_target_name) java sources', | 259 'message': 'Compiling <(_target_name) java sources', |
| 259 'variables': { | 260 'variables': { |
| 260 'extra_args': [], | 261 'extra_args': [], |
| 261 'extra_inputs': [], | 262 'extra_inputs': [], |
| 262 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na
me "*.java")'], | 263 'java_sources': ['>!@(find >(java_in_dir)>(java_in_dir_suffix) >(additio
nal_src_dirs) -name "*.java")'], |
| 263 'conditions': [ | 264 'conditions': [ |
| 264 ['enable_errorprone == 1', { | 265 ['enable_errorprone == 1', { |
| 265 'extra_inputs': [ | 266 'extra_inputs': [ |
| 266 '<(errorprone_exe_path)', | 267 '<(errorprone_exe_path)', |
| 267 ], | 268 ], |
| 268 'extra_args': [ '--use-errorprone-path=<(errorprone_exe_path)' ], | 269 'extra_args': [ '--use-errorprone-path=<(errorprone_exe_path)' ], |
| 269 }], | 270 }], |
| 270 ], | 271 ], |
| 271 }, | 272 }, |
| 272 'inputs': [ | 273 'inputs': [ |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 '<(jar_final_path)', | 309 '<(jar_final_path)', |
| 309 ], | 310 ], |
| 310 'inputs': [ | 311 'inputs': [ |
| 311 '<(jar_path)', | 312 '<(jar_path)', |
| 312 ], | 313 ], |
| 313 'includes': [ 'android/instr_action.gypi' ], | 314 'includes': [ 'android/instr_action.gypi' ], |
| 314 }, | 315 }, |
| 315 { | 316 { |
| 316 'variables': { | 317 'variables': { |
| 317 'src_dirs': [ | 318 'src_dirs': [ |
| 318 '<(java_in_dir)/src', | 319 '<(java_in_dir)<(java_in_dir_suffix)', |
| 319 '>@(additional_src_dirs)', | 320 '>@(additional_src_dirs)', |
| 320 ], | 321 ], |
| 321 'stamp_path': '<(lint_stamp)', | 322 'stamp_path': '<(lint_stamp)', |
| 322 'result_path': '<(lint_result)', | 323 'result_path': '<(lint_result)', |
| 323 'config_path': '<(lint_config)', | 324 'config_path': '<(lint_config)', |
| 324 'lint_jar_path': '<(jar_final_path)', | 325 'lint_jar_path': '<(jar_final_path)', |
| 325 }, | 326 }, |
| 326 'inputs': [ | 327 'inputs': [ |
| 327 '<(jar_final_path)', | 328 '<(jar_final_path)', |
| 328 '<(compile_stamp)', | 329 '<(compile_stamp)', |
| (...skipping 29 matching lines...) Expand all Loading... |
| 358 'dex_no_locals': 1, | 359 'dex_no_locals': 1, |
| 359 }], | 360 }], |
| 360 ], | 361 ], |
| 361 'dex_input_paths': [ '<(jar_final_path)' ], | 362 'dex_input_paths': [ '<(jar_final_path)' ], |
| 362 'output_path': '<(dex_path)', | 363 'output_path': '<(dex_path)', |
| 363 }, | 364 }, |
| 364 'includes': [ 'android/dex_action.gypi' ], | 365 'includes': [ 'android/dex_action.gypi' ], |
| 365 }, | 366 }, |
| 366 ], | 367 ], |
| 367 } | 368 } |
| OLD | NEW |