summaryrefslogtreecommitdiffstats
path: root/app/app.gyp
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 06:37:13 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 06:37:13 +0000
commitaf7baa16383a62872d57219cfdca27caca4dd6a7 (patch)
tree86619134033f1ad511d75654a84a0f9d1170194d /app/app.gyp
parentf2c444980e5e4aac875b96cb911b0d347f3d81c5 (diff)
downloadchromium_src-af7baa16383a62872d57219cfdca27caca4dd6a7.zip
chromium_src-af7baa16383a62872d57219cfdca27caca4dd6a7.tar.gz
chromium_src-af7baa16383a62872d57219cfdca27caca4dd6a7.tar.bz2
Create a new app_strings target that builds strings for the app_base and eventually views targets.
http://crbug.com/11387 Review URL: http://codereview.chromium.org/113565 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16361 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/app.gyp')
-rw-r--r--app/app.gyp40
1 files changed, 39 insertions, 1 deletions
diff --git a/app/app.gyp b/app/app.gyp
index 06c954a..71efee1 100644
--- a/app/app.gyp
+++ b/app/app.gyp
@@ -42,6 +42,7 @@
'type': '<(library)',
'msvs_guid': '4631946D-7D5F-44BD-A5A8-504C0A7033BE',
'dependencies': [
+ 'app_strings',
'../base/base.gyp:base',
'../base/base.gyp:base_gfx',
'../net/net.gyp:net',
@@ -164,7 +165,7 @@
'type': 'executable',
'msvs_guid': 'B4D59AE8-8D2F-97E1-A8E9-6D2826729530',
'dependencies': [
- '../app/app.gyp:app_base',
+ 'app_base',
'../net/net.gyp:net_test_support',
'../skia/skia.gyp:skia',
'../testing/gtest.gyp:gtest',
@@ -207,5 +208,42 @@
}],
],
},
+ {
+ 'target_name': 'app_strings',
+ 'type': 'none',
+ 'msvs_guid': 'AE9BF4A2-19C5-49D8-BB1A-F28496DD7051',
+ 'variables': {
+ 'grit_path': '../tools/grit/grit.py',
+ 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app',
+ },
+ 'actions': [
+ {
+ 'action_name': 'app_strings',
+ 'variables': {
+ 'input_path': 'resources/app_strings.grd',
+ },
+ 'inputs': [
+ '<(input_path)',
+ ],
+ 'outputs': [
+ '<(grit_out_dir)/grit/app_strings.h',
+ '<(grit_out_dir)/app_strings_en-US.pak',
+ '<(grit_out_dir)/app_strings_en-US.rc',
+ ],
+ 'action': ['python', '<(grit_path)', '-i', '<(input_path)', 'build', '-o', '<(grit_out_dir)'],
+ 'message': 'Generating resources from <(input_path)',
+ },
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)/app',
+ ],
+ },
+ 'conditions': [
+ ['OS=="win"', {
+ 'dependencies': ['../build/win/system.gyp:cygwin'],
+ }],
+ ],
+ },
],
}