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 system Java-files in a consistent manner. | 6 # to generate jni bindings for system 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': 'android_jar_jni_headers', | 10 # 'target_name': 'android_jar_jni_headers', |
(...skipping 24 matching lines...) Expand all Loading... |
35 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni/<(java_class_name)_jni.h'
, | 35 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni/<(java_class_name)_jni.h'
, |
36 ], | 36 ], |
37 'action': [ | 37 'action': [ |
38 '<(jni_generator)', | 38 '<(jni_generator)', |
39 '-j', | 39 '-j', |
40 '<(input_jar_file)', | 40 '<(input_jar_file)', |
41 '--input_file', | 41 '--input_file', |
42 '<(input_java_class)', | 42 '<(input_java_class)', |
43 '--output_dir', | 43 '--output_dir', |
44 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni', | 44 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni', |
| 45 '--optimize_generation', |
| 46 '<(optimize_jni_generation)', |
45 ], | 47 ], |
46 'message': 'Generating JNI bindings from <(input_jar_file)/<(input_java_c
lass)', | 48 'message': 'Generating JNI bindings from <(input_jar_file)/<(input_java_c
lass)', |
47 'process_outputs_as_sources': 1, | 49 'process_outputs_as_sources': 1, |
48 }, | 50 }, |
49 ], | 51 ], |
50 # This target exports a hard dependency because it generates header | 52 # This target exports a hard dependency because it generates header |
51 # files. | 53 # files. |
52 'hard_dependency': 1, | 54 'hard_dependency': 1, |
53 } | 55 } |
OLD | NEW |