OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 # CFBundleSignature of CHROMIUM_CREATOR | 266 # CFBundleSignature of CHROMIUM_CREATOR |
267 # Xcode then replaces these values with the branded values we set | 267 # Xcode then replaces these values with the branded values we set |
268 # as settings on the target. | 268 # as settings on the target. |
269 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', | 269 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', |
270 'CHROMIUM_CREATOR': '<(mac_creator)', | 270 'CHROMIUM_CREATOR': '<(mac_creator)', |
271 'CHROMIUM_SHORT_NAME': '<(branding)', | 271 'CHROMIUM_SHORT_NAME': '<(branding)', |
272 }, | 272 }, |
273 'dependencies': [ | 273 'dependencies': [ |
274 'helper_app', | 274 'helper_app', |
275 'infoplist_strings_tool', | 275 'infoplist_strings_tool', |
| 276 'interpose_dependency_shim', |
276 'chrome_manifest_bundle', | 277 'chrome_manifest_bundle', |
277 ], | 278 ], |
278 'mac_bundle_resources': [ | 279 'mac_bundle_resources': [ |
279 '<(PRODUCT_DIR)/<(mac_bundle_id).manifest', | 280 '<(PRODUCT_DIR)/<(mac_bundle_id).manifest', |
280 ], | 281 ], |
281 'actions': [ | 282 'actions': [ |
282 { | 283 { |
283 # Generate the InfoPlist.strings file | 284 # Generate the InfoPlist.strings file |
284 'action_name': 'Generate InfoPlist.strings files', | 285 'action_name': 'Generate InfoPlist.strings files', |
285 'variables': { | 286 'variables': { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 ], | 321 ], |
321 'message': 'Generating the language InfoPlist.strings files', | 322 'message': 'Generating the language InfoPlist.strings files', |
322 'process_outputs_as_mac_bundle_resources': 1, | 323 'process_outputs_as_mac_bundle_resources': 1, |
323 }, | 324 }, |
324 ], | 325 ], |
325 'copies': [ | 326 'copies': [ |
326 { | 327 { |
327 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Ve
rsions/<(version_full)', | 328 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Ve
rsions/<(version_full)', |
328 'files': [ | 329 'files': [ |
329 '<(PRODUCT_DIR)/<(mac_product_name) Helper.app', | 330 '<(PRODUCT_DIR)/<(mac_product_name) Helper.app', |
| 331 '<(PRODUCT_DIR)/libplugin_carbon_interpose.dylib', |
330 ], | 332 ], |
331 }, | 333 }, |
332 ], | 334 ], |
333 'postbuilds': [ | 335 'postbuilds': [ |
334 { | 336 { |
335 'postbuild_name': 'Copy <(mac_product_name) Framework.framework', | 337 'postbuild_name': 'Copy <(mac_product_name) Framework.framework', |
336 'action': [ | 338 'action': [ |
337 'tools/build/mac/copy_framework_unversioned', | 339 'tools/build/mac/copy_framework_unversioned', |
338 '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Framework.framework', | 340 '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Framework.framework', |
339 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Versions/<(versio
n_full)', | 341 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Versions/<(versio
n_full)', |
(...skipping 19 matching lines...) Expand all Loading... |
359 '<(branding)', | 361 '<(branding)', |
360 '<(mac_bundle_id)'], | 362 '<(mac_bundle_id)'], |
361 }, | 363 }, |
362 { | 364 { |
363 'postbuild_name': 'Clean up old versions', | 365 'postbuild_name': 'Clean up old versions', |
364 'action': [ | 366 'action': [ |
365 'tools/build/mac/clean_up_old_versions', | 367 'tools/build/mac/clean_up_old_versions', |
366 '<(version_full)' | 368 '<(version_full)' |
367 ], | 369 ], |
368 }, | 370 }, |
| 371 { |
| 372 # This postbuid step is responsible for creating the following |
| 373 # helpers: |
| 374 # |
| 375 # For unofficial Chromium branding, Chromium Helper EH.app and |
| 376 # Chromium Helper NP.app are created from Chromium Helper.app. |
| 377 # For official Google Chrome branding, Google Chrome Helper |
| 378 # EH.app and Google Chrome Helper NP.app are created from |
| 379 # Google Chrome Helper.app. |
| 380 # |
| 381 # The EH helper is marked for an executable heap. The NP helper |
| 382 # is marked for no PIE (ASLR). |
| 383 # |
| 384 # Normally, applications shipping as part of offical builds with |
| 385 # Google Chrome branding have dsymutil (dwarf-with-dsym, |
| 386 # mac_real_dsym) and dump_syms (mac_breakpad) run on them to |
| 387 # produce a .dSYM bundle and a Breakpad .sym file. This is |
| 388 # unnecessary for the "More Helpers" because they're identical |
| 389 # to the original helper except for the bits in their Mach-O |
| 390 # headers that change to enable or disable special features. |
| 391 # Each .dSYM and Breakpad symbol file is identified by UUID |
| 392 # stored in a Mach-O file's LC_UUID load command. Because the |
| 393 # "More Helpers" share a UUID with the original helper, there's |
| 394 # no need to run dsymutil or dump_syms again. All helpers can |
| 395 # share the same .dSYM and Breakpad symbol file. |
| 396 'postbuild_name': 'Make More Helpers', |
| 397 'action': [ |
| 398 'tools/build/mac/make_more_helpers.sh', |
| 399 '<(version_full)', |
| 400 '<(mac_product_name)', |
| 401 ], |
| 402 }, |
369 ], # postbuilds | 403 ], # postbuilds |
370 }], | 404 }], |
371 ['OS=="linux"', { | 405 ['OS=="linux"', { |
372 'conditions': [ | 406 'conditions': [ |
373 ['branding=="Chrome"', { | 407 ['branding=="Chrome"', { |
374 'dependencies': [ | 408 'dependencies': [ |
375 'linux_installer_configs', | 409 'linux_installer_configs', |
376 ], | 410 ], |
377 }], | 411 }], |
378 ['selinux==0', { | 412 ['selinux==0', { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 'configurations': { | 531 'configurations': { |
498 'Common_Base': { | 532 'Common_Base': { |
499 'msvs_target_platform': 'x64', | 533 'msvs_target_platform': 'x64', |
500 }, | 534 }, |
501 }, | 535 }, |
502 }, | 536 }, |
503 ], | 537 ], |
504 }], | 538 }], |
505 ], | 539 ], |
506 } | 540 } |
OLD | NEW |