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

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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/AndroidProtocolAdapter.java » ('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 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 # 'input_jar_file': '<(android_sdk)/android.jar',
16 # },
17 # 'includes': [ '../build/jar_file_jni_generator.gypi' ],
18 # },
19
20 {
21 'variables': {
22 'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py',
23 },
24 'actions': [
25 {
26 'action_name': 'generate_jni_headers_from_jar_file',
27 'inputs': [
28 '<(jni_generator)',
29 '<(input_jar_file)',
30 ],
31 'variables': {
32 'java_class_name': '<!(basename <(input_java_class)|sed "s/\.class//")'
33 },
34 'outputs': [
35 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_dir)/jni/<(java_class_name)_jni.h' ,
36 ],
37 'action': [
38 '<(jni_generator)',
39 '-j',
40 '<(input_jar_file)',
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 <(input_jar_file)/<(input_java_c lass)',
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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/AndroidProtocolAdapter.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698