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

Side by Side Diff: build/jar_file_jni_generator.gypi

Issue 10832034: Upstreaming AndroidProtocolAdapter. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
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 system Java-files in a consistent manner.
7 #
8 # To use this, create a gyp target with the following form:
9 # {
10 # 'target_name': 'android_jar_jni_headers',
11 # 'type': 'none',
12 # 'variables': {
13 # 'jni_gen_dir': 'chrome',
14 # 'input_java_class' : 'java/io/InputStream.class',
15 # 'android_sdk': '/somewhere/sdk/',
Yaron 2012/08/01 20:27:26 This would have to go too.
felipeg 2012/08/02 13:20:38 Done.
16 # },
17 # 'sources': [
18 # '<(android_sdk)/android.jar',
19 # ],
20 # 'includes': [ '../build/system_classes_jni_generator.gypi' ],
Yaron 2012/08/01 20:27:26 update
felipeg 2012/08/02 13:20:38 Done.
21 # },
22
23 {
24 'variables': {
25 'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py',
26 },
27 'rules': [
28 {
29 'rule_name': 'generate_jni_headers_from_jar_file',
30 'extension': 'jar',
31 'inputs': [
32 '<(jni_generator)',
33 ],
34 'outputs': [
35 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni/<(RULE_INPUT_ROOT)_jni.h' ,
Yaron 2012/08/01 20:27:26 I don't think this generates it with the right nam
felipeg 2012/08/02 13:20:38 Done.
36 ],
37 'action': [
38 '<(jni_generator)',
39 '-j',
40 '<(RULE_INPUT_PATH)',
41 '--input_file',
42 '<(input_java_class)',
43 '--output_dir',
44 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni',
45 ],
46 'message': 'Generating JNI bindings from <(RULE_INPUT_PATH)',
47 'process_outputs_as_sources': 1,
48 },
49 ],
50 # This target exports a hard dependency because it generates header
51 # files.
52 'hard_dependency': 1,
53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698