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

Side by Side Diff: build/java.gypi

Issue 270633015: [android] Generate strings.xml for android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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 build Java in a consistent manner. 6 # to build Java in a consistent manner.
7 # 7 #
8 # To use this, create a gyp target with the following form: 8 # To use this, create a gyp target with the following form:
9 # { 9 # {
10 # 'target_name': 'my-package_java', 10 # 'target_name': 'my-package_java',
(...skipping 21 matching lines...) Expand all
32 # javac_includes - A list of specific files to include. This is by default 32 # javac_includes - A list of specific files to include. This is by default
33 # empty, which leads to inclusion of all files specified. May include 33 # empty, which leads to inclusion of all files specified. May include
34 # wildcard, and supports '**/' for recursive path wildcards, ie.: 34 # wildcard, and supports '**/' for recursive path wildcards, ie.:
35 # '**/MyFileRegardlessOfDirectory.java', '**/IncludedPrefix*.java'. 35 # '**/MyFileRegardlessOfDirectory.java', '**/IncludedPrefix*.java'.
36 # has_java_resources - Set to 1 if the java target contains an 36 # has_java_resources - Set to 1 if the java target contains an
37 # Android-compatible resources folder named res. If 1, R_package and 37 # Android-compatible resources folder named res. If 1, R_package and
38 # R_package_relpath must also be set. 38 # R_package_relpath must also be set.
39 # R_package - The java package in which the R class (which maps resources to 39 # R_package - The java package in which the R class (which maps resources to
40 # integer IDs) should be generated, e.g. org.chromium.content. 40 # integer IDs) should be generated, e.g. org.chromium.content.
41 # R_package_relpath - Same as R_package, but replace each '.' with '/'. 41 # R_package_relpath - Same as R_package, but replace each '.' with '/'.
42 # java_strings_grd - The name of the grd file from which to generate localized
43 # strings.xml files, if any.
44 # res_extra_dirs - A list of extra directories containing Android resources. 42 # res_extra_dirs - A list of extra directories containing Android resources.
45 # These directories may be generated at build time. 43 # These directories may be generated at build time.
46 # res_extra_files - A list of the files in res_extra_dirs. 44 # res_extra_files - A list of the files in res_extra_dirs.
47 # never_lint - Set to 1 to not run lint on this target. 45 # never_lint - Set to 1 to not run lint on this target.
48 46
49 { 47 {
50 'dependencies': [ 48 'dependencies': [
51 '<(DEPTH)/build/android/setup.gyp:build_output_dirs' 49 '<(DEPTH)/build/android/setup.gyp:build_output_dirs'
52 ], 50 ],
53 'variables': { 51 'variables': {
54 'android_jar': '<(android_sdk)/android.jar', 52 'android_jar': '<(android_sdk)/android.jar',
55 'input_jars_paths': [ '<(android_jar)' ], 53 'input_jars_paths': [ '<(android_jar)' ],
56 'additional_src_dirs': [], 54 'additional_src_dirs': [],
57 'javac_includes': [], 55 'javac_includes': [],
58 'jar_name': '<(_target_name).jar', 56 'jar_name': '<(_target_name).jar',
59 'jar_dir': '<(PRODUCT_DIR)/lib.java', 57 'jar_dir': '<(PRODUCT_DIR)/lib.java',
60 'jar_path': '<(intermediate_dir)/<(jar_name)', 58 'jar_path': '<(intermediate_dir)/<(jar_name)',
61 'jar_final_path': '<(jar_dir)/<(jar_name)', 59 'jar_final_path': '<(jar_dir)/<(jar_name)',
62 'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ], 60 'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ],
63 'instr_stamp': '<(intermediate_dir)/instr.stamp', 61 'instr_stamp': '<(intermediate_dir)/instr.stamp',
64 'additional_input_paths': [], 62 'additional_input_paths': [],
65 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', 63 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar',
66 'generated_src_dirs': ['>@(generated_R_dirs)'], 64 'generated_src_dirs': ['>@(generated_R_dirs)'],
67 'generated_R_dirs': [], 65 'generated_R_dirs': [],
68 'has_java_resources%': 0, 66 'has_java_resources%': 0,
69 'java_strings_grd%': '',
70 'res_extra_dirs': [], 67 'res_extra_dirs': [],
71 'res_extra_files': [], 68 'res_extra_files': [],
72 'res_v14_verify_only%': 0, 69 'res_v14_verify_only%': 0,
73 'resource_input_paths': ['>@(res_extra_files)'], 70 'resource_input_paths': ['>@(res_extra_files)'],
74 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', 71 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
75 'classes_dir': '<(intermediate_dir)/classes', 72 'classes_dir': '<(intermediate_dir)/classes',
76 'compile_stamp': '<(intermediate_dir)/compile.stamp', 73 'compile_stamp': '<(intermediate_dir)/compile.stamp',
77 'lint_stamp': '<(intermediate_dir)/lint.stamp', 74 'lint_stamp': '<(intermediate_dir)/lint.stamp',
78 'lint_result': '<(intermediate_dir)/lint_result.xml', 75 'lint_result': '<(intermediate_dir)/lint_result.xml',
79 'lint_config': '<(intermediate_dir)/lint_config.xml', 76 'lint_config': '<(intermediate_dir)/lint_config.xml',
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 # Dependent APKs include this target's resources via 140 # Dependent APKs include this target's resources via
144 # additional_res_dirs, additional_res_packages, and 141 # additional_res_dirs, additional_res_packages, and
145 # additional_R_text_files. 142 # additional_R_text_files.
146 'additional_res_dirs': ['<(res_crunched_dir)', 143 'additional_res_dirs': ['<(res_crunched_dir)',
147 '<(res_v14_compatibility_dir)', 144 '<(res_v14_compatibility_dir)',
148 '<@(res_input_dirs)'], 145 '<@(res_input_dirs)'],
149 'additional_res_packages': ['<(R_package)'], 146 'additional_res_packages': ['<(R_package)'],
150 'additional_R_text_files': ['<(R_text_file)'], 147 'additional_R_text_files': ['<(R_text_file)'],
151 }, 148 },
152 }, 149 },
153 'conditions': [
154 ['java_strings_grd != ""', {
155 'variables': {
156 'res_grit_dir': '<(intermediate_dir)/res_grit',
157 'res_input_dirs': ['<(res_grit_dir)'],
158 'grit_grd_file': '<(java_in_dir)/strings/<(java_strings_grd)',
159 'resource_input_paths': ['<!@pymod_do_main(grit_info <@(grit_defines ) --outputs "<(res_grit_dir)" <(grit_grd_file))'],
160 },
161 'actions': [
162 {
163 'action_name': 'generate_localized_strings_xml',
164 'variables': {
165 'grit_additional_defines': ['-E', 'ANDROID_JAVA_TAGGED_ONLY=fals e'],
166 'grit_out_dir': '<(res_grit_dir)',
167 # resource_ids is unneeded since we don't generate .h headers.
168 'grit_resource_ids': '',
169 },
170 'includes': ['../build/grit_action.gypi'],
171 },
172 ],
173 }],
174 ],
175 'actions': [ 150 'actions': [
176 # Generate R.java and crunch image resources. 151 # Generate R.java and crunch image resources.
177 { 152 {
178 'action_name': 'process_resources', 153 'action_name': 'process_resources',
179 'message': 'processing resources for <(_target_name)', 154 'message': 'processing resources for <(_target_name)',
180 'variables': { 155 'variables': {
181 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml', 156 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml',
182 # Include the dependencies' res dirs so that references to 157 # Include the dependencies' res dirs so that references to
183 # resources in dependencies can be resolved. 158 # resources in dependencies can be resolved.
184 'all_res_dirs': ['<@(res_input_dirs)', 159 'all_res_dirs': ['<@(res_input_dirs)',
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 'dex_no_locals': 1, 353 'dex_no_locals': 1,
379 }], 354 }],
380 ], 355 ],
381 'dex_input_paths': [ '<(jar_final_path)' ], 356 'dex_input_paths': [ '<(jar_final_path)' ],
382 'output_path': '<(dex_path)', 357 'output_path': '<(dex_path)',
383 }, 358 },
384 'includes': [ 'android/dex_action.gypi' ], 359 'includes': [ 'android/dex_action.gypi' ],
385 }, 360 },
386 ], 361 ],
387 } 362 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698