OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 { | 5 { |
6 'target_defaults': { | 6 'target_defaults': { |
7 'variables': { | 7 'variables': { |
8 'chrome_exe_target': 0, | 8 'chrome_exe_target': 0, |
9 }, | 9 }, |
10 'target_conditions': [ | 10 'target_conditions': [ |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 # CFBundleSignature of CHROMIUM_CREATOR | 272 # CFBundleSignature of CHROMIUM_CREATOR |
273 # Xcode then replaces these values with the branded values we set | 273 # Xcode then replaces these values with the branded values we set |
274 # as settings on the target. | 274 # as settings on the target. |
275 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', | 275 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', |
276 'CHROMIUM_CREATOR': '<(mac_creator)', | 276 'CHROMIUM_CREATOR': '<(mac_creator)', |
277 'CHROMIUM_SHORT_NAME': '<(branding)', | 277 'CHROMIUM_SHORT_NAME': '<(branding)', |
278 }, | 278 }, |
279 'dependencies': [ | 279 'dependencies': [ |
280 'helper_app', | 280 'helper_app', |
281 'infoplist_strings_tool', | 281 'infoplist_strings_tool', |
| 282 'chrome_manifest_bundle', |
| 283 ], |
| 284 'mac_bundle_resources': [ |
| 285 '<(PRODUCT_DIR)/<(mac_bundle_id).manifest', |
282 ], | 286 ], |
283 'actions': [ | 287 'actions': [ |
284 { | 288 { |
285 # Generate the InfoPlist.strings file | 289 # Generate the InfoPlist.strings file |
286 'action_name': 'Generate InfoPlist.strings files', | 290 'action_name': 'Generate InfoPlist.strings files', |
287 'variables': { | 291 'variables': { |
288 'tool_path': '<(PRODUCT_DIR)/infoplist_strings_tool', | 292 'tool_path': '<(PRODUCT_DIR)/infoplist_strings_tool', |
289 # Unique dir to write to so the [lang].lproj/InfoPlist.strings | 293 # Unique dir to write to so the [lang].lproj/InfoPlist.strings |
290 # for the main app and the helper app don't name collide. | 294 # for the main app and the helper app don't name collide. |
291 'output_path': '<(INTERMEDIATE_DIR)/app_infoplist_strings', | 295 'output_path': '<(INTERMEDIATE_DIR)/app_infoplist_strings', |
(...skipping 24 matching lines...) Expand all Loading... |
316 '-b', '<(branding_name)', | 320 '-b', '<(branding_name)', |
317 '-v', '<(version_path)', | 321 '-v', '<(version_path)', |
318 '-g', '<(grit_out_dir)', | 322 '-g', '<(grit_out_dir)', |
319 '-o', '<(output_path)', | 323 '-o', '<(output_path)', |
320 '-t', 'main', | 324 '-t', 'main', |
321 '<@(locales)', | 325 '<@(locales)', |
322 ], | 326 ], |
323 'message': 'Generating the language InfoPlist.strings files', | 327 'message': 'Generating the language InfoPlist.strings files', |
324 'process_outputs_as_mac_bundle_resources': 1, | 328 'process_outputs_as_mac_bundle_resources': 1, |
325 }, | 329 }, |
326 { | |
327 # Massage the manifest and add it as a resource | |
328 'action_name': 'Generate MCX manifest file', | |
329 'variables': { | |
330 'tool_path': 'tools/build/mac/copy_mcx_manifest.sh', | |
331 'input_path': 'app/policy/mac/app-Manifest.plist', | |
332 'output_path': '<(INTERMEDIATE_DIR)/<(mac_bundle_id).manifest', | |
333 }, | |
334 'inputs': [ | |
335 '<(tool_path)', | |
336 '<(input_path)', | |
337 ], | |
338 'outputs': [ | |
339 '<(output_path)', | |
340 ], | |
341 'action': [ | |
342 '<(tool_path)', | |
343 '<(mac_product_name)', | |
344 '<(mac_bundle_id)', | |
345 '<(input_path)', | |
346 '<(output_path)', | |
347 ], | |
348 'message': 'Generating the MCX policy manifest file', | |
349 'process_outputs_as_mac_bundle_resources': 1, | |
350 }, | |
351 ], | 330 ], |
352 'copies': [ | 331 'copies': [ |
353 { | 332 { |
354 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Ve
rsions/<(version_full)', | 333 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Ve
rsions/<(version_full)', |
355 'files': [ | 334 'files': [ |
356 '<(PRODUCT_DIR)/<(mac_product_name) Helper.app', | 335 '<(PRODUCT_DIR)/<(mac_product_name) Helper.app', |
357 ], | 336 ], |
358 }, | 337 }, |
359 ], | 338 ], |
360 'postbuilds': [ | 339 'postbuilds': [ |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 }, | 483 }, |
505 }, | 484 }, |
506 'configurations': { | 485 'configurations': { |
507 'Common_Base': { | 486 'Common_Base': { |
508 'msvs_target_platform': 'x64', | 487 'msvs_target_platform': 'x64', |
509 }, | 488 }, |
510 }, | 489 }, |
511 }, | 490 }, |
512 ], | 491 ], |
513 }], | 492 }], |
| 493 ['OS=="mac"', { |
| 494 'targets': [ |
| 495 { |
| 496 # This is the bundle of the manifest file of Chrome. |
| 497 # It contains the manifest file and its string tables. |
| 498 'target_name': 'chrome_manifest_bundle', |
| 499 'type': 'loadable_module', |
| 500 'mac_bundle': 1, |
| 501 'product_extension': 'manifest', |
| 502 'product_name': '<(mac_bundle_id)', |
| 503 'variables': { |
| 504 # This avoids stripping debugging symbols from the target, which |
| 505 # would fail because there is no binary code here. |
| 506 'mac_strip': 0, |
| 507 }, |
| 508 'dependencies': [ |
| 509 # Provides app-Manifest.plist and its string tables: |
| 510 'policy_templates', |
| 511 ], |
| 512 'actions': [ |
| 513 { |
| 514 'action_name': 'Copy MCX manifest file to manifest bundle', |
| 515 'inputs': [ |
| 516 '<(grit_out_dir)/app/policy/mac/app-Manifest.plist', |
| 517 ], |
| 518 'outputs': [ |
| 519 '<(INTERMEDIATE_DIR)/app_manifest/<(mac_bundle_id).manifest', |
| 520 ], |
| 521 'action': [ |
| 522 'cp', |
| 523 '<@(_inputs)', |
| 524 '<@(_outputs)', |
| 525 ], |
| 526 'message': |
| 527 'Copying the MCX policy manifest file to the manifest bundle', |
| 528 'process_outputs_as_mac_bundle_resources': 1, |
| 529 }, |
| 530 { |
| 531 'action_name': |
| 532 'Copy Localizable.strings files to manifest bundle', |
| 533 'variables': { |
| 534 'input_path': '<(grit_out_dir)/app/policy/mac/strings', |
| 535 # Directory to collect the Localizable.strings files before |
| 536 # they are copied to the bundle. |
| 537 'output_path': '<(INTERMEDIATE_DIR)/app_manifest', |
| 538 # TODO(gfeher): replace this with <(locales) when we have real |
| 539 # translations |
| 540 'available_locales': 'en', |
| 541 }, |
| 542 'inputs': [ |
| 543 # TODO: remove this helper when we have loops in GYP |
| 544 '>!@(<(apply_locales_cmd) -d \'<(input_path)/ZZLOCALE.lproj/Loca
lizable.strings\' <(available_locales))', |
| 545 ], |
| 546 'outputs': [ |
| 547 # TODO: remove this helper when we have loops in GYP |
| 548 '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/Loc
alizable.strings\' <(available_locales))', |
| 549 ], |
| 550 'action': [ |
| 551 'cp', '-R', |
| 552 '<(input_path)/', |
| 553 '<(output_path)', |
| 554 ], |
| 555 'message': |
| 556 'Copy the Localizable.strings files to the manifest bundle', |
| 557 'process_outputs_as_mac_bundle_resources': 1, |
| 558 }, |
| 559 ], |
| 560 }, |
| 561 ] |
| 562 }] |
514 ], | 563 ], |
515 } | 564 } |
OLD | NEW |