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 generate jni bindings for Java-files in a consistent manner. | 6 # to generate jni bindings for Java-files 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': 'base_jni_headers', | 10 # 'target_name': 'base_jni_headers', |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 '<(RULE_INPUT_PATH)', | 48 '<(RULE_INPUT_PATH)', |
49 '--output_dir', | 49 '--output_dir', |
50 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni', | 50 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni', |
51 '--optimize_generation', | 51 '--optimize_generation', |
52 '<(optimize_jni_generation)', | 52 '<(optimize_jni_generation)', |
53 '--jarjar', | 53 '--jarjar', |
54 '<(jni_generator_jarjar_file)', | 54 '<(jni_generator_jarjar_file)', |
55 ], | 55 ], |
56 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)', | 56 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)', |
57 'process_outputs_as_sources': 1, | 57 'process_outputs_as_sources': 1, |
| 58 'conditions': [ |
| 59 ['jni_generator_jarjar_file != ""', { |
| 60 'inputs': [ |
| 61 '<(jni_generator_jarjar_file)', |
| 62 ], |
| 63 }] |
| 64 ], |
58 }, | 65 }, |
59 ], | 66 ], |
60 # This target exports a hard dependency because it generates header | 67 # This target exports a hard dependency because it generates header |
61 # files. | 68 # files. |
62 'hard_dependency': 1, | 69 'hard_dependency': 1, |
63 } | 70 } |
OLD | NEW |