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

Side by Side Diff: build/android/java_cpp_template.gypi

Issue 12374036: Generate Java template enums into correct Java package hierarchy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « no previous file | content/content.gyp » ('j') | 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 Java source files from templates that are processed 6 # to generate Java source files from templates that are processed
7 # through the host C pre-processor. 7 # through the host C pre-processor.
8 # 8 #
9 # This assumes a GNU-compatible pre-processor installed as 'cpp'. 9 # This assumes a GNU-compatible pre-processor installed as 'cpp'.
10 # Only tested on Linux. 10 # Only tested on Linux.
11 # 11 #
12 # To use this, create a gyp target with the following form: 12 # To use this, create a gyp target with the following form:
13 # { 13 # {
14 # 'target_name': 'android_net_java_constants', 14 # 'target_name': 'android_net_java_constants',
15 # 'type': 'none', 15 # 'type': 'none',
16 # 'sources': [ 16 # 'sources': [
17 # 'net/android/NetError.template', 17 # 'net/android/NetError.template',
18 # ], 18 # ],
19 # 'variables': { 19 # 'variables': {
20 # 'package_name': 'org.chromium.net', 20 # 'package_name': 'org/chromium/net',
21 # 'template_deps': ['net/base/certificate_mime_type_list.h'], 21 # 'template_deps': ['net/base/certificate_mime_type_list.h'],
22 # }, 22 # },
23 # 'includes': [ '../build/android/java_constants.gypi' ], 23 # 'includes': [ '../build/android/java_constants.gypi' ],
24 # }, 24 # },
25 # 25 #
26 # The 'sources' entry should only list template file. The template file 26 # The 'sources' entry should only list template file. The template file
27 # itself should use the 'ClassName.template' format, and will generate 27 # itself should use the 'ClassName.template' format, and will generate
28 # 'gen/templates/<package-name>/ClassName.java. The files which template 28 # 'gen/templates/<package-name>/ClassName.java. The files which template
29 # dependents on and typically included by the template should be listed 29 # dependents on and typically included by the template should be listed
30 # in template_deps variables. Any change to them will force a rebuild of 30 # in template_deps variables. Any change to them will force a rebuild of
(...skipping 30 matching lines...) Expand all
61 '-x', 'c-header', # treat sources as C header files 61 '-x', 'c-header', # treat sources as C header files
62 '-P', # disable line markers, i.e. '#line 309' 62 '-P', # disable line markers, i.e. '#line 309'
63 '-I', '<(DEPTH)', # Add project top-level to include path 63 '-I', '<(DEPTH)', # Add project top-level to include path
64 '-o', '<@(_outputs)', # Specify output file 64 '-o', '<@(_outputs)', # Specify output file
65 '<(RULE_INPUT_PATH)', # Specify input file 65 '<(RULE_INPUT_PATH)', # Specify input file
66 ], 66 ],
67 'message': 'Generating Java from cpp template <(RULE_INPUT_PATH)', 67 'message': 'Generating Java from cpp template <(RULE_INPUT_PATH)',
68 } 68 }
69 ], 69 ],
70 } 70 }
OLDNEW
« no previous file with comments | « no previous file | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698