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', |
11 # 'type': 'none', | 11 # 'type': 'none', |
12 # 'variables': { | 12 # 'variables': { |
13 # 'jni_gen_package': 'chrome', | 13 # 'jni_gen_package': 'chrome', |
14 # 'input_java_class': 'java/io/InputStream.class', | 14 # 'input_java_class': 'java/io/InputStream.class', |
15 # }, | 15 # }, |
16 # 'includes': [ '../build/jar_file_jni_generator.gypi' ], | 16 # 'includes': [ '../build/jar_file_jni_generator.gypi' ], |
17 # }, | 17 # }, |
18 # | 18 # |
19 # Optional variables: | 19 # Optional variables: |
20 # input_jar_file - The input jar file, if omitted, android_sdk_jar will be used
. | 20 # input_jar_file - The input jar file, if omitted, android_sdk_jar will be used
. |
21 | 21 |
22 { | 22 { |
23 'variables': { | 23 'variables': { |
24 'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py', | 24 'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py', |
25 # A comma separated string of include files. | 25 # A comma separated string of include files. |
26 'jni_generator_includes%': ( | 26 'jni_generator_includes%': ( |
27 'base/android/jni_generator/jni_generator_helper.h' | 27 'base/android/jni_generator/jni_generator_helper.h' |
28 ), | 28 ), |
29 'native_exports%': '', | 29 'native_exports%': '--native_exports_optional', |
30 }, | 30 }, |
31 'actions': [ | 31 'actions': [ |
32 { | 32 { |
33 'action_name': 'generate_jni_headers_from_jar_file', | 33 'action_name': 'generate_jni_headers_from_jar_file', |
34 'inputs': [ | 34 'inputs': [ |
35 '<(jni_generator)', | 35 '<(jni_generator)', |
36 '<(input_jar_file)', | 36 '<(input_jar_file)', |
37 '<(android_sdk_jar)', | 37 '<(android_sdk_jar)', |
38 ], | 38 ], |
39 'variables': { | 39 'variables': { |
(...skipping 28 matching lines...) Expand all Loading... |
68 ['android_webview_build==1', { | 68 ['android_webview_build==1', { |
69 'variables': { | 69 'variables': { |
70 'native_exports%': '--native_exports', | 70 'native_exports%': '--native_exports', |
71 }, | 71 }, |
72 'dependencies': [ | 72 'dependencies': [ |
73 '<(DEPTH)/build/android/android_exports.gyp:android_exports', | 73 '<(DEPTH)/build/android/android_exports.gyp:android_exports', |
74 ], | 74 ], |
75 }], | 75 }], |
76 ], | 76 ], |
77 } | 77 } |
OLD | NEW |