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

Side by Side Diff: build/java_strings_grd.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
« no previous file with comments | « build/java_apk.gypi ('k') | chrome/chrome.gyp » ('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 2014 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 localized strings.xml from a grd file.
7 #
8 # To use this, create a gyp target with the following form:
9 # {
10 # 'target_name': 'my-package_strings_grd',
11 # 'type': 'none',
12 # 'variables': {
13 # 'grd_file': 'path/to/grd/file',
14 # },
15 # 'includes': ['path/to/this/gypi/file'],
16 # }
17 #
18 # Required variables:
19 # grd_file - The path to the grd file to use.
20 {
21 'dependencies': [
22 '<(DEPTH)/build/android/setup.gyp:build_output_dirs'
mkosiba (inactive) 2014/05/09 12:24:19 not needed, the rule doesn't need any of the dirs
23 ],
24 'variables': {
25 'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)',
26 'res_grit_dir': '<(intermediate_dir)/res_grit',
27 'grit_grd_file': '<(grd_file)',
28 'resource_input_paths': [
29 '<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(res_grit_dir)" < (grd_file))'
30 ],
31 },
32 'all_dependent_settings': {
33 'variables': {
34 'additional_res_dirs': ['<@(res_grit_dir)'],
35 'dependencies_res_files': ['<@(resource_input_paths)'],
36 'dependencies_res_input_dirs': ['<@(res_grit_dir)'],
37 },
38 },
39 'actions': [
40 {
41 'action_name': 'generate_localized_strings_xml',
42 'variables': {
43 'grit_additional_defines': ['-E', 'ANDROID_JAVA_TAGGED_ONLY=false'],
44 'grit_out_dir': '<(res_grit_dir)',
45 # resource_ids is unneeded since we don't generate .h headers.
46 'grit_resource_ids': '',
47 },
48 'includes': ['../build/grit_action.gypi'],
49 },
50 ],
51 }
OLDNEW
« no previous file with comments | « build/java_apk.gypi ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698