michael@0: # Copyright (c) 2012 The Chromium Authors. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: # This file is meant to be included into a target to provide a rule michael@0: # to generate jni bindings for system Java-files in a consistent manner. michael@0: # michael@0: # To use this, create a gyp target with the following form: michael@0: # { michael@0: # 'target_name': 'android_jar_jni_headers', michael@0: # 'type': 'none', michael@0: # 'variables': { michael@0: # 'jni_gen_dir': 'chrome', michael@0: # 'input_java_class': 'java/io/InputStream.class', michael@0: # 'input_jar_file': '<(android_sdk)/android.jar', michael@0: # }, michael@0: # 'includes': [ '../build/jar_file_jni_generator.gypi' ], michael@0: # }, michael@0: michael@0: { michael@0: 'variables': { michael@0: 'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py', michael@0: }, michael@0: 'actions': [ michael@0: { michael@0: 'action_name': 'generate_jni_headers_from_jar_file', michael@0: 'inputs': [ michael@0: '<(jni_generator)', michael@0: '<(input_jar_file)', michael@0: ], michael@0: 'variables': { michael@0: 'java_class_name': '