Chromium Code Reviews| 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 585 ], | 585 ], |
| 586 'outputs': [ | 586 'outputs': [ |
| 587 '<(instr_stamp)', | 587 '<(instr_stamp)', |
| 588 ], | 588 ], |
| 589 'includes': [ 'android/instr_action.gypi' ], | 589 'includes': [ 'android/instr_action.gypi' ], |
| 590 }, | 590 }, |
| 591 { | 591 { |
| 592 'action_name': 'jar_<(_target_name)', | 592 'action_name': 'jar_<(_target_name)', |
| 593 'message': 'Creating <(_target_name) jar', | 593 'message': 'Creating <(_target_name) jar', |
| 594 'inputs': [ | 594 'inputs': [ |
| 595 '<(instr_stamp)', | |
| 596 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 595 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 597 '<(DEPTH)/build/android/gyp/util/md5_check.py', | 596 '<(DEPTH)/build/android/gyp/util/md5_check.py', |
| 598 '<(DEPTH)/build/android/gyp/jar.py', | 597 '<(DEPTH)/build/android/gyp/jar.py', |
| 598 '<(instr_stamp)', | |
| 599 ], | 599 ], |
| 600 'outputs': [ | 600 'outputs': [ |
| 601 '<(jar_stamp)', | 601 '<(jar_stamp)', |
| 602 ], | 602 ], |
| 603 'action': [ | 603 'action': [ |
| 604 'python', '<(DEPTH)/build/android/gyp/jar.py', | 604 'python', '<(DEPTH)/build/android/gyp/jar.py', |
| 605 '--classes-dir=<(classes_final_dir)', | 605 '--classes-dir=<(classes_final_dir)', |
| 606 '--jar-path=<(jar_path)', | 606 '--jar-path=<(jar_path)', |
| 607 '--excluded-classes=<(jar_excluded_classes)', | 607 '--excluded-classes=<(jar_excluded_classes)', |
| 608 '--stamp=<(jar_stamp)', | 608 '--stamp=<(jar_stamp)', |
|
Nico
2014/03/06 20:48:02
I noticed that nothing depends on jar_stamp (and t
cjhopman
2014/03/06 21:25:28
The jar is used by dependents via `apk_output_jar_
| |
| 609 | |
| 610 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja . | |
| 611 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | |
| 612 ] | 609 ] |
| 613 }, | 610 }, |
| 614 { | 611 { |
| 615 'action_name': 'ant_obfuscate_<(_target_name)', | 612 'action_name': 'ant_obfuscate_<(_target_name)', |
| 616 'message': 'Obfuscating <(_target_name)', | 613 'message': 'Obfuscating <(_target_name)', |
| 617 'inputs': [ | 614 'inputs': [ |
| 618 '<(DEPTH)/build/android/ant/apk-obfuscate.xml', | 615 '<(DEPTH)/build/android/ant/apk-obfuscate.xml', |
| 619 '<(DEPTH)/build/android/ant/create-test-jar.js', | 616 '<(DEPTH)/build/android/ant/create-test-jar.js', |
| 620 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 617 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 621 '<(DEPTH)/build/android/gyp/ant.py', | 618 '<(DEPTH)/build/android/gyp/ant.py', |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 769 '<(DEPTH)/build/android/ant/apk-package.xml', | 766 '<(DEPTH)/build/android/ant/apk-package.xml', |
| 770 | 767 |
| 771 # Add list of inputs to the command line, so if inputs change | 768 # Add list of inputs to the command line, so if inputs change |
| 772 # (e.g. if a Java file is removed), the command will be re-run. | 769 # (e.g. if a Java file is removed), the command will be re-run. |
| 773 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 770 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
| 774 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 771 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
| 775 ] | 772 ] |
| 776 }, | 773 }, |
| 777 ], | 774 ], |
| 778 } | 775 } |
| OLD | NEW |