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 29 matching lines...) Expand all Loading... |
40 ], | 40 ], |
41 'outputs': [ | 41 'outputs': [ |
42 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni/<(RULE_INPUT_ROOT)_jni.h'
, | 42 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni/<(RULE_INPUT_ROOT)_jni.h'
, |
43 ], | 43 ], |
44 'action': [ | 44 'action': [ |
45 '<(jni_generator)', | 45 '<(jni_generator)', |
46 '--input_file', | 46 '--input_file', |
47 '<(RULE_INPUT_PATH)', | 47 '<(RULE_INPUT_PATH)', |
48 '--output_dir', | 48 '--output_dir', |
49 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni', | 49 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni', |
| 50 '--optimize_generation', |
| 51 '<(optimize_jni_generation)', |
50 ], | 52 ], |
51 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)', | 53 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)', |
52 'process_outputs_as_sources': 1, | 54 'process_outputs_as_sources': 1, |
53 }, | 55 }, |
54 ], | 56 ], |
55 # This target exports a hard dependency because it generates header | 57 # This target exports a hard dependency because it generates header |
56 # files. | 58 # files. |
57 'hard_dependency': 1, | 59 'hard_dependency': 1, |
58 } | 60 } |
OLD | NEW |