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

Side by Side Diff: build/jni_generator.gypi

Issue 1438853002: Remove all .gyp and .gypi files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « build/java_strings_grd.gypi ('k') | build/json_schema_bundle_compile.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
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_package': '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.
29
30 {
31 'variables': {
32 'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py',
33 'jni_generator_jarjar_file%': '',
34 'jni_generator_ptr_type%': 'long',
35 # A comma separated string of include files.
36 'jni_generator_includes%': (
37 'base/android/jni_generator/jni_generator_helper.h'
38 ),
39 'native_exports%': '--native_exports_optional',
40 },
41 'rules': [
42 {
43 'rule_name': 'generate_jni_headers',
44 'extension': 'java',
45 'inputs': [
46 '<(jni_generator)',
47 ],
48 'outputs': [
49 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(RULE_INPUT_ROOT)_jn i.h',
50 ],
51 'action': [
52 '<(jni_generator)',
53 '--input_file',
54 '<(RULE_INPUT_PATH)',
55 '--output_dir',
56 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni',
57 '--includes',
58 '<(jni_generator_includes)',
59 '--optimize_generation',
60 '<(optimize_jni_generation)',
61 '--jarjar',
62 '<(jni_generator_jarjar_file)',
63 '--ptr_type',
64 '<(jni_generator_ptr_type)',
65 '<(native_exports)',
66 ],
67 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)',
68 'process_outputs_as_sources': 1,
69 'conditions': [
70 ['jni_generator_jarjar_file != ""', {
71 'inputs': [
72 '<(jni_generator_jarjar_file)',
73 ],
74 }]
75 ],
76 },
77 ],
78 'direct_dependent_settings': {
79 'include_dirs': [
80 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)',
81 ],
82 },
83 # This target exports a hard dependency because it generates header
84 # files.
85 'hard_dependency': 1,
86 }
87
OLDNEW
« no previous file with comments | « build/java_strings_grd.gypi ('k') | build/json_schema_bundle_compile.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698