| 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 Android APKs in a consistent manner. | 6 # to build Android APKs 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_apk', | 10 # 'target_name': 'my_package_apk', |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 ], | 226 ], |
| 227 'outputs': [ | 227 'outputs': [ |
| 228 '<(compile_stamp)', | 228 '<(compile_stamp)', |
| 229 ], | 229 ], |
| 230 'action': [ | 230 'action': [ |
| 231 'python', '<(DEPTH)/build/android/javac.py', | 231 'python', '<(DEPTH)/build/android/javac.py', |
| 232 '--output-dir=<(classes_dir)', | 232 '--output-dir=<(classes_dir)', |
| 233 '--classpath=>(input_jars_paths) <(android_sdk_jar)', | 233 '--classpath=>(input_jars_paths) <(android_sdk_jar)', |
| 234 '--src-dirs=>(all_src_dirs)', | 234 '--src-dirs=>(all_src_dirs)', |
| 235 '--javac-includes=<(javac_includes)', | 235 '--javac-includes=<(javac_includes)', |
| 236 '--chromium-code=<(chromium_code)', |
| 236 '--stamp=<(compile_stamp)', | 237 '--stamp=<(compile_stamp)', |
| 237 | 238 |
| 238 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | 239 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. |
| 239 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 240 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
| 240 ], | 241 ], |
| 241 }, | 242 }, |
| 242 { | 243 { |
| 243 'action_name': 'jar_<(_target_name)', | 244 'action_name': 'jar_<(_target_name)', |
| 244 'message': 'Creating <(_target_name) jar', | 245 'message': 'Creating <(_target_name) jar', |
| 245 'inputs': [ | 246 'inputs': [ |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 390 |
| 390 # Add list of inputs to the command line, so if inputs change | 391 # Add list of inputs to the command line, so if inputs change |
| 391 # (e.g. if a Java file is removed), the command will be re-run. | 392 # (e.g. if a Java file is removed), the command will be re-run. |
| 392 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 393 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
| 393 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 394 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
| 394 | 395 |
| 395 ] | 396 ] |
| 396 }, | 397 }, |
| 397 ], | 398 ], |
| 398 } | 399 } |
| OLD | NEW |