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

Side by Side Diff: build/system_classes_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': 'chrome_jni_headers_for_system_classes',
11 # 'type': 'none',
12 # 'sources': [
13 # 'android/java/src/org/chromium/chrome/browser/AndroidProtocolAdapter.java ',
14 # ...
15 # ],
16 # 'variables': {
17 # 'jni_gen_dir': 'chrome',
18 # 'input_java_class' : 'java/io/InputStream.class',
19 # },
20 # 'includes': [ '../build/system_classes_jni_generator.gypi' ],
21 # },
22 #
23 # See jni_generator.gypi for more information.
24
25 {
26 'includes': [ 'jni_generator.gypi' ],
27 'actions': [
28 {
29 'action_name': 'generate_jni_headers_for_system_classes',
30 'variables' : {
31 'android_sdk%':
32 '<!(if [ -f $ANDROID_SDK_ROOT/android.jar ]; then \
33 /bin/echo -n $ANDROID_SDK_ROOT ; \
34 else /bin/echo -n \
35 $ANDROID_SDK_ROOT/platforms/android-${ANDROID_SDK_VERSION} ; \
36 fi)',
Nico 2012/07/27 14:22:23 The Gyp Way is to put anything more complex than a
felipeg 2012/07/30 16:48:54 Done.
37 },
38 'inputs': [
39 '../base/android/jni_generator/jni_generator.py',
40 '<(android_sdk)/android.jar',
41 ],
42 'outputs': [
43 '<(SHARED_INTERMEDIATE_DIR)/chrome/jni/input_stream_jni.h',
44 ],
45 'action': [
46 'python',
47 '../base/android/jni_generator/jni_generator.py',
48 '-j',
49 '<(android_sdk)/android.jar',
50 '--input_file',
51 '<(input_java_class)',
52 '--output_dir',
53 '<(SHARED_INTERMEDIATE_DIR)/chrome/jni'
54 ],
55 },
56 ],
57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698