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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 ], | 175 ], |
176 'action': [ | 176 'action': [ |
177 'python', '<(DEPTH)/build/android/javac.py', | 177 'python', '<(DEPTH)/build/android/javac.py', |
178 '--output-dir=<(classes_dir)', | 178 '--output-dir=<(classes_dir)', |
179 '--classpath=>(input_jars_paths)', | 179 '--classpath=>(input_jars_paths)', |
180 '--src-dirs=>(all_src_dirs)', | 180 '--src-dirs=>(all_src_dirs)', |
181 '--javac-includes=<(javac_includes)', | 181 '--javac-includes=<(javac_includes)', |
182 '--stamp=<(compile_stamp)', | 182 '--stamp=<(compile_stamp)', |
183 | 183 |
184 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | 184 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. |
185 '--ignore=>!(echo >(_inputs) | md5sum)', | 185 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
186 ] | 186 ] |
187 }, | 187 }, |
188 { | 188 { |
189 'action_name': 'jar_<(_target_name)', | 189 'action_name': 'jar_<(_target_name)', |
190 'message': 'Creating <(_target_name) jar', | 190 'message': 'Creating <(_target_name) jar', |
191 'inputs': [ | 191 'inputs': [ |
192 '<(DEPTH)/build/android/pylib/build_utils.py', | 192 '<(DEPTH)/build/android/pylib/build_utils.py', |
193 '<(DEPTH)/build/android/jar.py', | 193 '<(DEPTH)/build/android/jar.py', |
194 '<(compile_stamp)', | 194 '<(compile_stamp)', |
195 ], | 195 ], |
196 'outputs': [ | 196 'outputs': [ |
197 '<(jar_path)', | 197 '<(jar_path)', |
198 ], | 198 ], |
199 'action': [ | 199 'action': [ |
200 'python', '<(DEPTH)/build/android/jar.py', | 200 'python', '<(DEPTH)/build/android/jar.py', |
201 '--classes-dir=<(classes_dir)', | 201 '--classes-dir=<(classes_dir)', |
202 '--jar-path=<(jar_path)', | 202 '--jar-path=<(jar_path)', |
203 '--excluded-classes=<(excluded_classes)', | 203 '--excluded-classes=<(excluded_classes)', |
204 | 204 |
205 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | 205 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. |
206 '--ignore=>!(echo >(_inputs) | md5sum)', | 206 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
207 ] | 207 ] |
208 }, | 208 }, |
209 ], | 209 ], |
210 } | 210 } |
OLD | NEW |