Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: build/jni_generator.gypi

Issue 11363079: Android: uses "import" section and inner classes for obtaining qualified JNI parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yaron's comments Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 12 matching lines...) Expand all
23 # 23 #
24 # The generated file name pattern can be seen on the "outputs" section below. 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). 25 # (note that RULE_INPUT_ROOT is the basename for the java file).
26 # 26 #
27 # See base/android/jni_generator/jni_generator.py for more info about the 27 # See base/android/jni_generator/jni_generator.py for more info about the
28 # format of generating JNI bindings. 28 # format of generating JNI bindings.
29 29
30 { 30 {
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_external_param_list%': '<(DEPTH)/base/android/jni_generator/class_list. jni',
34 }, 33 },
35 'rules': [ 34 'rules': [
36 { 35 {
37 'rule_name': 'generate_jni_headers', 36 'rule_name': 'generate_jni_headers',
38 'extension': 'java', 37 'extension': 'java',
39 'inputs': [ 38 'inputs': [
40 '<(jni_generator)', 39 '<(jni_generator)',
41 '<(jni_external_param_list)',
42 ], 40 ],
43 'outputs': [ 41 'outputs': [
44 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni/<(RULE_INPUT_ROOT)_jni.h' , 42 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni/<(RULE_INPUT_ROOT)_jni.h' ,
45 ], 43 ],
46 'action': [ 44 'action': [
47 '<(jni_generator)', 45 '<(jni_generator)',
48 '--external_param_list',
49 '<(jni_external_param_list)',
50 '--input_file', 46 '--input_file',
51 '<(RULE_INPUT_PATH)', 47 '<(RULE_INPUT_PATH)',
52 '--output_dir', 48 '--output_dir',
53 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni', 49 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni',
54 ], 50 ],
55 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)', 51 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)',
56 'process_outputs_as_sources': 1, 52 'process_outputs_as_sources': 1,
57 }, 53 },
58 ], 54 ],
59 # This target exports a hard dependency because it generates header 55 # This target exports a hard dependency because it generates header
60 # files. 56 # files.
61 'hard_dependency': 1, 57 'hard_dependency': 1,
62 } 58 }
OLDNEW
« no previous file with comments | « base/android/jni_generator/jni_generator_tests.py ('k') | chrome/browser/android/class_list.jni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698