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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 'java_in_dir_suffix%': '/src', |
83 'proguard_config%': '', | 83 'proguard_config%': '', |
84 'proguard_preprocess%': '0', | 84 'proguard_preprocess%': '0', |
85 'enable_errorprone%': '0', | |
86 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone', | |
87 'variables': { | 85 'variables': { |
88 'variables': { | 86 'variables': { |
89 'proguard_preprocess%': 0, | 87 'proguard_preprocess%': 0, |
90 'emma_never_instrument%': 0, | 88 'emma_never_instrument%': 0, |
91 }, | 89 }, |
92 'conditions': [ | 90 'conditions': [ |
93 ['proguard_preprocess == 1', { | 91 ['proguard_preprocess == 1', { |
94 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar' | 92 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar' |
95 }, { | 93 }, { |
96 'javac_jar_path': '<(jar_path)' | 94 'javac_jar_path': '<(jar_path)' |
97 }], | 95 }], |
98 ['chromium_code != 0 and emma_coverage != 0 and emma_never_instrument ==
0', { | 96 ['chromium_code != 0 and emma_coverage != 0 and emma_never_instrument ==
0', { |
99 'emma_instrument': 1, | 97 'emma_instrument': 1, |
100 }, { | 98 }, { |
101 'emma_instrument': 0, | 99 'emma_instrument': 0, |
102 }], | 100 }], |
103 ], | 101 ], |
104 }, | 102 }, |
105 'emma_instrument': '<(emma_instrument)', | 103 'emma_instrument': '<(emma_instrument)', |
106 'javac_jar_path': '<(javac_jar_path)', | 104 'javac_jar_path': '<(javac_jar_path)', |
| 105 'conditions': [ |
| 106 ['chromium_code == 0', { |
| 107 'enable_errorprone': 0, |
| 108 }], |
| 109 ], |
| 110 'enable_errorprone%': 0, |
| 111 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone', |
107 }, | 112 }, |
108 'conditions': [ | 113 'conditions': [ |
109 ['add_to_dependents_classpaths == 1', { | 114 ['add_to_dependents_classpaths == 1', { |
110 # This all_dependent_settings is used for java targets only. This will add
the | 115 # This all_dependent_settings is used for java targets only. This will add
the |
111 # jar path to the classpath of dependent java targets. | 116 # jar path to the classpath of dependent java targets. |
112 'all_dependent_settings': { | 117 'all_dependent_settings': { |
113 'variables': { | 118 'variables': { |
114 'input_jars_paths': ['<(jar_final_path)'], | 119 'input_jars_paths': ['<(jar_final_path)'], |
115 'library_dexed_jars_paths': ['<(dex_path)'], | 120 'library_dexed_jars_paths': ['<(dex_path)'], |
116 }, | 121 }, |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 'dex_no_locals': 1, | 376 'dex_no_locals': 1, |
372 }], | 377 }], |
373 ], | 378 ], |
374 'dex_input_paths': [ '<(jar_final_path)' ], | 379 'dex_input_paths': [ '<(jar_final_path)' ], |
375 'output_path': '<(dex_path)', | 380 'output_path': '<(dex_path)', |
376 }, | 381 }, |
377 'includes': [ 'android/dex_action.gypi' ], | 382 'includes': [ 'android/dex_action.gypi' ], |
378 }, | 383 }, |
379 ], | 384 ], |
380 } | 385 } |
OLD | NEW |