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': { | |
7 'variables': { | |
8 'chrome_exe_target': 0, | |
9 }, | |
10 'target_conditions': [ | |
11 ['chrome_exe_target==1', { | |
12 'sources': [ | |
13 # .cc, .h, and .mm files under app that are used on all | |
14 # platforms, including both 32-bit and 64-bit Windows. | |
15 # Test files are not included. | |
16 'app/breakpad_win.cc', | |
17 'app/breakpad_win.h', | |
18 'app/chrome_exe_main_gtk.cc', | |
19 'app/chrome_exe_main_mac.cc', | |
20 'app/chrome_exe_main_win.cc', | |
21 'app/chrome_exe_resource.h', | |
22 'app/client_util.cc', | |
23 'app/client_util.h', | |
24 'app/hard_error_handler_win.cc', | |
25 'app/hard_error_handler_win.h', | |
26 'app/scoped_ole_initializer.h', | |
27 '../content/app/sandbox_helper_win.cc', | |
28 '../content/common/content_switches.cc', | |
29 ], | |
30 'mac_bundle_resources': [ | |
31 'app/app-Info.plist', | |
32 ], | |
33 # TODO(mark): Come up with a fancier way to do this. It should only | |
34 # be necessary to list app-Info.plist once, not the three times it is | |
35 # listed here. | |
36 'mac_bundle_resources!': [ | |
37 'app/app-Info.plist', | |
38 ], | |
39 'xcode_settings': { | |
40 'CHROMIUM_STRIP_SAVE_FILE': 'app/app.saves', | |
41 'INFOPLIST_FILE': 'app/app-Info.plist', | |
42 }, | |
43 'conditions': [ | |
44 ['OS=="win"', { | |
45 'msvs_settings': { | |
46 'VCLinkerTool': { | |
47 'DelayLoadDLLs': [ | |
48 'dbghelp.dll', | |
49 'dwmapi.dll', | |
50 'uxtheme.dll', | |
51 'ole32.dll', | |
52 'oleaut32.dll', | |
53 ], | |
54 # Set /SUBSYSTEM:WINDOWS for chrome.exe itself. | |
55 'SubSystem': '2', | |
56 }, | |
57 'VCManifestTool': { | |
58 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.exe.manif
est', | |
59 }, | |
60 }, | |
61 'actions': [ | |
62 { | |
63 'action_name': 'first_run', | |
64 'inputs': [ | |
65 'app/FirstRun', | |
66 ], | |
67 'outputs': [ | |
68 '<(PRODUCT_DIR)/First Run', | |
69 ], | |
70 'action': ['cp', '-f', '<@(_inputs)', '<@(_outputs)'], | |
71 'message': 'Copy first run complete sentinel file', | |
72 }, | |
73 ], | |
74 }, { # 'OS!="win" | |
75 'sources!': [ | |
76 'app/client_util.cc', | |
77 ] | |
78 }], | |
79 ['OS=="mac" and asan==1', { | |
80 'xcode_settings': { | |
81 # Override the outer definition of CHROMIUM_STRIP_SAVE_FILE. | |
82 'CHROMIUM_STRIP_SAVE_FILE': 'app/app_asan.saves', | |
83 }, | |
84 }], | |
85 ], | |
86 }], | |
87 ], | |
88 }, | |
89 'targets': [ | 6 'targets': [ |
90 { | 7 { |
91 'target_name': 'chrome', | 8 'target_name': 'chrome', |
92 'type': 'executable', | 9 'type': 'executable', |
93 'mac_bundle': 1, | 10 'mac_bundle': 1, |
94 'variables': { | 11 'variables': { |
95 'chrome_exe_target': 1, | |
96 'use_system_xdg_utils%': 0, | 12 'use_system_xdg_utils%': 0, |
97 'disable_pie%': 0, | 13 'disable_pie%': 0, |
98 }, | 14 }, |
| 15 'sources': [ |
| 16 'app/breakpad_win.cc', |
| 17 'app/breakpad_win.h', |
| 18 'app/chrome_exe_main_gtk.cc', |
| 19 'app/chrome_exe_main_mac.cc', |
| 20 'app/chrome_exe_main_win.cc', |
| 21 'app/chrome_exe_resource.h', |
| 22 'app/client_util.cc', |
| 23 'app/client_util.h', |
| 24 'app/hard_error_handler_win.cc', |
| 25 'app/hard_error_handler_win.h', |
| 26 'app/scoped_ole_initializer.h', |
| 27 '../content/app/startup_helper_win.cc', |
| 28 '../content/common/content_switches.cc', |
| 29 ], |
| 30 'mac_bundle_resources': [ |
| 31 'app/app-Info.plist', |
| 32 ], |
| 33 # TODO(mark): Come up with a fancier way to do this. It should only |
| 34 # be necessary to list app-Info.plist once, not the three times it is |
| 35 # listed here. |
| 36 'mac_bundle_resources!': [ |
| 37 'app/app-Info.plist', |
| 38 ], |
| 39 'xcode_settings': { |
| 40 'CHROMIUM_STRIP_SAVE_FILE': 'app/app.saves', |
| 41 'INFOPLIST_FILE': 'app/app-Info.plist', |
| 42 }, |
99 'conditions': [ | 43 'conditions': [ |
100 ['os_posix == 1 and OS != "mac"', { | 44 ['os_posix == 1 and OS != "mac"', { |
101 'actions': [ | 45 'actions': [ |
102 { | 46 { |
103 'action_name': 'manpage', | 47 'action_name': 'manpage', |
104 'conditions': [ | 48 'conditions': [ |
105 [ 'branding == "Chrome"', { | 49 [ 'branding == "Chrome"', { |
106 'variables': { | 50 'variables': { |
107 'name': 'Google Chrome', | 51 'name': 'Google Chrome', |
108 'filename': 'google-chrome', | 52 'filename': 'google-chrome', |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 }], | 407 }], |
464 ], | 408 ], |
465 }], | 409 }], |
466 ['OS=="mac"', { | 410 ['OS=="mac"', { |
467 'dependencies': [ | 411 'dependencies': [ |
468 # On Mac, make sure we've built chrome_dll, which contains all of | 412 # On Mac, make sure we've built chrome_dll, which contains all of |
469 # the library code with Chromium functionality. | 413 # the library code with Chromium functionality. |
470 'chrome_dll', | 414 'chrome_dll', |
471 ], | 415 ], |
472 }], | 416 }], |
| 417 ['OS=="mac" and asan==1', { |
| 418 'xcode_settings': { |
| 419 # Override the outer definition of CHROMIUM_STRIP_SAVE_FILE. |
| 420 'CHROMIUM_STRIP_SAVE_FILE': 'app/app_asan.saves', |
| 421 }, |
| 422 }], |
473 ['OS=="win"', { | 423 ['OS=="win"', { |
474 'conditions': [ | 424 'conditions': [ |
475 ['optimize_with_syzygy==1', { | 425 ['optimize_with_syzygy==1', { |
476 # With syzygy enabled there is an intermediate target which | 426 # With syzygy enabled there is an intermediate target which |
477 # builds an initial version of chrome_dll, then optimizes it | 427 # builds an initial version of chrome_dll, then optimizes it |
478 # to its final location. The optimization step also | 428 # to its final location. The optimization step also |
479 # depends on chrome_exe, so here we depend on the initial | 429 # depends on chrome_exe, so here we depend on the initial |
480 # chrome_dll. | 430 # chrome_dll. |
481 'dependencies': ['chrome_dll_initial',] | 431 'dependencies': ['chrome_dll_initial',] |
482 }, { | 432 }, { |
483 'dependencies': ['chrome_dll',] | 433 'dependencies': ['chrome_dll',] |
484 }], | 434 }], |
485 ], | 435 ], |
486 }], | |
487 ['OS=="win"', { | |
488 'dependencies': [ | 436 'dependencies': [ |
489 'chrome_version_resources', | 437 'chrome_version_resources', |
490 'installer_util', | 438 'installer_util', |
491 'installer_util_strings', | 439 'installer_util_strings', |
492 '../base/base.gyp:base', | 440 '../base/base.gyp:base', |
493 '../breakpad/breakpad.gyp:breakpad_handler', | 441 '../breakpad/breakpad.gyp:breakpad_handler', |
494 '../breakpad/breakpad.gyp:breakpad_sender', | 442 '../breakpad/breakpad.gyp:breakpad_sender', |
495 '../sandbox/sandbox.gyp:sandbox', | 443 '../sandbox/sandbox.gyp:sandbox', |
496 'app/policy/cloud_policy_codegen.gyp:policy', | 444 'app/policy/cloud_policy_codegen.gyp:policy', |
497 ], | 445 ], |
498 'sources': [ | 446 'sources': [ |
499 'app/chrome_exe.rc', | 447 'app/chrome_exe.rc', |
500 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/chrome_exe_version.rc', | 448 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/chrome_exe_version.rc', |
501 ], | 449 ], |
502 'msvs_settings': { | 450 'msvs_settings': { |
503 'VCLinkerTool': { | 451 'VCLinkerTool': { |
504 'ImportLibrary': '$(OutDir)\\lib\\chrome_exe.lib', | 452 'ImportLibrary': '$(OutDir)\\lib\\chrome_exe.lib', |
505 'ProgramDatabaseFile': '$(OutDir)\\chrome_exe.pdb', | 453 'ProgramDatabaseFile': '$(OutDir)\\chrome_exe.pdb', |
| 454 'DelayLoadDLLs': [ |
| 455 'dbghelp.dll', |
| 456 'dwmapi.dll', |
| 457 'uxtheme.dll', |
| 458 'ole32.dll', |
| 459 'oleaut32.dll', |
| 460 ], |
| 461 # Set /SUBSYSTEM:WINDOWS for chrome.exe itself. |
| 462 'SubSystem': '2', |
| 463 }, |
| 464 'VCManifestTool': { |
| 465 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.exe.manifes
t', |
506 }, | 466 }, |
507 }, | 467 }, |
| 468 'actions': [ |
| 469 { |
| 470 'action_name': 'first_run', |
| 471 'inputs': [ |
| 472 'app/FirstRun', |
| 473 ], |
| 474 'outputs': [ |
| 475 '<(PRODUCT_DIR)/First Run', |
| 476 ], |
| 477 'action': ['cp', '-f', '<@(_inputs)', '<@(_outputs)'], |
| 478 'message': 'Copy first run complete sentinel file', |
| 479 }, |
| 480 ], |
| 481 }, { # 'OS!="win" |
| 482 'sources!': [ |
| 483 'app/client_util.cc', |
| 484 ], |
508 }], | 485 }], |
509 ], | 486 ], |
510 }, | 487 }, |
511 ], | 488 ], |
512 'conditions': [ | 489 'conditions': [ |
513 ['OS=="win"', { | 490 ['OS=="win"', { |
514 'targets': [ | 491 'targets': [ |
515 { | 492 { |
516 'target_name': 'chrome_nacl_win64', | 493 'target_name': 'chrome_nacl_win64', |
517 'type': 'executable', | 494 'type': 'executable', |
518 'product_name': 'nacl64', | 495 'product_name': 'nacl64', |
519 'variables': { | 496 'sources': [ |
520 'chrome_exe_target': 1, | 497 'app/breakpad_win.cc', |
521 }, | 498 'app/hard_error_handler_win.cc', |
| 499 'nacl/nacl_exe_win_64.cc', |
| 500 '../content/app/startup_helper_win.cc', |
| 501 '../content/common/content_switches.cc', |
| 502 '../content/common/debug_flags.cc', # Needed for sandbox_policy.cc |
| 503 '../content/common/hi_res_timer_manager_win.cc', |
| 504 '../content/common/sandbox_policy.cc', |
| 505 '../content/common/sandbox_init_wrapper_win.cc', |
| 506 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/nacl64_exe_version.rc', |
| 507 ], |
522 'dependencies': [ | 508 'dependencies': [ |
523 # On Windows make sure we've built Win64 version of chrome_dll, | 509 'app/policy/cloud_policy_codegen.gyp:policy_win64', |
524 # which contains all of the library code with Chromium | |
525 # functionality. | |
526 'chrome_version_resources', | 510 'chrome_version_resources', |
527 'chrome_dll_nacl_win64', | |
528 'common_constants_win64', | 511 'common_constants_win64', |
529 'installer_util_nacl_win64', | 512 'installer_util_nacl_win64', |
530 'app/policy/cloud_policy_codegen.gyp:policy_win64', | 513 'nacl_win64', |
531 '../breakpad/breakpad.gyp:breakpad_handler_win64', | 514 '../breakpad/breakpad.gyp:breakpad_handler_win64', |
532 '../breakpad/breakpad.gyp:breakpad_sender_win64', | 515 '../breakpad/breakpad.gyp:breakpad_sender_win64', |
| 516 '../base/base.gyp:base_i18n_nacl_win64', |
533 '../base/base.gyp:base_nacl_win64', | 517 '../base/base.gyp:base_nacl_win64', |
534 '../base/base.gyp:base_static_win64', | 518 '../base/base.gyp:base_static_win64', |
| 519 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations_win64', |
| 520 '../ipc/ipc.gyp:ipc_win64', |
535 '../sandbox/sandbox.gyp:sandbox_win64', | 521 '../sandbox/sandbox.gyp:sandbox_win64', |
536 ], | 522 ], |
537 'defines': [ | 523 'defines': [ |
538 '<@(nacl_win64_defines)', | 524 '<@(nacl_win64_defines)', |
539 ], | 525 ], |
540 'include_dirs': [ | 526 'include_dirs': [ |
541 '<(SHARED_INTERMEDIATE_DIR)/chrome', | 527 '<(SHARED_INTERMEDIATE_DIR)/chrome', |
542 ], | 528 ], |
543 'sources': [ | |
544 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/nacl64_exe_version.rc', | |
545 ], | |
546 'msvs_settings': { | 529 'msvs_settings': { |
547 'VCLinkerTool': { | 530 'VCLinkerTool': { |
548 'ImportLibrary': '$(OutDir)\\lib\\nacl64_exe.lib', | 531 'ImportLibrary': '$(OutDir)\\lib\\nacl64_exe.lib', |
549 'ProgramDatabaseFile': '$(OutDir)\\nacl64_exe.pdb', | 532 'ProgramDatabaseFile': '$(OutDir)\\nacl64_exe.pdb', |
| 533 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
550 }, | 534 }, |
551 }, | 535 }, |
552 'configurations': { | 536 'configurations': { |
553 'Common_Base': { | 537 'Common_Base': { |
554 'msvs_target_platform': 'x64', | 538 'msvs_target_platform': 'x64', |
555 }, | 539 }, |
556 }, | 540 }, |
557 }, | 541 }, |
558 ], | 542 ], |
559 }], | 543 }], |
560 ], | 544 ], |
561 } | 545 } |
OLD | NEW |