| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 'python', '<(DEPTH)/build/android/gyp/jar_toc.py', | 275 'python', '<(DEPTH)/build/android/gyp/jar_toc.py', |
| 276 '--jar-path=<(jar_path)', | 276 '--jar-path=<(jar_path)', |
| 277 '--toc-path=<(jar_path).TOC', | 277 '--toc-path=<(jar_path).TOC', |
| 278 | 278 |
| 279 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | 279 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. |
| 280 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 280 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
| 281 ] | 281 ] |
| 282 }, | 282 }, |
| 283 { | 283 { |
| 284 'action_name': 'dex_<(_target_name)', | 284 'action_name': 'dex_<(_target_name)', |
| 285 'message': 'Dexing <(_target_name) jar', | 285 'variables': { |
| 286 'inputs': [ | 286 'dex_input_paths': [ '<(jar_path)' ], |
| 287 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 287 'output_path': '<(dex_path)', |
| 288 '<(DEPTH)/build/android/gyp/util/md5_check.py', | 288 }, |
| 289 '<(DEPTH)/build/android/gyp/dex.py', | 289 'includes': [ 'android/dex_action.gypi' ], |
| 290 '<(jar_path)', | |
| 291 ], | |
| 292 'outputs': [ | |
| 293 '<(dex_path)', | |
| 294 ], | |
| 295 'action': [ | |
| 296 'python', '<(DEPTH)/build/android/gyp/dex.py', | |
| 297 '--dex-path=<(dex_path)', | |
| 298 '--android-sdk-root=<(android_sdk_root)', | |
| 299 | |
| 300 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | |
| 301 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | |
| 302 | |
| 303 '<(jar_path)', | |
| 304 ] | |
| 305 }, | 290 }, |
| 306 | |
| 307 ], | 291 ], |
| 308 } | 292 } |
| OLD | NEW |