| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 ], | 194 ], |
| 195 'outputs': [ | 195 'outputs': [ |
| 196 '<(compile_stamp)', | 196 '<(compile_stamp)', |
| 197 ], | 197 ], |
| 198 'action': [ | 198 'action': [ |
| 199 'python', '<(DEPTH)/build/android/javac.py', | 199 'python', '<(DEPTH)/build/android/javac.py', |
| 200 '--output-dir=<(classes_dir)', | 200 '--output-dir=<(classes_dir)', |
| 201 '--classpath=>(input_jars_paths)', | 201 '--classpath=>(input_jars_paths)', |
| 202 '--src-dirs=>(all_src_dirs)', | 202 '--src-dirs=>(all_src_dirs)', |
| 203 '--javac-includes=<(javac_includes)', | 203 '--javac-includes=<(javac_includes)', |
| 204 '--chromium-code=<(chromium_code)', |
| 204 '--stamp=<(compile_stamp)', | 205 '--stamp=<(compile_stamp)', |
| 205 | 206 |
| 206 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | 207 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. |
| 207 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 208 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
| 208 ] | 209 ] |
| 209 }, | 210 }, |
| 210 { | 211 { |
| 211 'action_name': 'jar_<(_target_name)', | 212 'action_name': 'jar_<(_target_name)', |
| 212 'message': 'Creating <(_target_name) jar', | 213 'message': 'Creating <(_target_name) jar', |
| 213 'inputs': [ | 214 'inputs': [ |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 247 |
| 247 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | 248 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. |
| 248 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 249 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
| 249 | 250 |
| 250 '<(jar_path)', | 251 '<(jar_path)', |
| 251 ] | 252 ] |
| 252 }, | 253 }, |
| 253 | 254 |
| 254 ], | 255 ], |
| 255 } | 256 } |
| OLD | NEW |