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

Side by Side Diff: build/jni_generator.gypi

Issue 49913003: Android: adds ptr_type to jni_generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 7 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
« no previous file with comments | « base/android/jni_generator/jni_generator_tests.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 13 matching lines...) Expand all
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_generator_jarjar_file%': '', 33 'jni_generator_jarjar_file%': '',
34 'jni_generator_ptr_type%': 'int',
34 }, 35 },
35 'rules': [ 36 'rules': [
36 { 37 {
37 'rule_name': 'generate_jni_headers', 38 'rule_name': 'generate_jni_headers',
38 'extension': 'java', 39 'extension': 'java',
39 'inputs': [ 40 'inputs': [
40 '<(jni_generator)', 41 '<(jni_generator)',
41 ], 42 ],
42 'outputs': [ 43 'outputs': [
43 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(RULE_INPUT_ROOT)_jn i.h', 44 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(RULE_INPUT_ROOT)_jn i.h',
44 ], 45 ],
45 'action': [ 46 'action': [
46 '<(jni_generator)', 47 '<(jni_generator)',
47 '--input_file', 48 '--input_file',
48 '<(RULE_INPUT_PATH)', 49 '<(RULE_INPUT_PATH)',
49 '--output_dir', 50 '--output_dir',
50 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni', 51 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni',
51 '--optimize_generation', 52 '--optimize_generation',
52 '<(optimize_jni_generation)', 53 '<(optimize_jni_generation)',
53 '--jarjar', 54 '--jarjar',
54 '<(jni_generator_jarjar_file)', 55 '<(jni_generator_jarjar_file)',
56 '--ptr_type',
57 '<(jni_generator_ptr_type)',
55 ], 58 ],
56 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)', 59 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)',
57 'process_outputs_as_sources': 1, 60 'process_outputs_as_sources': 1,
58 'conditions': [ 61 'conditions': [
59 ['jni_generator_jarjar_file != ""', { 62 ['jni_generator_jarjar_file != ""', {
60 'inputs': [ 63 'inputs': [
61 '<(jni_generator_jarjar_file)', 64 '<(jni_generator_jarjar_file)',
62 ], 65 ],
63 }] 66 }]
64 ], 67 ],
65 }, 68 },
66 ], 69 ],
67 # This target exports a hard dependency because it generates header 70 # This target exports a hard dependency because it generates header
68 # files. 71 # files.
69 'hard_dependency': 1, 72 'hard_dependency': 1,
70 } 73 }
OLDNEW
« no previous file with comments | « base/android/jni_generator/jni_generator_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698