| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 'python', '<(DEPTH)/build/android/gyp/jar.py', | 224 'python', '<(DEPTH)/build/android/gyp/jar.py', |
| 225 '--classes-dir=<(classes_dir)', | 225 '--classes-dir=<(classes_dir)', |
| 226 '--jar-path=<(jar_path)', | 226 '--jar-path=<(jar_path)', |
| 227 '--excluded-classes=<(jar_excluded_classes)', | 227 '--excluded-classes=<(jar_excluded_classes)', |
| 228 | 228 |
| 229 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | 229 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. |
| 230 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 230 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
| 231 ] | 231 ] |
| 232 }, | 232 }, |
| 233 { | 233 { |
| 234 'action_name': 'jar_toc_<(_target_name)', |
| 235 'message': 'Creating <(_target_name) jar.TOC', |
| 236 'inputs': [ |
| 237 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 238 '<(DEPTH)/build/android/gyp/util/md5_check.py', |
| 239 '<(DEPTH)/build/android/gyp/jar_toc.py', |
| 240 '<(jar_path)', |
| 241 ], |
| 242 'outputs': [ |
| 243 '<(jar_path).TOC', |
| 244 ], |
| 245 'action': [ |
| 246 'python', '<(DEPTH)/build/android/gyp/jar_toc.py', |
| 247 '--jar-path=<(jar_path)', |
| 248 '--toc-path=<(jar_path).TOC', |
| 249 |
| 250 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. |
| 251 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
| 252 ] |
| 253 }, |
| 254 { |
| 234 'action_name': 'dex_<(_target_name)', | 255 'action_name': 'dex_<(_target_name)', |
| 235 'message': 'Dexing <(_target_name) jar', | 256 'message': 'Dexing <(_target_name) jar', |
| 236 'inputs': [ | 257 'inputs': [ |
| 237 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 258 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 238 '<(DEPTH)/build/android/gyp/util/md5_check.py', | 259 '<(DEPTH)/build/android/gyp/util/md5_check.py', |
| 239 '<(DEPTH)/build/android/gyp/dex.py', | 260 '<(DEPTH)/build/android/gyp/dex.py', |
| 240 '<(jar_path)', | 261 '<(jar_path)', |
| 241 ], | 262 ], |
| 242 'outputs': [ | 263 'outputs': [ |
| 243 '<(dex_path)', | 264 '<(dex_path)', |
| 244 ], | 265 ], |
| 245 'action': [ | 266 'action': [ |
| 246 'python', '<(DEPTH)/build/android/gyp/dex.py', | 267 'python', '<(DEPTH)/build/android/gyp/dex.py', |
| 247 '--dex-path=<(dex_path)', | 268 '--dex-path=<(dex_path)', |
| 248 '--android-sdk-root=<(android_sdk_root)', | 269 '--android-sdk-root=<(android_sdk_root)', |
| 249 | 270 |
| 250 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | 271 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. |
| 251 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 272 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
| 252 | 273 |
| 253 '<(jar_path)', | 274 '<(jar_path)', |
| 254 ] | 275 ] |
| 255 }, | 276 }, |
| 256 | 277 |
| 257 ], | 278 ], |
| 258 } | 279 } |
| OLD | NEW |