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

Side by Side Diff: build/jni_generator.gypi

Issue 10081035: Add templates for building java and running the jni_generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make base targets only defined for androd Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « build/java.gypi ('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
(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 # 'variables': {
13 # 'java_sources': [
14 # 'android/java/org/chromium/base/BuildInfo.java',
15 # 'android/java/org/chromium/base/PathUtils.java',
16 # 'android/java/org/chromium/base/SystemMessageHandler.java',
17 # ],
18 # 'jni_headers': [
19 # '<(SHARED_INTERMEDIATE_DIR)/base/jni/build_info_jni.h',
20 # '<(SHARED_INTERMEDIATE_DIR)/base/jni/path_utils_jni.h',
21 # '<(SHARED_INTERMEDIATE_DIR)/base/jni/system_message_handler_jni.h',
22 # ],
23 # },
24 # 'includes': [ '../build/jni_generator.gypi' ],
25 # }
26 #
27 # The ordering of the java_sources must match the ordering of jni_headers. The
28 # result is that for each Java file listed in java_sources, the corresponding
29 # entry in jni_headers contains the JNI bindings produced from running the
30 # jni_generator on the input file.
31 #
32 # See base/android/jni_generator/jni_generator.py for more info about the
33 # format of generating JNI bindings.
34
35 {
36 'actions': [
37 {
38 'action_name': 'generate_jni_headers',
39 'type': 'none',
40 'inputs': [
41 '<(DEPTH)/base/android/jni_generator/jni_generator.py',
42 '<@(java_sources)',
43 ],
44 'outputs': [
45 '<@(jni_headers)',
46 ],
47 'action': [
48 'python',
49 '<(DEPTH)/base/android/jni_generator/jni_generator.py',
50 '-o',
51 '<@(_inputs)',
52 '<@(_outputs)',
53 ],
54 },
55 ],
56 }
OLDNEW
« no previous file with comments | « build/java.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698