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
3 # found in the LICENSE file.
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.
8 # To use this, create a gyp target with the following form:
10 # 'target_name': 'base_jni_headers',
14 # 'android/java/org/chromium/base/BuildInfo.java',
15 # 'android/java/org/chromium/base/PathUtils.java',
16 # 'android/java/org/chromium/base/SystemMessageHandler.java',
19 # '<(SHARED_INTERMEDIATE_DIR)/base/jni/build_info_jni.h',
20 # '<(SHARED_INTERMEDIATE_DIR)/base/jni/path_utils_jni.h',
21 # '<(SHARED_INTERMEDIATE_DIR)/base/jni/system_message_handler_jni.h',
24 # 'includes': [ '../build/jni_generator.gypi' ],
27 # The ordering of the java_sources must match the ordering of jni_headers. The
28 # result is that for each Java file listed in java_sources, the corresponding
29 # entry in jni_headers contains the JNI bindings produced from running the
30 # jni_generator on the input file.
32 # See base/android/jni_generator/jni_generator.py for more info about the
33 # format of generating JNI bindings.
38 'action_name': 'generate_jni_headers',
41 '<(DEPTH)/base/android/jni_generator/jni_generator.py',
49 '<(DEPTH)/base/android/jni_generator/jni_generator.py',