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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 76 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
77 'lint_stamp': '<(intermediate_dir)/lint.stamp', | 77 'lint_stamp': '<(intermediate_dir)/lint.stamp', |
78 'lint_result': '<(intermediate_dir)/lint_result.xml', | 78 'lint_result': '<(intermediate_dir)/lint_result.xml', |
79 'lint_config': '<(intermediate_dir)/lint_config.xml', | 79 'lint_config': '<(intermediate_dir)/lint_config.xml', |
80 'never_lint%': 0, | 80 'never_lint%': 0, |
81 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', | 81 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', |
82 'run_findbugs%': 0, | 82 'run_findbugs%': 0, |
83 'java_in_dir_suffix%': '/src', | 83 'java_in_dir_suffix%': '/src', |
84 'proguard_config%': '', | 84 'proguard_config%': '', |
85 'proguard_preprocess%': '0', | 85 'proguard_preprocess%': '0', |
86 'enable_errorprone%': '0', | |
87 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone', | |
88 'variables': { | 86 'variables': { |
89 'variables': { | 87 'variables': { |
90 'proguard_preprocess%': 0, | 88 'proguard_preprocess%': 0, |
91 'emma_never_instrument%': 0, | 89 'emma_never_instrument%': 0, |
92 }, | 90 }, |
93 'conditions': [ | 91 'conditions': [ |
94 ['proguard_preprocess == 1', { | 92 ['proguard_preprocess == 1', { |
95 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar' | 93 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar' |
96 }, { | 94 }, { |
97 'javac_jar_path': '<(jar_path)' | 95 'javac_jar_path': '<(jar_path)' |
98 }], | 96 }], |
99 ['chromium_code != 0 and emma_coverage != 0 and emma_never_instrument ==
0', { | 97 ['chromium_code != 0 and emma_coverage != 0 and emma_never_instrument ==
0', { |
100 'emma_instrument': 1, | 98 'emma_instrument': 1, |
101 }, { | 99 }, { |
102 'emma_instrument': 0, | 100 'emma_instrument': 0, |
103 }], | 101 }], |
104 ], | 102 ], |
105 }, | 103 }, |
106 'emma_instrument': '<(emma_instrument)', | 104 'emma_instrument': '<(emma_instrument)', |
107 'javac_jar_path': '<(javac_jar_path)', | 105 'javac_jar_path': '<(javac_jar_path)', |
| 106 'conditions': [ |
| 107 ['chromium_code == 0', { |
| 108 'enable_errorprone': 0, |
| 109 }], |
| 110 ], |
| 111 'enable_errorprone%': 0, |
| 112 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone', |
108 }, | 113 }, |
109 'conditions': [ | 114 'conditions': [ |
110 ['add_to_dependents_classpaths == 1', { | 115 ['add_to_dependents_classpaths == 1', { |
111 # This all_dependent_settings is used for java targets only. This will add
the | 116 # This all_dependent_settings is used for java targets only. This will add
the |
112 # jar path to the classpath of dependent java targets. | 117 # jar path to the classpath of dependent java targets. |
113 'all_dependent_settings': { | 118 'all_dependent_settings': { |
114 'variables': { | 119 'variables': { |
115 'input_jars_paths': ['<(jar_final_path)'], | 120 'input_jars_paths': ['<(jar_final_path)'], |
116 'library_dexed_jars_paths': ['<(dex_path)'], | 121 'library_dexed_jars_paths': ['<(dex_path)'], |
117 'main_dex_list_paths': ['<(main_dex_list_path)'], | 122 'main_dex_list_paths': ['<(main_dex_list_path)'], |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 'dex_no_locals': 1, | 386 'dex_no_locals': 1, |
382 }], | 387 }], |
383 ], | 388 ], |
384 'dex_input_paths': [ '<(jar_final_path)' ], | 389 'dex_input_paths': [ '<(jar_final_path)' ], |
385 'output_path': '<(dex_path)', | 390 'output_path': '<(dex_path)', |
386 }, | 391 }, |
387 'includes': [ 'android/dex_action.gypi' ], | 392 'includes': [ 'android/dex_action.gypi' ], |
388 }, | 393 }, |
389 ], | 394 ], |
390 } | 395 } |
OLD | NEW |