media/webrtc/trunk/build/jni_generator.gypi

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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.
     7 #
     8 # To use this, create a gyp target with the following form:
     9 #  {
    10 #    'target_name': 'base_jni_headers',
    11 #    'type': 'none',
    12 #    'sources': [
    13 #      'android/java/src/org/chromium/base/BuildInfo.java',
    14 #      ...
    15 #      ...
    16 #      'android/java/src/org/chromium/base/SystemMessageHandler.java',
    17 #    ],
    18 #    'variables': {
    19 #      'jni_gen_dir': 'base',
    20 #    },
    21 #    'includes': [ '../build/jni_generator.gypi' ],
    22 #  },
    23 #
    24 # The generated file name pattern can be seen on the "outputs" section below.
    25 # (note that RULE_INPUT_ROOT is the basename for the java file).
    26 #
    27 # See base/android/jni_generator/jni_generator.py for more info about the
    28 # format of generating JNI bindings.
    30 {
    31   'variables': {
    32     'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py',
    33   },
    34   'rules': [
    35     {
    36       'rule_name': 'generate_jni_headers',
    37       'extension': 'java',
    38       'inputs': [
    39         '<(jni_generator)',
    40       ],
    41       'outputs': [
    42         '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni/<(RULE_INPUT_ROOT)_jni.h',
    43       ],
    44       'action': [
    45         '<(jni_generator)',
    46         '--input_file',
    47         '<(RULE_INPUT_PATH)',
    48         '--output_dir',
    49         '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni',
    50       ],
    51       'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)',
    52       'process_outputs_as_sources': 1,
    53     },
    54   ],
    55   # This target exports a hard dependency because it generates header
    56   # files.
    57   'hard_dependency': 1,
    58 }

mercurial