OLD | NEW |
1 # Copyright (c) 2009-2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009-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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 'targets': [ | 124 'targets': [ |
125 { | 125 { |
126 'target_name': 'chrome', | 126 'target_name': 'chrome', |
127 'type': 'executable', | 127 'type': 'executable', |
128 'mac_bundle': 1, | 128 'mac_bundle': 1, |
129 'msvs_guid': '7B219FAA-E360-43C8-B341-804A94EEFFAC', | 129 'msvs_guid': '7B219FAA-E360-43C8-B341-804A94EEFFAC', |
130 'variables': { | 130 'variables': { |
131 'chrome_exe_target': 1, | 131 'chrome_exe_target': 1, |
132 }, | 132 }, |
133 'dependencies': [ | 133 'dependencies': [ |
| 134 'chrome_version_info', |
134 # Copy a Flash Player binary to PRODUCT_DIR if applicable. | 135 # Copy a Flash Player binary to PRODUCT_DIR if applicable. |
135 # Let the .gyp file decide what to do on a per-OS basis. | 136 # Let the .gyp file decide what to do on a per-OS basis. |
136 '../third_party/adobe/flash/flash_player.gyp:flash_player', | 137 '../third_party/adobe/flash/flash_player.gyp:flash_player', |
137 ], | 138 ], |
138 'conditions': [ | 139 'conditions': [ |
139 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 140 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
140 'actions': [ | 141 'actions': [ |
141 { | 142 { |
142 'action_name': 'manpage', | 143 'action_name': 'manpage', |
143 'conditions': [ | 144 'conditions': [ |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 ], | 487 ], |
487 'msvs_settings': { | 488 'msvs_settings': { |
488 'VCLinkerTool': { | 489 'VCLinkerTool': { |
489 'ImportLibrary': '$(OutDir)\\lib\\chrome_exe.lib', | 490 'ImportLibrary': '$(OutDir)\\lib\\chrome_exe.lib', |
490 'ProgramDatabaseFile': '$(OutDir)\\chrome_exe.pdb', | 491 'ProgramDatabaseFile': '$(OutDir)\\chrome_exe.pdb', |
491 }, | 492 }, |
492 }, | 493 }, |
493 }], | 494 }], |
494 ], | 495 ], |
495 }, | 496 }, |
| 497 { |
| 498 'target_name': 'chrome_version_info', |
| 499 'type': '<(library)', |
| 500 'sources': [ |
| 501 'app/chrome_version_info.cc', |
| 502 'app/chrome_version_info.h', |
| 503 ], |
| 504 'include_dirs': [ |
| 505 '<(DEPTH)', |
| 506 ], |
| 507 'conditions': [ |
| 508 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris
"', { |
| 509 'include_dirs': [ |
| 510 '<(SHARED_INTERMEDIATE_DIR)', |
| 511 ], |
| 512 'actions': [ |
| 513 { |
| 514 'action_name': 'posix_version', |
| 515 'variables': { |
| 516 'lastchange_path': |
| 517 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', |
| 518 'version_py_path': 'tools/build/version.py', |
| 519 'version_path': 'VERSION', |
| 520 'template_input_path': 'app/chrome_version_info_posix.h.version'
, |
| 521 }, |
| 522 'conditions': [ |
| 523 [ 'branding == "Chrome"', { |
| 524 'variables': { |
| 525 'branding_path': |
| 526 'app/theme/google_chrome/BRANDING', |
| 527 }, |
| 528 }, { # else branding!="Chrome" |
| 529 'variables': { |
| 530 'branding_path': |
| 531 'app/theme/chromium/BRANDING', |
| 532 }, |
| 533 }], |
| 534 ], |
| 535 'inputs': [ |
| 536 '<(template_input_path)', |
| 537 '<(version_path)', |
| 538 '<(branding_path)', |
| 539 '<(lastchange_path)', |
| 540 ], |
| 541 'outputs': [ |
| 542 '<(SHARED_INTERMEDIATE_DIR)/chrome/app/chrome_version_info_posix
.h', |
| 543 ], |
| 544 'action': [ |
| 545 'python', |
| 546 '<(version_py_path)', |
| 547 '-f', '<(version_path)', |
| 548 '-f', '<(branding_path)', |
| 549 '-f', '<(lastchange_path)', |
| 550 '<(template_input_path)', |
| 551 '<@(_outputs)', |
| 552 ], |
| 553 'message': 'Generating version information', |
| 554 }, |
| 555 ], |
| 556 }], |
| 557 ] |
| 558 } |
496 ], | 559 ], |
497 'conditions': [ | 560 'conditions': [ |
498 ['OS=="win"', { | 561 ['OS=="win"', { |
499 'targets': [ | 562 'targets': [ |
500 { | 563 { |
501 'target_name': 'chrome_nacl_win64', | 564 'target_name': 'chrome_nacl_win64', |
502 'type': 'executable', | 565 'type': 'executable', |
503 'product_name': 'nacl64', | 566 'product_name': 'nacl64', |
504 'msvs_guid': 'BB1AE956-038B-4092-96A2-951D2B418548', | 567 'msvs_guid': 'BB1AE956-038B-4092-96A2-951D2B418548', |
505 'variables': { | 568 'variables': { |
(...skipping 27 matching lines...) Expand all Loading... |
533 'configurations': { | 596 'configurations': { |
534 'Common_Base': { | 597 'Common_Base': { |
535 'msvs_target_platform': 'x64', | 598 'msvs_target_platform': 'x64', |
536 }, | 599 }, |
537 }, | 600 }, |
538 }, | 601 }, |
539 ], | 602 ], |
540 }], | 603 }], |
541 ], | 604 ], |
542 } | 605 } |
OLD | NEW |