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 27 matching lines...) Expand all Loading... |
38 'inputs': [ | 38 'inputs': [ |
39 '<(java_in_dir)/<(package_name).xml', | 39 '<(java_in_dir)/<(package_name).xml', |
40 '<!@(find <(java_in_dir) -name "*.java")' | 40 '<!@(find <(java_in_dir) -name "*.java")' |
41 ], | 41 ], |
42 'outputs': [ | 42 'outputs': [ |
43 '<(PRODUCT_DIR)/chromium_<(package_name).jar', | 43 '<(PRODUCT_DIR)/chromium_<(package_name).jar', |
44 ], | 44 ], |
45 'action': [ | 45 'action': [ |
46 'ant', | 46 'ant', |
47 '-DPRODUCT_DIR=<(PRODUCT_DIR)', | 47 '-DPRODUCT_DIR=<(PRODUCT_DIR)', |
| 48 '-DPACKAGE_NAME=<(package_name)', |
48 '-buildfile', | 49 '-buildfile', |
49 '<(java_in_dir)/<(package_name).xml', | 50 '<(java_in_dir)/<(package_name).xml', |
50 ] | 51 ] |
51 }, | 52 }, |
52 ], | 53 ], |
53 } | 54 } |
OLD | NEW |