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

Side by Side Diff: chrome/app/resources/SConscript

Issue 17603: Generate all chrome .vcproj files: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « chrome/app/locales/locales.scons ('k') | chrome/app/theme/SConscript » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2006-2008 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 Import(['env', 'env_res']) 5 Import(['env', 'env_res'])
6 6
7 AddTargetGroup('all_languages', 'resource dlls for languages can be built') 7 AddTargetGroup('all_languages', 'resource dlls for languages can be built')
8 8
9 env_res = env_res.Clone() 9 env_res = env_res.Clone()
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 'ta', 89 'ta',
90 'te', 90 'te',
91 'th', 91 'th',
92 'tr', 92 'tr',
93 'uk', 93 'uk',
94 'vi', 94 'vi',
95 'zh-CN', 95 'zh-CN',
96 'zh-TW', 96 'zh-TW',
97 ] 97 ]
98 98
99 # TODO(sgk): remove these when we no longer want to worry about
100 # consistent GUIDs in the .vcproj files from checkin to checkin.
101 locale_GUIDMap = {
102 'ar' : '{3AB90E6A-56FF-4C9D-B918-AB76DDBF8BE8}',
103 'bg' : '{5BDB7EE1-A1FD-410C-9598-21519A1B7952}',
104 'bn' : '{4B60E8B8-416F-40B2-8A54-F75970A21992}',
105 'ca' : '{F7790A54-4078-4E4A-8231-818BE9FB1F94}',
106 'cs' : '{7EA8C4AB-F9C6-4FA1-8B0A-74F5650430B2}',
107 'da' : '{A493331B-3180-49FE-8D0E-D121645E63AD}',
108 'de' : '{BA62FF5E-08A6-4102-9675-C12E8C9D4CC0}',
109 'el' : '{D314F1B3-9299-4866-8362-08BF811B0FA3}',
110 'en-GB' : '{34231B28-C51C-4C1C-AF07-C763668B1404}',
111 'en-US' : '{CAE2D1E6-3F19-492F-A35C-68AA7ACAD6D3}',
112 'es-419' : '{FA660037-EB40-4A43-AA9D-9653C57F2789}',
113 'es' : '{5AEA4BF6-27CD-47FC-9370-D87771CFA196}',
114 'et' : '{0557BC3C-DE87-4127-BDAA-9BD9BDB13FB4}',
115 'fi' : '{64D81334-DE73-457D-8FC1-9492508A2663}',
116 'fil' : '{3A932C39-AFA9-4BDC-B775-F71A426D04BF}',
117 'fr' : '{0D54A5C4-B78B-41A2-BF8A-5DA48AC90495}',
118 'gu' : '{256DECCE-9886-4C21-96A5-EE47DF5E07E9}',
119 'he' : '{A28310B8-7BD0-4CDF-A7D8-59CAB42AA1C4}',
120 'hi' : '{228DD844-9926-420E-B193-6973BF2A4D0B}',
121 'hr' : '{CE1426F6-7D2B-4574-9929-58387BF7B05F}',
122 'hu' : '{AFF332BF-AF3D-4D35-86FC-42A727F01D36}',
123 'id' : '{E3DF045F-2174-4685-9CF7-0630A79F324B}',
124 'it' : '{275F2993-EE9B-4E00-9C85-10A182FD423A}',
125 'ja' : '{B2D715CE-4CBB-415A-A032-E700C90ADF91}',
126 'kn' : '{3E6B24F6-9FA9-4066-859E-BF747FA3080A}',
127 'ko' : '{32167995-4014-4E4C-983B-F7E17C24EB25}',
128 'lt' : '{80E37CB5-059D-4F4B-AEF6-08265468D368}',
129 'lv' : '{A5C5D801-4026-49F2-BBF1-250941855306}',
130 'ml' : '{CAB69303-0F02-4C68-A12E-FFE55DB52526}',
131 'mr' : '{A464166F-8507-49B4-9B02-5CB77C498B25}',
132 'nb' : '{B30B0E1F-1CE9-4DEF-A752-7498FD709C1F}',
133 'nl' : '{63011A7B-CE4D-4DF1-B5DA-1B133C14A2E8}',
134 'or' : '{E07D267C-34C3-4DDB-8B41-94697808714A}',
135 'pl' : '{9F53807E-9382-47BD-8371-E5D04F517E9C}',
136 'pt-BR' : '{2F914112-2657-49EC-8EA6-3BA63340DE27}',
137 'pt-PT' : '{0A13F602-B497-4BC1-ABD8-03CA8E95B2AF}',
138 'ro' : '{C70D3509-57C4-4326-90C1-2EC0AE34848D}',
139 'ru' : '{7D456640-3619-4D23-A56D-E0084400CCBF}',
140 'sk' : '{82F5BFE5-FDCE-47D4-8B38-BEEBED561681}',
141 'sl' : '{C2A444C2-9D74-4AD7-AE7C-04F5EDA17060}',
142 'sr' : '{300C6A09-663E-48B6-8E07-A0D50CAF8F25}',
143 'sv' : '{B0D5BD91-6153-4CA6-BC2F-4E3BD43E5DB7}',
144 'ta' : '{7A0BA0C5-0D90-49AE-919A-4BE096F69E4F}',
145 'te' : '{9D13D9B8-6C28-42A7-935C-B769EBC55BAA}',
146 'th' : '{226B3533-1FF3-42F6-A8E3-C4DDBC955290}',
147 'tr' : '{65C78BBB-8FCB-48E4-94C8-1F0F981929AF}',
148 'uk' : '{182D578D-2DAC-4BB7-AFEC-9A2855E56F94}',
149 'vi' : '{DA5C6FCB-FCFD-49B8-8DDA-8351638096DB}',
150 'zh-CN' : '{C0C7DA58-C90D-4BDE-AE44-588997339F5D}',
151 'zh-TW' : '{E7B11CF0-FE40-4A69-AE20-1B882F4D7585}',
152 }
153
99 gcs_rc = '$TARGET_ROOT/grit_derived_sources/google_chrome_strings_%s.rc' 154 gcs_rc = '$TARGET_ROOT/grit_derived_sources/google_chrome_strings_%s.rc'
100 cs_rc = '$TARGET_ROOT/grit_derived_sources/chromium_strings_%s.rc' 155 cs_rc = '$TARGET_ROOT/grit_derived_sources/chromium_strings_%s.rc'
101 gr_res = '$TARGET_ROOT/grit_derived_sources/generated_resources_%s.res' 156 gr_res = '$TARGET_ROOT/grit_derived_sources/generated_resources_%s.res'
102 ws_res = '$TARGET_ROOT/grit_derived_sources/webkit_strings_%s.res' 157 ws_res = '$TARGET_ROOT/grit_derived_sources/webkit_strings_%s.res'
103 158
159 dest_vcproj = '$CHROME_SRC_DIR/chrome/app/locales/%s.vcproj'
160
104 locale_dlls = [] 161 locale_dlls = []
105 162
106 for locale in locale_list: 163 for locale in locale_list:
107 res = env_res.RES('locale_settings_%s.rc' % locale) 164 res = env_res.RES('locale_settings_%s.rc' % locale)
108 165
109 # TODO(sgk): find out why this implicit dependency isn't discovered 166 # TODO(sgk): find out why this implicit dependency isn't discovered
110 env.Depends(res, gcs_rc % locale) 167 env.Depends(res, gcs_rc % locale)
111 env.Depends(res, cs_rc % locale) 168 env.Depends(res, cs_rc % locale)
112 169
113 dll = env_dll.ChromeSharedLibrary(locale, 170 dll = env_dll.ChromeSharedLibrary(locale,
114 [ gr_res % locale, 171 [ gr_res % locale,
115 ws_res % locale, 172 res,
116 res ]) 173 ws_res % locale])
117 locale_dlls.append(dll) 174 locale_dlls.append(dll)
118 175
176 p = env.ChromeMSVSProject('../locales/%s.vcproj' % locale,
177 dest=dest_vcproj % locale,
178 guid=locale_GUIDMap.get(locale),
179 buildtargets=dll,
180 relative_path_substitutions = [
181 ('../../../..', '$(OutDir)'),
182 ],
183 tools=[
184 'VCPreBuildEventTool',
185 'VCCustomBuildTool',
186 'VCXMLDataGeneratorTool',
187 'VCWebServiceProxyGeneratorTool',
188 'VCMIDLTool',
189 'VCCLCompilerTool',
190 'VCManagedResourceCompilerTool',
191 'VCResourceCompilerTool',
192 'VCPreLinkEventTool',
193 'VCLinkerTool',
194 'VCALinkTool',
195 'VCManifestTool',
196 'VCXDCMakeTool',
197 'VCBscMakeTool',
198 'VCFxCopTool',
199 'VCAppVerifierTool',
200 'VCWebDeploymentTool',
201 'VCPostBuildEventTool',
202 ],
203 ConfigurationType='2')
204
205 if locale == 'en-US':
206 kw = {'CharacterSet' : '1'}
207 else:
208 kw = {}
209
210 p.AddConfig('Debug|Win32',
211 InheritedPropertySheets=[
212 '$(SolutionDir)../build/common.vsprops',
213 '$(SolutionDir)../build/debug.vsprops',
214 '../../tools/build/win/data_dll.vsprops',
215 '../../tools/build/win/language_dll.vsprops',
216 ],
217 **kw)
218
219 p.AddConfig('Release|Win32',
220 InheritedPropertySheets=[
221 '$(SolutionDir)../build/common.vsprops',
222 '$(SolutionDir)../build/release.vsprops',
223 '../../tools/build/win/data_dll.vsprops',
224 '../../tools/build/win/language_dll.vsprops',
225 ],
226 **kw)
227
119 i = env.Install('$DESTINATION_ROOT/locales/', locale_dlls) 228 i = env.Install('$DESTINATION_ROOT/locales/', locale_dlls)
120 env.Alias('chrome_locales', i) 229 env.Alias('chrome_locales', i)
OLDNEW
« no previous file with comments | « chrome/app/locales/locales.scons ('k') | chrome/app/theme/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698