diff options
author | mnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 10:10:22 +0000 |
---|---|---|
committer | mnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 10:10:22 +0000 |
commit | a88ddbb945448faf756c8820c4a74cae2f236c14 (patch) | |
tree | ca64167234e0004ed9e90137c7134bf5a43e652d /webkit/webkit.gyp | |
parent | 7cf9303dad039b26932f7c447b6d2647919f363e (diff) | |
download | chromium_src-a88ddbb945448faf756c8820c4a74cae2f236c14.zip chromium_src-a88ddbb945448faf756c8820c4a74cae2f236c14.tar.gz chromium_src-a88ddbb945448faf756c8820c4a74cae2f236c14.tar.bz2 |
DevTools l10n: generate localized strings and use them.
Reapplying r23820, this time interactive UI tests should not fail.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/174216
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23950 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/webkit.gyp')
-rw-r--r-- | webkit/webkit.gyp | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp index aa7dc05..9910640 100644 --- a/webkit/webkit.gyp +++ b/webkit/webkit.gyp @@ -1245,7 +1245,9 @@ 'msvs_guid': 'C66B126D-0ECE-4CA2-B6DC-FA780AFBBF09', 'dependencies': [ '../net/net.gyp:net', + 'devtools_strings', 'inspector_resources', + 'inspector_strings', 'webcore', 'webkit', 'webkit_resources', @@ -1567,5 +1569,71 @@ }, ], }, + { + 'target_name': 'inspector_strings', + 'type': 'none', + 'msvs_guid': '14F3FA5A-C401-4A7F-8F25-C23739D1C0BE', + 'variables': { + 'grit_path': '../tools/grit/grit.py', + 'grit_out_dir': '<(PRODUCT_DIR)/resources/inspector/l10n', + }, + 'actions': [ + { + 'action_name': 'inspector_strings', + 'variables': { + 'input_path': 'glue/inspector_strings.grd', + }, + 'inputs': [ + '<(input_path)', + ], + 'outputs': [ + '<(grit_out_dir)/inspectorStrings_da.js', + '<(grit_out_dir)/inspectorStrings_en-US.js', + '<(grit_out_dir)/inspectorStrings_he.js', + '<(grit_out_dir)/inspectorStrings_zh-TW.js', + ], + 'action': ['python', '<(grit_path)', '-i', '<(input_path)', 'build', '-o', '<(grit_out_dir)'], + 'message': 'Generating resources from <(input_path)', + }, + ], + 'conditions': [ + ['OS=="win"', { + 'dependencies': ['../build/win/system.gyp:cygwin'], + }], + ], + }, + { + 'target_name': 'devtools_strings', + 'type': 'none', + 'msvs_guid': 'AE42E1EB-E848-4FD2-B42F-800604062918', + 'variables': { + 'grit_path': '../tools/grit/grit.py', + 'grit_out_dir': '<(PRODUCT_DIR)/resources/inspector/l10n', + }, + 'actions': [ + { + 'action_name': 'devtools_strings', + 'variables': { + 'input_path': 'glue/devtools_strings.grd', + }, + 'inputs': [ + '<(input_path)', + ], + 'outputs': [ + '<(grit_out_dir)/devtoolsStrings_da.js', + '<(grit_out_dir)/devtoolsStrings_en-US.js', + '<(grit_out_dir)/devtoolsStrings_he.js', + '<(grit_out_dir)/devtoolsStrings_zh-TW.js', + ], + 'action': ['python', '<(grit_path)', '-i', '<(input_path)', 'build', '-o', '<(grit_out_dir)'], + 'message': 'Generating resources from <(input_path)', + }, + ], + 'conditions': [ + ['OS=="win"', { + 'dependencies': ['../build/win/system.gyp:cygwin'], + }], + ], + }, ], } |