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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 }], | 94 }], |
95 ['chromium_code != 0 and emma_coverage != 0 and emma_never_instrument == 0', { | 95 ['chromium_code != 0 and emma_coverage != 0 and emma_never_instrument == 0', { |
96 'emma_instrument': 1, | 96 'emma_instrument': 1, |
97 }, { | 97 }, { |
98 'emma_instrument': 0, | 98 'emma_instrument': 0, |
99 }], | 99 }], |
100 ], | 100 ], |
101 }, | 101 }, |
102 'emma_instrument': '<(emma_instrument)', | 102 'emma_instrument': '<(emma_instrument)', |
103 'javac_jar_path': '<(javac_jar_path)', | 103 'javac_jar_path': '<(javac_jar_path)', |
104 'java_in_dir_suffix%': '/src', | |
Yaron
2015/04/18 00:22:57
Seems unnecessary - please revert this file.
jbudorick
2015/04/20 19:21:38
Done.
| |
104 }, | 105 }, |
105 'conditions': [ | 106 'conditions': [ |
106 ['add_to_dependents_classpaths == 1', { | 107 ['add_to_dependents_classpaths == 1', { |
107 # This all_dependent_settings is used for java targets only. This will add the | 108 # This all_dependent_settings is used for java targets only. This will add the |
108 # jar path to the classpath of dependent java targets. | 109 # jar path to the classpath of dependent java targets. |
109 'all_dependent_settings': { | 110 'all_dependent_settings': { |
110 'variables': { | 111 'variables': { |
111 'input_jars_paths': ['<(jar_final_path)'], | 112 'input_jars_paths': ['<(jar_final_path)'], |
112 'library_dexed_jars_paths': ['<(dex_path)'], | 113 'library_dexed_jars_paths': ['<(dex_path)'], |
113 }, | 114 }, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
243 ], | 244 ], |
244 }, | 245 }, |
245 ], | 246 ], |
246 }], | 247 }], |
247 ], | 248 ], |
248 'actions': [ | 249 'actions': [ |
249 { | 250 { |
250 'action_name': 'javac_<(_target_name)', | 251 'action_name': 'javac_<(_target_name)', |
251 'message': 'Compiling <(_target_name) java sources', | 252 'message': 'Compiling <(_target_name) java sources', |
252 'variables': { | 253 'variables': { |
253 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na me "*.java")'], | 254 'java_sources': ['>!@(find >(java_in_dir)>(java_in_dir_suffix) >(additio nal_src_dirs) -name "*.java")'], |
254 }, | 255 }, |
255 'inputs': [ | 256 'inputs': [ |
256 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 257 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
257 '<(DEPTH)/build/android/gyp/javac.py', | 258 '<(DEPTH)/build/android/gyp/javac.py', |
258 '>@(java_sources)', | 259 '>@(java_sources)', |
259 '>@(input_jars_paths)', | 260 '>@(input_jars_paths)', |
260 '>@(additional_input_paths)', | 261 '>@(additional_input_paths)', |
261 ], | 262 ], |
262 'outputs': [ | 263 'outputs': [ |
263 '<(compile_stamp)', | 264 '<(compile_stamp)', |
(...skipping 24 matching lines...) Expand all Loading... | |
288 '<(jar_final_path)', | 289 '<(jar_final_path)', |
289 ], | 290 ], |
290 'inputs': [ | 291 'inputs': [ |
291 '<(jar_path)', | 292 '<(jar_path)', |
292 ], | 293 ], |
293 'includes': [ 'android/instr_action.gypi' ], | 294 'includes': [ 'android/instr_action.gypi' ], |
294 }, | 295 }, |
295 { | 296 { |
296 'variables': { | 297 'variables': { |
297 'src_dirs': [ | 298 'src_dirs': [ |
298 '<(java_in_dir)/src', | 299 '<(java_in_dir)<(java_in_dir_suffix)', |
299 '>@(additional_src_dirs)', | 300 '>@(additional_src_dirs)', |
300 ], | 301 ], |
301 'stamp_path': '<(lint_stamp)', | 302 'stamp_path': '<(lint_stamp)', |
302 'result_path': '<(lint_result)', | 303 'result_path': '<(lint_result)', |
303 'config_path': '<(lint_config)', | 304 'config_path': '<(lint_config)', |
304 'lint_jar_path': '<(jar_final_path)', | 305 'lint_jar_path': '<(jar_final_path)', |
305 }, | 306 }, |
306 'inputs': [ | 307 'inputs': [ |
307 '<(jar_final_path)', | 308 '<(jar_final_path)', |
308 '<(compile_stamp)', | 309 '<(compile_stamp)', |
(...skipping 29 matching lines...) Expand all Loading... | |
338 'dex_no_locals': 1, | 339 'dex_no_locals': 1, |
339 }], | 340 }], |
340 ], | 341 ], |
341 'dex_input_paths': [ '<(jar_final_path)' ], | 342 'dex_input_paths': [ '<(jar_final_path)' ], |
342 'output_path': '<(dex_path)', | 343 'output_path': '<(dex_path)', |
343 }, | 344 }, |
344 'includes': [ 'android/dex_action.gypi' ], | 345 'includes': [ 'android/dex_action.gypi' ], |
345 }, | 346 }, |
346 ], | 347 ], |
347 } | 348 } |
OLD | NEW |