OLD | NEW |
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 ], | 214 ], |
215 'includes': [ '../build/grit_target.gypi' ], | 215 'includes': [ '../build/grit_target.gypi' ], |
216 }, | 216 }, |
217 { | 217 { |
218 'target_name': 'theme_resources', | 218 'target_name': 'theme_resources', |
219 'type': 'none', | 219 'type': 'none', |
220 'dependencies': [ | 220 'dependencies': [ |
221 'theme_resources_gen', | 221 'theme_resources_gen', |
222 '<(DEPTH)/ui/ui.gyp:ui_resources', | 222 '<(DEPTH)/ui/ui.gyp:ui_resources', |
223 ], | 223 ], |
224 'conditions': [ | |
225 ['OS != "mac"', { | |
226 # Copy pak files to the product directory. These files will be picked | |
227 # up by the following installer scripts: | |
228 # - Windows: chrome/installer/mini_installer/chrome.release | |
229 # - Linux: chrome/installer/linux/internal/common/installer.include | |
230 # Ensure that the above scripts are updated when adding or removing | |
231 # pak files. | |
232 # Copying files to the product directory is not needed on the Mac | |
233 # since the framework build phase will copy them into the framework | |
234 # bundle directly. | |
235 'copies': [ | |
236 { | |
237 'destination': '<(PRODUCT_DIR)', | |
238 'files': [ | |
239 '<(grit_out_dir)/theme_resources_100_percent.pak', | |
240 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_per
cent.pak', | |
241 ], | |
242 }, | |
243 ], | |
244 }], | |
245 ['(OS != "mac" and enable_hidpi == 1) or chromeos == 1', { | |
246 'copies': [ | |
247 { | |
248 'destination': '<(PRODUCT_DIR)', | |
249 'files': [ | |
250 '<(grit_out_dir)/theme_resources_200_percent.pak', | |
251 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_200_per
cent.pak', | |
252 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_200_percent.
pak', | |
253 ], | |
254 }, | |
255 ], | |
256 }], | |
257 ['enable_touch_ui==1', { | |
258 'copies': [ | |
259 { | |
260 'destination': '<(PRODUCT_DIR)', | |
261 'files': [ | |
262 '<(grit_out_dir)/theme_resources_touch_100_percent.pak', | |
263 '<(grit_out_dir)/theme_resources_touch_200_percent.pak', | |
264 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_touch_1
00_percent.pak', | |
265 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_touch_2
00_percent.pak', | |
266 ], | |
267 }, | |
268 ], | |
269 }], | |
270 ], | |
271 }, | 224 }, |
272 { | 225 { |
273 'target_name': 'packed_extra_resources', | 226 'target_name': 'packed_extra_resources', |
274 'type': 'none', | 227 'type': 'none', |
275 'variables': { | 228 'variables': { |
276 'repack_path': '../tools/grit/grit/format/repack.py', | 229 'repack_path': '../tools/grit/grit/format/repack.py', |
277 }, | 230 }, |
278 'dependencies': [ | 231 'dependencies': [ |
279 'chrome_extra_resources', | 232 'chrome_extra_resources', |
280 ], | 233 ], |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 'actions': [ | 276 'actions': [ |
324 { | 277 { |
325 'includes': ['chrome_repack_chrome.gypi'] | 278 'includes': ['chrome_repack_chrome.gypi'] |
326 }, | 279 }, |
327 { | 280 { |
328 'includes': ['chrome_repack_locales.gypi'] | 281 'includes': ['chrome_repack_locales.gypi'] |
329 }, | 282 }, |
330 { | 283 { |
331 'includes': ['chrome_repack_pseudo_locales.gypi'] | 284 'includes': ['chrome_repack_pseudo_locales.gypi'] |
332 }, | 285 }, |
| 286 { |
| 287 'includes': ['chrome_repack_chrome_100_percent.gypi'] |
| 288 }, |
| 289 { |
| 290 'includes': ['chrome_repack_chrome_200_percent.gypi'] |
| 291 }, |
| 292 { |
| 293 'includes': ['chrome_repack_chrome_touch_100_percent.gypi'] |
| 294 }, |
| 295 { |
| 296 'includes': ['chrome_repack_chrome_touch_200_percent.gypi'] |
| 297 }, |
333 ], | 298 ], |
334 'conditions': [ | 299 'conditions': [ |
335 ['OS != "mac"', { | 300 ['OS != "mac"', { |
336 # We'll install the resource files to the product directory. The Mac | 301 # Copy pak files to the product directory. These files will be picked |
337 # copies the results over as bundle resources in its own special way. | 302 # up by the following installer scripts: |
| 303 # - Windows: chrome/installer/mini_installer/chrome.release |
| 304 # - Linux: chrome/installer/linux/internal/common/installer.include |
| 305 # Ensure that the above scripts are updated when adding or removing |
| 306 # pak files. |
| 307 # Copying files to the product directory is not needed on the Mac |
| 308 # since the framework build phase will copy them into the framework |
| 309 # bundle directly. |
338 'copies': [ | 310 'copies': [ |
339 { | 311 { |
340 'destination': '<(PRODUCT_DIR)', | 312 'destination': '<(PRODUCT_DIR)', |
341 'files': [ | 313 'files': [ |
342 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak' | 314 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak' |
343 ], | 315 ], |
344 }, | 316 }, |
345 { | 317 { |
| 318 'destination': '<(PRODUCT_DIR)', |
| 319 'files': [ |
| 320 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak' |
| 321 ], |
| 322 }, |
| 323 { |
346 'destination': '<(PRODUCT_DIR)/locales', | 324 'destination': '<(PRODUCT_DIR)/locales', |
347 'files': [ | 325 'files': [ |
348 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir)
-s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))' | 326 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir)
-s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))' |
349 ], | 327 ], |
350 }, | 328 }, |
351 { | 329 { |
352 'destination': '<(PRODUCT_DIR)/pseudo_locales', | 330 'destination': '<(PRODUCT_DIR)/pseudo_locales', |
353 'files': [ | 331 'files': [ |
354 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir)
-s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))' | 332 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir)
-s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))' |
355 ], | 333 ], |
356 }, | 334 }, |
357 ], | 335 ], |
358 'conditions': [ | 336 'conditions': [ |
359 ['branding=="Chrome"', { | 337 ['branding=="Chrome"', { |
360 'copies': [ | 338 'copies': [ |
361 { | 339 { |
362 # This location is for the Windows and Linux builds. For | 340 # This location is for the Windows and Linux builds. For |
363 # Windows, the chrome.release file ensures that these files | 341 # Windows, the chrome.release file ensures that these files |
364 # are copied into the installer. Note that we have a separate | 342 # are copied into the installer. Note that we have a separate |
365 # section in chrome_dll.gyp to copy these files for Mac, as it | 343 # section in chrome_dll.gyp to copy these files for Mac, as it |
366 # needs to be dropped inside the framework. | 344 # needs to be dropped inside the framework. |
367 'destination': '<(PRODUCT_DIR)/default_apps', | 345 'destination': '<(PRODUCT_DIR)/default_apps', |
368 'files': ['<@(default_apps_list)'] | 346 'files': ['<@(default_apps_list)'] |
369 }, | 347 }, |
370 ], | 348 ], |
371 }], | 349 }], |
| 350 ['enable_hidpi == 1 or chromeos == 1', { |
| 351 'copies': [ |
| 352 { |
| 353 'destination': '<(PRODUCT_DIR)', |
| 354 'files': [ |
| 355 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak', |
| 356 ], |
| 357 }, |
| 358 ], |
| 359 }], |
| 360 ['enable_touch_ui==1', { |
| 361 'copies': [ |
| 362 { |
| 363 'destination': '<(PRODUCT_DIR)', |
| 364 'files': [ |
| 365 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_100_percent.
pak', |
| 366 ], |
| 367 }, |
| 368 ], |
| 369 }], |
| 370 ['enable_hidpi == 1 and enable_touch_ui==1', { |
| 371 'copies': [ |
| 372 { |
| 373 'destination': '<(PRODUCT_DIR)', |
| 374 'files': [ |
| 375 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_200_percent.
pak', |
| 376 ], |
| 377 }, |
| 378 ], |
| 379 }], |
372 ], # conditions | 380 ], # conditions |
373 }], # end OS != "mac" | 381 }], # end OS != "mac" |
374 ], # conditions | 382 ], # conditions |
375 }, | 383 }, |
376 ], # targets | 384 ], # targets |
377 } | 385 } |
OLD | NEW |