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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'chrome', | 8 'target_name': 'chrome', |
| 9 'type': 'none', |
| 10 'dependencies': [ 'chrome_initial', ], |
| 11 'conditions': [ |
| 12 ['OS == "win"', { |
| 13 'actions': [ |
| 14 { |
| 15 'variables': { |
| 16 'reorder_py_path': '<(DEPTH)/build/win/reorder-imports.py', |
| 17 'exe_input_path':'$(OutDir)\\initial', |
| 18 'exe_output_path':'<(PRODUCT_DIR)', |
| 19 }, |
| 20 'action_name': 'reorder_imports', |
| 21 'inputs': [ |
| 22 '<(reorder_py_path)', |
| 23 ], |
| 24 'outputs': [ |
| 25 '<(PRODUCT_DIR)\\chrome.exe', |
| 26 '<(PRODUCT_DIR)\\chrome.exe.pdb', |
| 27 ], |
| 28 'action': [ |
| 29 'python', |
| 30 '<(reorder_py_path)', |
| 31 '-i', '<(exe_input_path)', |
| 32 '-o', '<(exe_output_path)', |
| 33 ], |
| 34 'message': 'Reordering Imports', |
| 35 }, |
| 36 ], |
| 37 }], |
| 38 ], |
| 39 }, |
| 40 { |
| 41 'target_name': 'chrome_initial', |
9 'type': 'executable', | 42 'type': 'executable', |
| 43 # Name the exe chrome.exe, not chrome_initial.exe. |
| 44 'product_name': 'chrome', |
10 'mac_bundle': 1, | 45 'mac_bundle': 1, |
11 'variables': { | 46 'variables': { |
12 'use_system_xdg_utils%': 0, | 47 'use_system_xdg_utils%': 0, |
13 'enable_wexit_time_destructors': 1, | 48 'enable_wexit_time_destructors': 1, |
14 }, | 49 }, |
15 'sources': [ | 50 'sources': [ |
16 'app/chrome_exe_main_aura.cc', | 51 'app/chrome_exe_main_aura.cc', |
17 'app/chrome_exe_main_gtk.cc', | 52 'app/chrome_exe_main_gtk.cc', |
18 'app/chrome_exe_main_mac.cc', | 53 'app/chrome_exe_main_mac.cc', |
19 'app/chrome_exe_main_win.cc', | 54 'app/chrome_exe_main_win.cc', |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 '../components/nacl.gyp:nacl_helper', | 496 '../components/nacl.gyp:nacl_helper', |
462 ], | 497 ], |
463 }], | 498 }], |
464 ], | 499 ], |
465 'dependencies': [ | 500 'dependencies': [ |
466 '../sandbox/sandbox.gyp:sandbox', | 501 '../sandbox/sandbox.gyp:sandbox', |
467 ], | 502 ], |
468 }], | 503 }], |
469 ['OS=="win"', { | 504 ['OS=="win"', { |
470 'dependencies': [ | 505 'dependencies': [ |
471 # Note that chrome_elf must be listed first. Do not reorder it. | |
472 '../chrome_elf/chrome_elf.gyp:chrome_elf', | |
473 'chrome_dll', | 506 'chrome_dll', |
474 'chrome_nacl_win64', | 507 'chrome_nacl_win64', |
475 'chrome_process_finder', | 508 'chrome_process_finder', |
476 'chrome_version_resources', | 509 'chrome_version_resources', |
477 'installer_util', | 510 'installer_util', |
478 'image_pre_reader', | 511 'image_pre_reader', |
479 '../base/base.gyp:base', | 512 '../base/base.gyp:base', |
480 '../breakpad/breakpad.gyp:breakpad_handler', | 513 '../breakpad/breakpad.gyp:breakpad_handler', |
481 '../breakpad/breakpad.gyp:breakpad_sender', | 514 '../breakpad/breakpad.gyp:breakpad_sender', |
482 '../components/components.gyp:breakpad_component', | 515 '../components/components.gyp:breakpad_component', |
483 '../components/components.gyp:policy', | 516 '../components/components.gyp:policy', |
| 517 '../chrome_elf/chrome_elf.gyp:chrome_elf', |
484 '../sandbox/sandbox.gyp:sandbox', | 518 '../sandbox/sandbox.gyp:sandbox', |
485 ], | 519 ], |
486 'sources': [ | 520 'sources': [ |
487 'app/chrome_breakpad_client.cc', | 521 'app/chrome_breakpad_client.cc', |
488 'app/chrome_breakpad_client.h', | 522 'app/chrome_breakpad_client.h', |
489 'app/chrome_exe.rc', | 523 'app/chrome_exe.rc', |
490 'common/crash_keys.cc', | 524 'common/crash_keys.cc', |
491 'common/crash_keys.h', | 525 'common/crash_keys.h', |
492 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/chrome_exe_version.rc', | 526 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/chrome_exe_version.rc', |
493 ], | 527 ], |
494 'msvs_settings': { | 528 'msvs_settings': { |
495 'VCLinkerTool': { | 529 'VCLinkerTool': { |
496 'ImportLibrary': '$(OutDir)\\lib\\chrome_exe.lib', | 530 'ImportLibrary': '$(OutDir)\\lib\\chrome_exe.lib', |
| 531 'OutputFile': '$(OutDir)\\initial\\chrome.exe', |
497 'DelayLoadDLLs': [ | 532 'DelayLoadDLLs': [ |
498 'dbghelp.dll', | 533 'dbghelp.dll', |
499 'dwmapi.dll', | 534 'dwmapi.dll', |
500 'uxtheme.dll', | 535 'uxtheme.dll', |
501 'ole32.dll', | 536 'ole32.dll', |
502 'oleaut32.dll', | 537 'oleaut32.dll', |
503 ], | 538 ], |
504 'AdditionalDependencies': [ 'wintrust.lib' ], | 539 'AdditionalDependencies': [ 'wintrust.lib' ], |
505 # Set /SUBSYSTEM:WINDOWS for chrome.exe itself. | 540 # Set /SUBSYSTEM:WINDOWS for chrome.exe itself. |
506 'SubSystem': '2', | 541 'SubSystem': '2', |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 'dependencies': [ | 690 'dependencies': [ |
656 'chrome_nacl_win64', | 691 'chrome_nacl_win64', |
657 ], | 692 ], |
658 }], | 693 }], |
659 ], | 694 ], |
660 }, | 695 }, |
661 ], | 696 ], |
662 }], | 697 }], |
663 ], | 698 ], |
664 } | 699 } |
OLD | NEW |