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

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
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'
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_input_dirs': ['<@(res_grit_dir)'],
cjhopman 2014/05/08 19:06:42 I believe you also want: 'dependencies_res_file
mkosiba (inactive) 2014/05/09 09:17:35 Done.
36 },
37 },
38 'actions': [
39 {
40 'action_name': 'generate_localized_strings_xml',
41 'variables': {
42 'grit_additional_defines': ['-E', 'ANDROID_JAVA_TAGGED_ONLY=false'],
43 'grit_out_dir': '<(res_grit_dir)',
44 # resource_ids is unneeded since we don't generate .h headers.
45 'grit_resource_ids': '',
46 },
47 'includes': ['../build/grit_action.gypi'],
48 },
49 ],
50 }
OLDNEW
« no previous file with comments | « build/java_apk.gypi ('k') | chrome/chrome.gyp » ('j') | content/content.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698