Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: remoting/remoting.gyp

Issue 18323017: Localized Chromoting Host on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 8
9 'variables': { 9 'variables': {
10 'conditions': [ 10 'conditions': [
11 # Enable the multi-process host on Windows by default. 11 # Enable the multi-process host on Windows by default.
12 ['OS=="win"', { 12 ['OS=="win"', {
13 'remoting_multi_process%': 1, 13 'remoting_multi_process%': 1,
14 }, { 14 }, {
15 'remoting_multi_process%': 0, 15 'remoting_multi_process%': 0,
16 }], 16 }],
17 ], 17 ],
18 }, 18 },
19 19
20 'remoting_multi_process%': '<(remoting_multi_process)', 20 'remoting_multi_process%': '<(remoting_multi_process)',
21 'remoting_rdp_session%': 1, 21 'remoting_rdp_session%': 1,
22 22
23 'localize_py_path': 'tools/localize.py',
24
23 # The |major|, |build| and |patch| versions are inherited from Chrome. 25 # The |major|, |build| and |patch| versions are inherited from Chrome.
24 # Since Chrome's |minor| version is always '0', we replace it with a 26 # Since Chrome's |minor| version is always '0', we replace it with a
25 # Chromoting-specific patch version. 27 # Chromoting-specific patch version.
26 # Note that we check both the |chrome_version_path| file and the 28 # Note that we check both the |chrome_version_path| file and the
27 # |remoting_version_path| so that we can override the Chrome version 29 # |remoting_version_path| so that we can override the Chrome version
28 # numbers if needed. 30 # numbers if needed.
29 'version_py_path': '../chrome/tools/build/version.py', 31 'version_py_path': '../chrome/tools/build/version.py',
30 'remoting_version_path': '../remoting/VERSION', 32 'remoting_version_path': '../remoting/VERSION',
31 'chrome_version_path': '../chrome/VERSION', 33 'chrome_version_path': '../chrome/VERSION',
32 'version_major': 34 'version_major':
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 # classes will be used during/after upgrade even if there are old 93 # classes will be used during/after upgrade even if there are old
92 # instances running already. 94 # instances running already.
93 # The parameter passed to uuidgen.py is ignored, but needed to make sure 95 # The parameter passed to uuidgen.py is ignored, but needed to make sure
94 # that the script will be invoked separately for each CLSID. Otherwise 96 # that the script will be invoked separately for each CLSID. Otherwise
95 # GYP will reuse the value returned by the first invocation of 97 # GYP will reuse the value returned by the first invocation of
96 # the script. 98 # the script.
97 'daemon_controller_clsid': '<!(python tools/uuidgen.py 1)', 99 'daemon_controller_clsid': '<!(python tools/uuidgen.py 1)',
98 'rdp_desktop_session_clsid': '<!(python tools/uuidgen.py 2)', 100 'rdp_desktop_session_clsid': '<!(python tools/uuidgen.py 2)',
99 }], 101 }],
100 ], 102 ],
103 'remoting_languages': [
104 '-l', 'ar',
105 '-l', 'bg',
106 '-l', 'ca',
107 '-l', 'cs',
108 '-l', 'da',
109 '-l', 'de',
110 '-l', 'el',
111 '-l', 'en',
112 '-l', 'en_GB',
113 '-l', 'es',
114 '-l', 'es_419',
115 '-l', 'et',
116 '-l', 'fi',
117 '-l', 'fil',
118 '-l', 'fr',
119 '-l', 'he',
120 '-l', 'hi',
121 '-l', 'hr',
122 '-l', 'hu',
123 '-l', 'id',
124 '-l', 'it',
125 '-l', 'ja',
126 '-l', 'ko',
127 '-l', 'lt',
128 '-l', 'lv',
129 '-l', 'nb',
130 '-l', 'nl',
131 '-l', 'pl',
132 '-l', 'pt_BR',
133 '-l', 'pt_PT',
134 '-l', 'ro',
135 '-l', 'ru',
136 '-l', 'sk',
137 '-l', 'sl',
138 '-l', 'sr',
139 '-l', 'sv',
140 '-l', 'th',
141 '-l', 'tr',
142 '-l', 'uk',
143 '-l', 'vi',
144 '-l', 'zh_CN',
145 '-l', 'zh_TW',
146 ],
101 'remoting_webapp_locale_files': [ 147 'remoting_webapp_locale_files': [
102 '<(webapp_locale_dir)/ar/messages.json', 148 '<(webapp_locale_dir)/ar/messages.json',
103 '<(webapp_locale_dir)/bg/messages.json', 149 '<(webapp_locale_dir)/bg/messages.json',
104 '<(webapp_locale_dir)/ca/messages.json', 150 '<(webapp_locale_dir)/ca/messages.json',
105 '<(webapp_locale_dir)/cs/messages.json', 151 '<(webapp_locale_dir)/cs/messages.json',
106 '<(webapp_locale_dir)/da/messages.json', 152 '<(webapp_locale_dir)/da/messages.json',
107 '<(webapp_locale_dir)/de/messages.json', 153 '<(webapp_locale_dir)/de/messages.json',
108 '<(webapp_locale_dir)/el/messages.json', 154 '<(webapp_locale_dir)/el/messages.json',
109 '<(webapp_locale_dir)/en/messages.json', 155 '<(webapp_locale_dir)/en/messages.json',
110 '<(webapp_locale_dir)/en_GB/messages.json', 156 '<(webapp_locale_dir)/en_GB/messages.json',
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 ], 702 ],
657 }, # end of target 'remoting_host_setup_base' 703 }, # end of target 'remoting_host_setup_base'
658 704
659 { 705 {
660 'target_name': 'remoting_host_plugin', 706 'target_name': 'remoting_host_plugin',
661 'type': 'loadable_module', 707 'type': 'loadable_module',
662 'variables': { 'enable_wexit_time_destructors': 1, }, 708 'variables': { 'enable_wexit_time_destructors': 1, },
663 'product_extension': '<(host_plugin_extension)', 709 'product_extension': '<(host_plugin_extension)',
664 'product_prefix': '<(host_plugin_prefix)', 710 'product_prefix': '<(host_plugin_prefix)',
665 'dependencies': [ 711 'dependencies': [
712 '../net/net.gyp:net',
713 '../third_party/npapi/npapi.gyp:npapi',
666 'remoting_base', 714 'remoting_base',
667 'remoting_host', 715 'remoting_host',
668 'remoting_host_event_logger', 716 'remoting_host_event_logger',
669 'remoting_host_logging', 717 'remoting_host_logging',
670 'remoting_host_setup_base', 718 'remoting_host_setup_base',
671 'remoting_jingle_glue', 719 'remoting_jingle_glue',
672 '../net/net.gyp:net',
673 '../third_party/npapi/npapi.gyp:npapi',
674 ], 720 ],
675 'sources': [ 721 'sources': [
722 '<(SHARED_INTERMEDIATE_DIR)/remoting/core.rc',
723 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc',
676 'base/dispatch_win.h', 724 'base/dispatch_win.h',
677 'host/win/core_resource.h',
678 'host/plugin/host_log_handler.cc', 725 'host/plugin/host_log_handler.cc',
679 'host/plugin/host_log_handler.h', 726 'host/plugin/host_log_handler.h',
680 'host/plugin/host_plugin.cc', 727 'host/plugin/host_plugin.cc',
681 'host/plugin/host_plugin_utils.cc', 728 'host/plugin/host_plugin_utils.cc',
682 'host/plugin/host_plugin_utils.h', 729 'host/plugin/host_plugin_utils.h',
683 'host/plugin/host_script_object.cc', 730 'host/plugin/host_script_object.cc',
684 'host/plugin/host_script_object.h', 731 'host/plugin/host_script_object.h',
732 'host/win/core_resource.h',
685 ], 733 ],
686 'conditions': [ 734 'conditions': [
687 ['OS=="mac"', { 735 ['OS=="mac"', {
688 'mac_bundle': 1, 736 'mac_bundle': 1,
689 'xcode_settings': { 737 'xcode_settings': {
690 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', 738 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
691 'INFOPLIST_FILE': 'host/plugin/host_plugin-Info.plist', 739 'INFOPLIST_FILE': 'host/plugin/host_plugin-Info.plist',
692 'INFOPLIST_PREPROCESS': 'YES', 740 'INFOPLIST_PREPROCESS': 'YES',
693 # TODO(maruel): Use INFOPLIST_PREFIX_HEADER to remove the need t o 741 # TODO(maruel): Use INFOPLIST_PREFIX_HEADER to remove the need t o
694 # duplicate string once 742 # duplicate string once
(...skipping 17 matching lines...) Expand all
712 ['mac_breakpad==1', { 760 ['mac_breakpad==1', {
713 'variables': { 761 'variables': {
714 # A real .dSYM is needed for dump_syms to operate on. 762 # A real .dSYM is needed for dump_syms to operate on.
715 'mac_real_dsym': 1, 763 'mac_real_dsym': 1,
716 }, 764 },
717 }], 765 }],
718 ], # conditions 766 ], # conditions
719 }], # OS=="mac" 767 }], # OS=="mac"
720 [ 'OS=="win"', { 768 [ 'OS=="win"', {
721 'defines': [ 769 'defines': [
770 # 4 corresponds to BINARY_HOST_PLUGIN in version.rc.template.
771 'BINARY=4',
garykac 2013/07/09 00:34:12 These values can't be made into strings? BINARY=H
alexeypa (please no reviews) 2013/07/09 01:05:23 Done.
722 'ISOLATION_AWARE_ENABLED=1', 772 'ISOLATION_AWARE_ENABLED=1',
723 ], 773 ],
724 'dependencies': [ 774 'dependencies': [
725 'remoting_lib_idl', 775 'remoting_lib_idl',
776 'remoting_core_resources',
726 'remoting_version_resources', 777 'remoting_version_resources',
727 ], 778 ],
728 'include_dirs': [ 779 'include_dirs': [
729 '<(INTERMEDIATE_DIR)', 780 '<(INTERMEDIATE_DIR)',
730 ], 781 ],
731 'sources': [ 782 'sources': [
732 '<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_host_plugin_versio n.rc',
733 'host/win/core.rc',
734 'host/plugin/host_plugin.def', 783 'host/plugin/host_plugin.def',
735 ], 784 ],
736 }], 785 }],
737 ], 786 ],
738 }, # end of target 'remoting_host_plugin' 787 }, # end of target 'remoting_host_plugin'
739 788
740 { 789 {
741 'target_name': 'remoting_native_messaging_host', 790 'target_name': 'remoting_native_messaging_host',
742 'type': 'executable', 791 'type': 'executable',
743 'variables': { 'enable_wexit_time_destructors': 1, }, 792 'variables': { 'enable_wexit_time_destructors': 1, },
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 }, 1389 },
1341 }, 1390 },
1342 }, # end of target 'remoting_configurer' 1391 }, # end of target 'remoting_configurer'
1343 # The only difference between |remoting_console.exe| and 1392 # The only difference between |remoting_console.exe| and
1344 # |remoting_host.exe| is that the former is a console application. 1393 # |remoting_host.exe| is that the former is a console application.
1345 # |remoting_console.exe| is used for debugging purposes. 1394 # |remoting_console.exe| is used for debugging purposes.
1346 { 1395 {
1347 'target_name': 'remoting_console', 1396 'target_name': 'remoting_console',
1348 'type': 'executable', 1397 'type': 'executable',
1349 'variables': { 'enable_wexit_time_destructors': 1, }, 1398 'variables': { 'enable_wexit_time_destructors': 1, },
1399 'defines': [
1400 # 3 corresponds to BINARY_HOST_ME2ME in version.rc.template.
1401 'BINARY=3',
1402 ],
1350 'dependencies': [ 1403 'dependencies': [
1351 'remoting_core', 1404 'remoting_core',
1352 'remoting_version_resources', 1405 'remoting_version_resources',
1353 ], 1406 ],
1354 'sources': [ 1407 'sources': [
1355 '<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_host_version.rc', 1408 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc',
1356 'host/win/entry_point.cc', 1409 'host/win/entry_point.cc',
1357 ], 1410 ],
1358 'msvs_settings': { 1411 'msvs_settings': {
1359 'VCLinkerTool': { 1412 'VCLinkerTool': {
1360 'EntryPointSymbol': 'HostEntryPoint', 1413 'EntryPointSymbol': 'HostEntryPoint',
1361 'IgnoreAllDefaultLibraries': 'true', 1414 'IgnoreAllDefaultLibraries': 'true',
1362 'SubSystem': '1', # /SUBSYSTEM:CONSOLE 1415 'SubSystem': '1', # /SUBSYSTEM:CONSOLE
1363 }, 1416 },
1364 }, 1417 },
1365 }, # end of target 'remoting_console' 1418 }, # end of target 'remoting_console'
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 }, # end of target 'remoting_console_manifest' 1451 }, # end of target 'remoting_console_manifest'
1399 { 1452 {
1400 'target_name': 'remoting_core', 1453 'target_name': 'remoting_core',
1401 'type': 'shared_library', 1454 'type': 'shared_library',
1402 'variables': { 'enable_wexit_time_destructors': 1, }, 1455 'variables': { 'enable_wexit_time_destructors': 1, },
1403 'defines' : [ 1456 'defines' : [
1404 '_ATL_APARTMENT_THREADED', 1457 '_ATL_APARTMENT_THREADED',
1405 '_ATL_CSTRING_EXPLICIT_CONSTRUCTORS', 1458 '_ATL_CSTRING_EXPLICIT_CONSTRUCTORS',
1406 '_ATL_NO_AUTOMATIC_NAMESPACE', 1459 '_ATL_NO_AUTOMATIC_NAMESPACE',
1407 '_ATL_NO_EXCEPTIONS', 1460 '_ATL_NO_EXCEPTIONS',
1461 # 1 corresponds to BINARY_CORE in version.rc.template.
1462 'BINARY=1',
1408 'DAEMON_CONTROLLER_CLSID="{<(daemon_controller_clsid)}"', 1463 'DAEMON_CONTROLLER_CLSID="{<(daemon_controller_clsid)}"',
1409 'RDP_DESKTOP_SESSION_CLSID="{<(rdp_desktop_session_clsid)}"', 1464 'RDP_DESKTOP_SESSION_CLSID="{<(rdp_desktop_session_clsid)}"',
1410 'HOST_IMPLEMENTATION', 1465 'HOST_IMPLEMENTATION',
1411 'ISOLATION_AWARE_ENABLED=1', 1466 'ISOLATION_AWARE_ENABLED=1',
1412 'STRICT', 1467 'STRICT',
1413 'VERSION=<(version_full)', 1468 'VERSION=<(version_full)',
1414 ], 1469 ],
1415 'dependencies': [ 1470 'dependencies': [
1416 '../base/base.gyp:base', 1471 '../base/base.gyp:base',
1417 '../base/base.gyp:base_static', 1472 '../base/base.gyp:base_static',
1418 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations', 1473 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
1419 '../ipc/ipc.gyp:ipc', 1474 '../ipc/ipc.gyp:ipc',
1420 '../net/net.gyp:net', 1475 '../net/net.gyp:net',
1421 '../third_party/webrtc/modules/modules.gyp:desktop_capture', 1476 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
1477 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
1422 'remoting_base', 1478 'remoting_base',
1423 'remoting_breakpad', 1479 'remoting_breakpad',
1480 'remoting_core_resources',
1424 'remoting_host', 1481 'remoting_host',
1425 'remoting_host_event_logger', 1482 'remoting_host_event_logger',
1426 'remoting_host_logging', 1483 'remoting_host_logging',
1427 'remoting_lib_idl', 1484 'remoting_lib_idl',
1428 'remoting_lib_ps', 1485 'remoting_lib_ps',
1429 'remoting_lib_rc', 1486 'remoting_lib_rc',
1430 'remoting_me2me_host_static', 1487 'remoting_me2me_host_static',
1431 'remoting_protocol', 1488 'remoting_protocol',
1432 'remoting_version_resources', 1489 'remoting_version_resources',
1433 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
1434 ], 1490 ],
1435 'sources': [ 1491 'sources': [
1492 '<(SHARED_INTERMEDIATE_DIR)/remoting/core.rc',
1436 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/chromoting_lib.rc', 1493 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/chromoting_lib.rc',
1437 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/remoting_host_messages.rc' , 1494 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/remoting_host_messages.rc' ,
1438 '<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_core_version.rc', 1495 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc',
1439 'host/chromoting_messages.cc', 1496 'host/chromoting_messages.cc',
1440 'host/chromoting_messages.h', 1497 'host/chromoting_messages.h',
1441 'host/config_file_watcher.cc', 1498 'host/config_file_watcher.cc',
1442 'host/config_file_watcher.h', 1499 'host/config_file_watcher.h',
1443 'host/daemon_process.cc', 1500 'host/daemon_process.cc',
1444 'host/daemon_process.h', 1501 'host/daemon_process.h',
1445 'host/daemon_process_win.cc', 1502 'host/daemon_process_win.cc',
1446 'host/desktop_process.cc', 1503 'host/desktop_process.cc',
1447 'host/desktop_process.h', 1504 'host/desktop_process.h',
1448 'host/desktop_process_main.cc', 1505 'host/desktop_process_main.cc',
(...skipping 10 matching lines...) Expand all
1459 'host/ipc_constants.cc', 1516 'host/ipc_constants.cc',
1460 'host/ipc_constants.h', 1517 'host/ipc_constants.h',
1461 'host/remoting_me2me_host.cc', 1518 'host/remoting_me2me_host.cc',
1462 'host/sas_injector.h', 1519 'host/sas_injector.h',
1463 'host/sas_injector_win.cc', 1520 'host/sas_injector_win.cc',
1464 'host/verify_config_window_win.cc', 1521 'host/verify_config_window_win.cc',
1465 'host/verify_config_window_win.h', 1522 'host/verify_config_window_win.h',
1466 'host/win/chromoting_module.cc', 1523 'host/win/chromoting_module.cc',
1467 'host/win/chromoting_module.h', 1524 'host/win/chromoting_module.h',
1468 'host/win/core.cc', 1525 'host/win/core.cc',
1469 'host/win/core.rc',
1470 'host/win/core_resource.h', 1526 'host/win/core_resource.h',
1471 'host/win/elevated_controller.cc', 1527 'host/win/elevated_controller.cc',
1472 'host/win/elevated_controller.h', 1528 'host/win/elevated_controller.h',
1473 'host/win/host_service.cc', 1529 'host/win/host_service.cc',
1474 'host/win/host_service.h', 1530 'host/win/host_service.h',
1475 'host/win/omaha.cc', 1531 'host/win/omaha.cc',
1476 'host/win/omaha.h', 1532 'host/win/omaha.h',
1477 'host/win/rdp_desktop_session.cc', 1533 'host/win/rdp_desktop_session.cc',
1478 'host/win/rdp_desktop_session.h', 1534 'host/win/rdp_desktop_session.h',
1479 'host/win/unprivileged_process_delegate.cc', 1535 'host/win/unprivileged_process_delegate.cc',
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 '-nologo', 1588 '-nologo',
1533 '-manifest', 1589 '-manifest',
1534 '<@(_manifests)', 1590 '<@(_manifests)',
1535 '-outputresource:<(_binary);#2', 1591 '-outputresource:<(_binary);#2',
1536 '-out:<(_binary).embedded.manifest', 1592 '-out:<(_binary).embedded.manifest',
1537 ], 1593 ],
1538 }, 1594 },
1539 ], # actions 1595 ], # actions
1540 }, # end of target 'remoting_core_manifest' 1596 }, # end of target 'remoting_core_manifest'
1541 { 1597 {
1598 'target_name': 'remoting_core_resources',
1599 'type': 'none',
1600 'dependencies': [
1601 'remoting_resources',
1602 ],
1603 'hard_dependency': 1,
1604 'direct_dependent_settings': {
1605 'include_dirs': [
1606 '<(SHARED_INTERMEDIATE_DIR)',
1607 ],
1608 },
1609 'sources': [
1610 'host/win/core.rc.template'
1611 ],
1612 'rules': [
1613 {
1614 'rule_name': 'version',
1615 'extension': 'template',
1616 'outputs': [
1617 '<(SHARED_INTERMEDIATE_DIR)/remoting/core.rc'
1618 ],
1619 'action': [
1620 'python',
1621 '<(localize_py_path)',
1622 '<@(remoting_languages)',
1623 '--messages_path', '<(webapp_locale_dir)',
1624 '<(RULE_INPUT_PATH)',
1625 '<@(_outputs)',
1626 ],
1627 'message': 'Localizing the dialogs and strings'
1628 },
1629 ],
1630 }, # end of target 'remoting_core_resources'
1631 {
1542 'target_name': 'remoting_desktop', 1632 'target_name': 'remoting_desktop',
1543 'type': 'executable', 1633 'type': 'executable',
1544 'variables': { 'enable_wexit_time_destructors': 1, }, 1634 'variables': { 'enable_wexit_time_destructors': 1, },
1635 'defines': [
1636 # 2 corresponds to BINARY_DESKTOP in version.rc.template.
1637 'BINARY=2',
1638 ],
1545 'dependencies': [ 1639 'dependencies': [
1546 'remoting_core', 1640 'remoting_core',
1547 'remoting_version_resources', 1641 'remoting_version_resources',
1548 ], 1642 ],
1549 'sources': [ 1643 'sources': [
1550 '<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_desktop_version.rc', 1644 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc',
1551 'host/win/entry_point.cc', 1645 'host/win/entry_point.cc',
1552 ], 1646 ],
1553 'msvs_settings': { 1647 'msvs_settings': {
1554 'VCLinkerTool': { 1648 'VCLinkerTool': {
1555 'EntryPointSymbol': 'HostEntryPoint', 1649 'EntryPointSymbol': 'HostEntryPoint',
1556 'IgnoreAllDefaultLibraries': 'true', 1650 'IgnoreAllDefaultLibraries': 'true',
1557 'SubSystem': '2', # /SUBSYSTEM:WINDOWS 1651 'SubSystem': '2', # /SUBSYSTEM:WINDOWS
1558 }, 1652 },
1559 }, 1653 },
1560 }, # end of target 'remoting_desktop' 1654 }, # end of target 'remoting_desktop'
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 '-out:<(_binary).embedded.manifest', 1693 '-out:<(_binary).embedded.manifest',
1600 ], 1694 ],
1601 }, 1695 },
1602 ], # actions 1696 ], # actions
1603 }, # end of target 'remoting_desktop_manifest' 1697 }, # end of target 'remoting_desktop_manifest'
1604 { 1698 {
1605 'target_name': 'remoting_host_exe', 1699 'target_name': 'remoting_host_exe',
1606 'product_name': 'remoting_host', 1700 'product_name': 'remoting_host',
1607 'type': 'executable', 1701 'type': 'executable',
1608 'variables': { 'enable_wexit_time_destructors': 1, }, 1702 'variables': { 'enable_wexit_time_destructors': 1, },
1703 'defines': [
1704 # 3 corresponds to BINARY_HOST_ME2ME in version.rc.template.
1705 'BINARY=3',
1706 ],
1609 'dependencies': [ 1707 'dependencies': [
1610 'remoting_core', 1708 'remoting_core',
1611 'remoting_version_resources', 1709 'remoting_version_resources',
1612 ], 1710 ],
1613 'sources': [ 1711 'sources': [
1614 '<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_host_version.rc', 1712 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc',
1615 'host/win/entry_point.cc', 1713 'host/win/entry_point.cc',
1616 ], 1714 ],
1617 'msvs_settings': { 1715 'msvs_settings': {
1618 'VCLinkerTool': { 1716 'VCLinkerTool': {
1619 'EntryPointSymbol': 'HostEntryPoint', 1717 'EntryPointSymbol': 'HostEntryPoint',
1620 'IgnoreAllDefaultLibraries': 'true', 1718 'IgnoreAllDefaultLibraries': 'true',
1621 'ImportLibrary': '$(OutDir)\\lib\\remoting_host_exe.lib', 1719 'ImportLibrary': '$(OutDir)\\lib\\remoting_host_exe.lib',
1622 'OutputFile': '$(OutDir)\\remoting_host.exe', 1720 'OutputFile': '$(OutDir)\\remoting_host.exe',
1623 'SubSystem': '2', # /SUBSYSTEM:WINDOWS 1721 'SubSystem': '2', # /SUBSYSTEM:WINDOWS
1624 }, 1722 },
(...skipping 25 matching lines...) Expand all
1650 'mt', 1748 'mt',
1651 '-nologo', 1749 '-nologo',
1652 '-manifest', 1750 '-manifest',
1653 '<@(_manifests)', 1751 '<@(_manifests)',
1654 '-outputresource:<(_binary);#1', 1752 '-outputresource:<(_binary);#1',
1655 '-out:<(_binary).embedded.manifest', 1753 '-out:<(_binary).embedded.manifest',
1656 ], 1754 ],
1657 }, 1755 },
1658 ], # actions 1756 ], # actions
1659 }, # end of target 'remoting_host_manifest' 1757 }, # end of target 'remoting_host_manifest'
1660 1758 {
1759 'target_name': 'remoting_host_messages',
1760 'type': 'none',
1761 'dependencies': [
1762 'remoting_resources',
1763 ],
1764 'hard_dependency': 1,
1765 'direct_dependent_settings': {
1766 'include_dirs': [
1767 '<(SHARED_INTERMEDIATE_DIR)',
1768 ],
1769 },
1770 'sources': [
1771 'host/win/host_messages.mc.template'
1772 ],
1773 'rules': [
1774 {
1775 'rule_name': 'localize',
1776 'extension': 'template',
1777 'outputs': [
1778 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/remoting_host_messages .mc',
1779 ],
1780 'action': [
1781 'python',
1782 '<(localize_py_path)',
1783 '<@(remoting_languages)',
1784 '--messages_path', '<(webapp_locale_dir)',
1785 '<(RULE_INPUT_PATH)',
1786 '<@(_outputs)',
1787 ],
1788 'message': 'Localizing the event log messages'
1789 },
1790 ],
1791 }, # end of target 'remoting_host_messages'
1661 { 1792 {
1662 'target_name': 'remoting_host_plugin_manifest', 1793 'target_name': 'remoting_host_plugin_manifest',
1663 'type': 'none', 1794 'type': 'none',
1664 'dependencies': [ 1795 'dependencies': [
1665 'remoting_host_plugin', 1796 'remoting_host_plugin',
1666 ], 1797 ],
1667 'hard_dependency': '1', 1798 'hard_dependency': '1',
1668 'msvs_cygwin_shell': 0, 1799 'msvs_cygwin_shell': 0,
1669 'actions': [ 1800 'actions': [
1670 { 1801 {
(...skipping 14 matching lines...) Expand all
1685 '-nologo', 1816 '-nologo',
1686 '-manifest', 1817 '-manifest',
1687 '<@(_manifests)', 1818 '<@(_manifests)',
1688 '-outputresource:<(_binary);#2', 1819 '-outputresource:<(_binary);#2',
1689 '-out:<(_binary).embedded.manifest', 1820 '-out:<(_binary).embedded.manifest',
1690 ], 1821 ],
1691 }, 1822 },
1692 ], # actions 1823 ], # actions
1693 }, # end of target 'remoting_host_plugin_manifest' 1824 }, # end of target 'remoting_host_plugin_manifest'
1694 1825
1695 # Generates the version information resources for the Windows binaries. 1826 # Generates localized the version information resources for the Windows
1696 # The .RC files are generated from the "version.rc.version" template and 1827 # binaries.
1697 # placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder.
1698 # The substitution strings are taken from: 1828 # The substitution strings are taken from:
1699 # - build/util/LASTCHANGE - the last source code revision. 1829 # - build/util/LASTCHANGE - the last source code revision.
1700 # - chrome/VERSION - the major, build & patch versions. 1830 # - chrome/VERSION - the major, build & patch versions.
1701 # - remoting/VERSION - the chromoting patch version (and overrides 1831 # - remoting/VERSION - the chromoting patch version (and overrides
1702 # for chrome/VERSION). 1832 # for chrome/VERSION).
1703 # - (branding_path) - UI/localizable strings. 1833 # - translated webapp strings
1704 # - xxx.ver - per-binary non-localizable strings such as the binary
1705 # name.
1706 { 1834 {
1707 'target_name': 'remoting_version_resources', 1835 'target_name': 'remoting_version_resources',
1708 'type': 'none', 1836 'type': 'none',
1709 'inputs': [ 1837 'dependencies': [
1710 '<(branding_path)', 1838 'remoting_resources',
1711 'version.rc.version',
1712 '<(DEPTH)/build/util/LASTCHANGE',
1713 '<(remoting_version_path)',
1714 '<(chrome_version_path)',
1715 ], 1839 ],
1840 'hard_dependency': 1,
1716 'direct_dependent_settings': { 1841 'direct_dependent_settings': {
1717 'include_dirs': [ 1842 'include_dirs': [
1718 '<(SHARED_INTERMEDIATE_DIR)/remoting', 1843 '<(SHARED_INTERMEDIATE_DIR)',
1719 ], 1844 ],
1720 }, 1845 },
1721 'sources': [ 1846 'sources': [
1722 'host/plugin/remoting_host_plugin.ver', 1847 'host/win/version.rc.template'
1723 'host/win/remoting_core.ver',
1724 'host/win/remoting_desktop.ver',
1725 'host/win/remoting_host.ver',
1726 ], 1848 ],
1727 'rules': [ 1849 'rules': [
1728 { 1850 {
1729 'rule_name': 'version', 1851 'rule_name': 'version',
1730 'extension': 'ver', 1852 'extension': 'template',
1731 'variables': { 1853 'variables': {
1732 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE', 1854 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
1733 'template_input_path': 'version.rc.version',
1734 }, 1855 },
1735 'inputs': [ 1856 'inputs': [
1736 '<(branding_path)',
1737 '<(chrome_version_path)', 1857 '<(chrome_version_path)',
1738 '<(lastchange_path)', 1858 '<(lastchange_path)',
1739 '<(remoting_version_path)', 1859 '<(remoting_version_path)',
1740 '<(template_input_path)',
1741 ], 1860 ],
1742 'outputs': [ 1861 'outputs': [
1743 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)_version. rc', 1862 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc',
1744 ], 1863 ],
1745 'action': [ 1864 'action': [
1746 'python', 1865 'python',
1747 '<(version_py_path)', 1866 '<(localize_py_path)',
1748 '-f', '<(RULE_INPUT_PATH)', 1867 '<@(remoting_languages)',
1749 '-f', '<(chrome_version_path)', 1868 '-i', '<(chrome_version_path)',
1750 # |remoting_version_path| must be after |chrome_version_path| 1869 # |remoting_version_path| must be after |chrome_version_path|
1751 # because it can contain overrides for the version numbers. 1870 # because it can contain overrides for the version numbers.
1752 '-f', '<(remoting_version_path)', 1871 '-i', '<(remoting_version_path)',
1753 '-f', '<(branding_path)', 1872 '-i', '<(lastchange_path)',
1754 '-f', '<(lastchange_path)', 1873 '--messages_path', '<(webapp_locale_dir)',
1755 '<(template_input_path)', 1874 '<(RULE_INPUT_PATH)',
1756 '<@(_outputs)', 1875 '<@(_outputs)',
1757 ], 1876 ],
1758 'message': 'Generating version information in <@(_outputs)' 1877 'message': 'Localizing the version information'
1759 }, 1878 },
1760 ], 1879 ],
1761 }, # end of target 'remoting_version_resources' 1880 }, # end of target 'remoting_version_resources'
1762 ], # end of 'targets' 1881 ], # end of 'targets'
1763 }], # 'OS=="win"' 1882 }], # 'OS=="win"'
1764 1883
1765 # The host installation is generated only if WiX is available. If 1884 # The host installation is generated only if WiX is available. If
1766 # component build is used the produced installation will not work due to 1885 # component build is used the produced installation will not work due to
1767 # missing DLLs. We build it anyway to make sure the GYP scripts are executed 1886 # missing DLLs. We build it anyway to make sure the GYP scripts are executed
1768 # by the bots. 1887 # by the bots.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1966 'client/plugin/pepper_signal_strategy.h', 2085 'client/plugin/pepper_signal_strategy.h',
1967 ], 2086 ],
1968 }, # end of target 'remoting_client_plugin' 2087 }, # end of target 'remoting_client_plugin'
1969 2088
1970 { 2089 {
1971 'target_name': 'remoting_host_event_logger', 2090 'target_name': 'remoting_host_event_logger',
1972 'type': 'static_library', 2091 'type': 'static_library',
1973 'variables': { 'enable_wexit_time_destructors': 1, }, 2092 'variables': { 'enable_wexit_time_destructors': 1, },
1974 'dependencies': [ 2093 'dependencies': [
1975 'remoting_base', 2094 'remoting_base',
2095 'remoting_host_messages',
1976 ], 2096 ],
1977 'sources': [ 2097 'sources': [
1978 'host/host_event_logger.h', 2098 'host/host_event_logger.h',
1979 'host/host_event_logger_posix.cc', 2099 'host/host_event_logger_posix.cc',
1980 'host/host_event_logger_win.cc', 2100 'host/host_event_logger_win.cc',
1981 ], 2101 ],
1982 'conditions': [ 2102 'conditions': [
1983 ['OS=="win"', { 2103 ['OS=="win"', {
2104 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/host',
1984 'sources': [ 2105 'sources': [
1985 'host/remoting_host_messages.mc', 2106 '<(_output_dir)/remoting_host_messages.mc',
1986 ], 2107 ],
1987 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/host',
1988 'include_dirs': [ 2108 'include_dirs': [
1989 '<(_output_dir)', 2109 '<(_output_dir)',
1990 ], 2110 ],
1991 'direct_dependent_settings': { 2111 'direct_dependent_settings': {
1992 'include_dirs': [ 2112 'include_dirs': [
1993 '<(_output_dir)', 2113 '<(_output_dir)',
1994 ], 2114 ],
1995 }, 2115 },
1996 # Rule to run the message compiler.
1997 'rules': [ 2116 'rules': [
2117 # Rule to run the message compiler.
1998 { 2118 {
1999 'rule_name': 'message_compiler', 2119 'rule_name': 'message_compiler',
2000 'extension': 'mc', 2120 'extension': 'mc',
2001 'inputs': [ ], 2121 'inputs': [ ],
2002 'outputs': [ 2122 'outputs': [
2003 '<(_output_dir)/remoting_host_messages.h', 2123 '<(_output_dir)/remoting_host_messages.h',
2004 '<(_output_dir)/remoting_host_messages.rc', 2124 '<(_output_dir)/remoting_host_messages.rc',
2005 ], 2125 ],
2006 'msvs_cygwin_shell': 0, 2126 'msvs_cygwin_shell': 0,
2007 'action': [ 2127 'action': [
2008 'mc.exe', 2128 'mc.exe',
2009 '-h', '<(_output_dir)', 2129 '-h', '<(_output_dir)',
2010 '-r', '<(_output_dir)/.', 2130 '-r', '<(_output_dir)/.',
2131 '-u',
2011 '<(RULE_INPUT_PATH)', 2132 '<(RULE_INPUT_PATH)',
2012 ], 2133 ],
2013 'process_outputs_as_sources': 1, 2134 'process_outputs_as_sources': 1,
2014 'message': 'Running message compiler on <(RULE_INPUT_PATH).', 2135 'message': 'Running message compiler on <(RULE_INPUT_PATH).',
2015 }, 2136 },
2016 ], 2137 ],
2017 }], 2138 }],
2018 ], # end of 'conditions' 2139 ], # end of 'conditions'
2019 }, # end of target 'remoting_host_event_logger' 2140 }, # end of target 'remoting_host_event_logger'
2020 2141
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 2284
2164 { 2285 {
2165 'target_name': 'remoting_resources', 2286 'target_name': 'remoting_resources',
2166 'type': 'none', 2287 'type': 'none',
2167 'variables': { 2288 'variables': {
2168 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)', 2289 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)',
2169 'grit_resource_ids': 'resources/resource_ids', 2290 'grit_resource_ids': 'resources/resource_ids',
2170 'sources': [ 2291 'sources': [
2171 'base/resources_unittest.cc', 2292 'base/resources_unittest.cc',
2172 'host/plugin/host_script_object.cc', 2293 'host/plugin/host_script_object.cc',
2294 'host/win/core.rc.template',
2295 'host/win/host_messages.mc.template',
2296 'host/win/version.rc.template',
2173 'webapp/butter_bar.js', 2297 'webapp/butter_bar.js',
2174 'webapp/client_screen.js', 2298 'webapp/client_screen.js',
2175 'webapp/error.js', 2299 'webapp/error.js',
2176 'webapp/host_list.js', 2300 'webapp/host_list.js',
2177 'webapp/host_table_entry.js', 2301 'webapp/host_table_entry.js',
2178 'webapp/host_setup_dialog.js', 2302 'webapp/host_setup_dialog.js',
2179 'webapp/main.html', 2303 'webapp/main.html',
2180 'webapp/manifest.json', 2304 'webapp/manifest.json',
2181 'webapp/remoting.js', 2305 'webapp/remoting.js',
2182 ], 2306 ],
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
2789 '../base/allocator/allocator.gyp:allocator', 2913 '../base/allocator/allocator.gyp:allocator',
2790 ], 2914 ],
2791 }, 2915 },
2792 ], 2916 ],
2793 ], 2917 ],
2794 }], # end of 'toolkit_uses_gtk == 1' 2918 }], # end of 'toolkit_uses_gtk == 1'
2795 ], # end of 'conditions' 2919 ], # end of 'conditions'
2796 }, # end of target 'remoting_unittests' 2920 }, # end of target 'remoting_unittests'
2797 ], # end of targets 2921 ], # end of targets
2798 } 2922 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698