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

Side by Side Diff: build/jni_generator.gypi

Issue 1973253002: Remove passing of --jarjar to jni_generator.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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/config/android/rules.gni ('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 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_generator_jarjar_file%': '',
34 'jni_generator_ptr_type%': 'long', 33 'jni_generator_ptr_type%': 'long',
35 # A comma separated string of include files. 34 # A comma separated string of include files.
36 'jni_generator_includes%': ( 35 'jni_generator_includes%': (
37 'base/android/jni_generator/jni_generator_helper.h' 36 'base/android/jni_generator/jni_generator_helper.h'
38 ), 37 ),
39 'native_exports%': '--native_exports_optional', 38 'native_exports%': '--native_exports_optional',
40 }, 39 },
41 'rules': [ 40 'rules': [
42 { 41 {
43 'rule_name': 'generate_jni_headers', 42 'rule_name': 'generate_jni_headers',
44 'extension': 'java', 43 'extension': 'java',
45 'inputs': [ 44 'inputs': [
46 '<(jni_generator)', 45 '<(jni_generator)',
47 ], 46 ],
48 'outputs': [ 47 'outputs': [
49 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(RULE_INPUT_ROOT)_jn i.h', 48 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(RULE_INPUT_ROOT)_jn i.h',
50 ], 49 ],
51 'action': [ 50 'action': [
52 '<(jni_generator)', 51 '<(jni_generator)',
53 '--input_file', 52 '--input_file',
54 '<(RULE_INPUT_PATH)', 53 '<(RULE_INPUT_PATH)',
55 '--output_dir', 54 '--output_dir',
56 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni', 55 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni',
57 '--includes', 56 '--includes',
58 '<(jni_generator_includes)', 57 '<(jni_generator_includes)',
59 '--optimize_generation', 58 '--optimize_generation',
60 '<(optimize_jni_generation)', 59 '<(optimize_jni_generation)',
61 '--jarjar',
62 '<(jni_generator_jarjar_file)',
63 '--ptr_type', 60 '--ptr_type',
64 '<(jni_generator_ptr_type)', 61 '<(jni_generator_ptr_type)',
65 '<(native_exports)', 62 '<(native_exports)',
66 ], 63 ],
67 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)', 64 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)',
68 'process_outputs_as_sources': 1, 65 'process_outputs_as_sources': 1,
69 'conditions': [
70 ['jni_generator_jarjar_file != ""', {
71 'inputs': [
72 '<(jni_generator_jarjar_file)',
73 ],
74 }]
75 ],
76 }, 66 },
77 ], 67 ],
78 'direct_dependent_settings': { 68 'direct_dependent_settings': {
79 'include_dirs': [ 69 'include_dirs': [
80 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)', 70 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)',
81 ], 71 ],
82 }, 72 },
83 # This target exports a hard dependency because it generates header 73 # This target exports a hard dependency because it generates header
84 # files. 74 # files.
85 'hard_dependency': 1, 75 'hard_dependency': 1,
86 } 76 }
87 77
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698