| 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 20 matching lines...) Expand all Loading... |
| 31 'variables': { | 31 'variables': { |
| 32 'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py', | 32 'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py', |
| 33 'jni_generator_jarjar_file%': '', | 33 'jni_generator_jarjar_file%': '', |
| 34 'jni_generator_ptr_type%': 'long', | 34 'jni_generator_ptr_type%': 'long', |
| 35 # A comma separated string of include files. | 35 # A comma separated string of include files. |
| 36 'jni_generator_includes%': ( | 36 'jni_generator_includes%': ( |
| 37 'base/android/jni_generator/jni_generator_helper.h' | 37 'base/android/jni_generator/jni_generator_helper.h' |
| 38 ), | 38 ), |
| 39 'native_exports%': '', | 39 'native_exports%': '', |
| 40 }, | 40 }, |
| 41 'dependencies': [ | |
| 42 '<(DEPTH)/build/linker_script_copy.gyp:linker_script_copy', | |
| 43 ], | |
| 44 'rules': [ | 41 'rules': [ |
| 45 { | 42 { |
| 46 'rule_name': 'generate_jni_headers', | 43 'rule_name': 'generate_jni_headers', |
| 47 'extension': 'java', | 44 'extension': 'java', |
| 48 'inputs': [ | 45 'inputs': [ |
| 49 '<(jni_generator)', | 46 '<(jni_generator)', |
| 50 ], | 47 ], |
| 51 'outputs': [ | 48 'outputs': [ |
| 52 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(RULE_INPUT_ROOT)_jn
i.h', | 49 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(RULE_INPUT_ROOT)_jn
i.h', |
| 53 ], | 50 ], |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 }, | 82 }, |
| 86 # This target exports a hard dependency because it generates header | 83 # This target exports a hard dependency because it generates header |
| 87 # files. | 84 # files. |
| 88 'hard_dependency': 1, | 85 'hard_dependency': 1, |
| 89 'conditions': [ | 86 'conditions': [ |
| 90 ['android_webview_build==1', { | 87 ['android_webview_build==1', { |
| 91 'variables': { | 88 'variables': { |
| 92 'native_exports%': '--native_exports', | 89 'native_exports%': '--native_exports', |
| 93 }, | 90 }, |
| 94 'dependencies': [ | 91 'dependencies': [ |
| 95 '<(DEPTH)/build/linker_script_copy.gyp:linker_script_copy', | 92 '<(DEPTH)/build/android/android_exports.gyp:android_exports', |
| 96 ], | |
| 97 'conditions': [ | |
| 98 ['component=="static_library"', { | |
| 99 'link_settings': { | |
| 100 'ldflags': [ | |
| 101 # Only export symbols that are specified in version script. | |
| 102 '-Wl,--version-script=<(android_linker_script)', | |
| 103 ], | |
| 104 'ldflags!': [ | |
| 105 '-Wl,--exclude-libs=ALL', | |
| 106 ], | |
| 107 }, | |
| 108 }], | |
| 109 ], | 93 ], |
| 110 }], | 94 }], |
| 111 ], | 95 ], |
| 112 } | 96 } |
| 113 | 97 |
| OLD | NEW |