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

Side by Side Diff: chrome/chrome_resources.gyp

Issue 10024050: Metro/HiDPI: Move 1x icons into separate pak file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 'variables': { 5 'variables': {
6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', 6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
7 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'], 7 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'],
8 }, 8 },
9 'targets': [ 9 'targets': [
10 { 10 {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 'action_name': 'platform_locale_settings', 186 'action_name': 'platform_locale_settings',
187 'variables': { 187 'variables': {
188 'grit_grd_file': '<(platform_locale_settings_grd)', 188 'grit_grd_file': '<(platform_locale_settings_grd)',
189 }, 189 },
190 'includes': [ '../build/grit_action.gypi' ], 190 'includes': [ '../build/grit_action.gypi' ],
191 }, 191 },
192 ], 192 ],
193 'includes': [ '../build/grit_target.gypi' ], 193 'includes': [ '../build/grit_target.gypi' ],
194 }, 194 },
195 { 195 {
196 'target_name': 'theme_resources', 196 'target_name': 'theme_resources_gen',
197 'type': 'none', 197 'type': 'none',
198 'actions': [ 198 'actions': [
199 { 199 {
200 'action_name': 'theme_resources', 200 'action_name': 'theme_resources',
201 'variables': { 201 'variables': {
202 'grit_grd_file': 'app/theme/theme_resources.grd', 202 'grit_grd_file': 'app/theme/theme_resources.grd',
203 }, 203 },
204 'includes': [ '../build/grit_action.gypi' ], 204 'includes': [ '../build/grit_action.gypi' ],
205 }, 205 },
206 { 206 {
207 'action_name': 'theme_resources_2x', 207 'action_name': 'theme_resources_2x',
208 'variables': { 208 'variables': {
209 'grit_grd_file': 'app/theme/theme_resources_2x.grd', 209 'grit_grd_file': 'app/theme/theme_resources_2x.grd',
210 }, 210 },
211 'includes': [ '../build/grit_action.gypi' ], 211 'includes': [ '../build/grit_action.gypi' ],
212 }, 212 },
213 { 213 {
214 'action_name': 'theme_resources_standard', 214 'action_name': 'theme_resources_standard',
215 'variables': { 215 'variables': {
216 'grit_grd_file': 'app/theme/theme_resources_standard.grd', 216 'grit_grd_file': 'app/theme/theme_resources_standard.grd',
217 }, 217 },
218 'includes': [ '../build/grit_action.gypi' ], 218 'includes': [ '../build/grit_action.gypi' ],
219 }, 219 },
220 ], 220 ],
221 'includes': [ '../build/grit_target.gypi' ], 221 'includes': [ '../build/grit_target.gypi' ],
222 }, 222 },
223 { 223 {
224 'target_name': 'theme_resources',
225 'type': 'none',
226 'dependencies': [
227 'theme_resources_gen',
228 '<(DEPTH)/ui/ui.gyp:ui_resources_2x',
229 '<(DEPTH)/ui/ui.gyp:ui_resources_standard',
230 ],
231 'conditions': [
232 ['OS != "mac"', {
233 # Copy pak files to the product directory. These files will be picked
234 # up by the following installer scripts:
235 # - Windows: chrome/installer/mini_installer/chrome.release
236 # - Linux: chrome/installer/linux/internal/common/installer.include
237 # Ensure that the above scripts are updated when adding or removing
238 # pak files.
239 # Coping files to the product directory is not needed on the Mac
240 # since the framework build phase will copy them into the framework
241 # bundle directly.
242 'copies': [
243 {
244 'destination': '<(PRODUCT_DIR)',
245 'files': [
246 '<(grit_out_dir)/theme_resources_standard.pak',
247 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resource s_standard.pak',
248 ],
249 },
250 ],
251 }],
252 ['OS != "mac" and enable_hidpi == 1', {
253 'copies': [
254 {
255 'destination': '<(PRODUCT_DIR)',
256 'files': [
257 '<(grit_out_dir)/theme_resources_2x.pak',
258 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_2x/ui_resources_2x.p ak',
259 ],
260 },
261 ],
262 }],
263 ],
264 },
265 {
224 'target_name': 'packed_extra_resources', 266 'target_name': 'packed_extra_resources',
225 'type': 'none', 267 'type': 'none',
226 'variables': { 268 'variables': {
227 'repack_path': '../tools/grit/grit/format/repack.py', 269 'repack_path': '../tools/grit/grit/format/repack.py',
228 }, 270 },
229 'dependencies': [ 271 'dependencies': [
230 'chrome_extra_resources', 272 'chrome_extra_resources',
231 ], 273 ],
232 'actions': [ 274 'actions': [
233 { 275 {
(...skipping 28 matching lines...) Expand all
262 'chrome_strings', 304 'chrome_strings',
263 'platform_locale_settings', 305 'platform_locale_settings',
264 'theme_resources', 306 'theme_resources',
265 # TODO(zork): Protect this with if use_aura==1 307 # TODO(zork): Protect this with if use_aura==1
266 '<(DEPTH)/ash/ash_strings.gyp:ash_strings', 308 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
267 '<(DEPTH)/content/content_resources.gyp:content_resources', 309 '<(DEPTH)/content/content_resources.gyp:content_resources',
268 '<(DEPTH)/net/net.gyp:net_resources', 310 '<(DEPTH)/net/net.gyp:net_resources',
269 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', 311 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
270 '<(DEPTH)/ui/ui.gyp:gfx_resources', 312 '<(DEPTH)/ui/ui.gyp:gfx_resources',
271 '<(DEPTH)/ui/ui.gyp:ui_resources', 313 '<(DEPTH)/ui/ui.gyp:ui_resources',
272 '<(DEPTH)/ui/ui.gyp:ui_resources_2x',
273 '<(DEPTH)/ui/ui.gyp:ui_resources_standard',
274 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources', 314 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
275 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings', 315 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
276 ], 316 ],
277 'actions': [ 317 'actions': [
278 { 318 {
279 'includes': ['chrome_repack_chrome.gypi'] 319 'includes': ['chrome_repack_chrome.gypi']
280 }, 320 },
281 { 321 {
282 'includes': ['chrome_repack_locales.gypi'] 322 'includes': ['chrome_repack_locales.gypi']
283 }, 323 },
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 'files': ['<@(default_apps_list)'] 362 'files': ['<@(default_apps_list)']
323 }, 363 },
324 ], 364 ],
325 }], 365 }],
326 ], # conditions 366 ], # conditions
327 }], # end OS != "mac" 367 }], # end OS != "mac"
328 ], # conditions 368 ], # conditions
329 }, 369 },
330 ], # targets 370 ], # targets
331 } 371 }
OLDNEW
« no previous file with comments | « chrome/chrome_repack_theme_resources_2x.gypi ('k') | chrome/installer/mini_installer/chrome.release » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698