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 'variables': { | 6 'variables': { |
7 # TODO(dmaclach): can we pick this up some other way? Right now it's | 7 # TODO(dmaclach): can we pick this up some other way? Right now it's |
8 # duplicated from chrome.gyp | 8 # duplicated from chrome.gyp |
9 'chromium_code': 1, | 9 'chromium_code': 1, |
10 | 10 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 'webapp/_locales.official/zh_CN/messages.json', | 111 'webapp/_locales.official/zh_CN/messages.json', |
112 'webapp/_locales.official/zh_TW/messages.json', | 112 'webapp/_locales.official/zh_TW/messages.json', |
113 ], | 113 ], |
114 }, { # else: branding!="Chrome" | 114 }, { # else: branding!="Chrome" |
115 # Must match host/plugin/constants.h | 115 # Must match host/plugin/constants.h |
116 'host_plugin_name': 'Chromoting Host', | 116 'host_plugin_name': 'Chromoting Host', |
117 'remoting_webapp_locale_files': [ | 117 'remoting_webapp_locale_files': [ |
118 'webapp/_locales/en/messages.json', | 118 'webapp/_locales/en/messages.json', |
119 ], | 119 ], |
120 }], | 120 }], |
| 121 ['OS=="win"', { |
| 122 # Use auto-generated CLSID for the daemon controller to make sure that |
| 123 # the newly installed version of the controller will be used during |
| 124 # upgrade even if there is an old instance running already. |
| 125 'daemon_controller_clsid': '<!(python tools/uuidgen.py)', |
| 126 }], |
121 ], | 127 ], |
122 'remoting_webapp_files': [ | 128 'remoting_webapp_files': [ |
123 'resources/chromoting16.png', | 129 'resources/chromoting16.png', |
124 'resources/chromoting48.png', | 130 'resources/chromoting48.png', |
125 'resources/chromoting128.png', | 131 'resources/chromoting128.png', |
126 'resources/disclosure_arrow_down.png', | 132 'resources/disclosure_arrow_down.png', |
127 'resources/disclosure_arrow_right.png', | 133 'resources/disclosure_arrow_right.png', |
128 'resources/host_setup_instructions.png', | 134 'resources/host_setup_instructions.png', |
129 'resources/icon_cross.png', | 135 'resources/icon_cross.png', |
130 'resources/icon_host.png', | 136 'resources/icon_host.png', |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 '../base/base.gyp:base', | 509 '../base/base.gyp:base', |
504 ], | 510 ], |
505 'sources': [ | 511 'sources': [ |
506 'tools/breakpad_tester_win.cc', | 512 'tools/breakpad_tester_win.cc', |
507 ], | 513 ], |
508 }, # end of target 'remoting_breakpad_tester' | 514 }, # end of target 'remoting_breakpad_tester' |
509 | 515 |
510 { | 516 { |
511 'target_name': 'remoting_elevated_controller', | 517 'target_name': 'remoting_elevated_controller', |
512 'type': 'static_library', | 518 'type': 'static_library', |
| 519 'defines' : [ |
| 520 'DAEMON_CONTROLLER_CLSID=<(daemon_controller_clsid)', |
| 521 ], |
513 'sources': [ | 522 'sources': [ |
514 'host/win/elevated_controller.idl', | 523 'host/win/elevated_controller.idl', |
515 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/elevated_controller.h', | 524 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/elevated_controller.h', |
516 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/elevated_controller_i.c', | 525 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/elevated_controller_i.c', |
517 ], | 526 ], |
518 # This target exports a hard dependency because dependent targets may | 527 # This target exports a hard dependency because dependent targets may |
519 # include elevated_controller.h, a generated header. | 528 # include elevated_controller.h, a generated header. |
520 'hard_dependency': 1, | 529 'hard_dependency': 1, |
521 'msvs_settings': { | 530 'msvs_settings': { |
522 'VCMIDLTool': { | 531 'VCMIDLTool': { |
523 'OutputDirectory': '<(SHARED_INTERMEDIATE_DIR)/remoting/host', | 532 'OutputDirectory': '<(SHARED_INTERMEDIATE_DIR)/remoting/host', |
524 }, | 533 }, |
525 }, | 534 }, |
526 'direct_dependent_settings': { | 535 'direct_dependent_settings': { |
527 'include_dirs': [ | 536 'include_dirs': [ |
528 '<(SHARED_INTERMEDIATE_DIR)', | 537 '<(SHARED_INTERMEDIATE_DIR)', |
529 ], | 538 ], |
530 }, | 539 }, |
531 }, # end of target 'remoting_elevated_controller' | 540 }, # end of target 'remoting_elevated_controller' |
532 { | 541 { |
533 'target_name': 'remoting_host_controller', | 542 'target_name': 'remoting_host_controller', |
534 'type': 'executable', | 543 'type': 'executable', |
535 'variables': { 'enable_wexit_time_destructors': 1, }, | 544 'variables': { 'enable_wexit_time_destructors': 1, }, |
536 'defines' : [ | 545 'defines' : [ |
537 '_ATL_APARTMENT_THREADED', | 546 '_ATL_APARTMENT_THREADED', |
538 '_ATL_NO_AUTOMATIC_NAMESPACE', | 547 '_ATL_NO_AUTOMATIC_NAMESPACE', |
539 '_ATL_CSTRING_EXPLICIT_CONSTRUCTORS', | 548 '_ATL_CSTRING_EXPLICIT_CONSTRUCTORS', |
540 'STRICT', | 549 'STRICT', |
| 550 'DAEMON_CONTROLLER_CLSID="{<(daemon_controller_clsid)}"', |
541 ], | 551 ], |
542 'include_dirs': [ | 552 'include_dirs': [ |
543 '<(INTERMEDIATE_DIR)', | 553 '<(INTERMEDIATE_DIR)', |
544 ], | 554 ], |
545 'dependencies': [ | 555 'dependencies': [ |
546 '../base/base.gyp:base', | 556 '../base/base.gyp:base', |
547 'remoting_breakpad', | 557 'remoting_breakpad', |
548 'remoting_elevated_controller', | 558 'remoting_elevated_controller', |
549 'remoting_protocol', | 559 'remoting_protocol', |
550 'remoting_version_resources', | 560 'remoting_version_resources', |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 'resources/chromoting.ico', | 764 'resources/chromoting.ico', |
755 'tools/candle_and_light.py', | 765 'tools/candle_and_light.py', |
756 ], | 766 ], |
757 'outputs': [ | 767 'outputs': [ |
758 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', | 768 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', |
759 ], | 769 ], |
760 'msvs_cygwin_shell': 0, | 770 'msvs_cygwin_shell': 0, |
761 'action': [ | 771 'action': [ |
762 'python', 'tools/candle_and_light.py', | 772 'python', 'tools/candle_and_light.py', |
763 '--wix_path', '<(wix_path)', | 773 '--wix_path', '<(wix_path)', |
| 774 '--controller_clsid', '{<(daemon_controller_clsid)}', |
764 '--version', '<(version_full)', | 775 '--version', '<(version_full)', |
765 '--product_dir', '<(PRODUCT_DIR).', | 776 '--product_dir', '<(PRODUCT_DIR).', |
766 '--intermediate_dir', '<(INTERMEDIATE_DIR).', | 777 '--intermediate_dir', '<(INTERMEDIATE_DIR).', |
767 '--sas_dll_path', '<(sas_dll_path)', | 778 '--sas_dll_path', '<(sas_dll_path)', |
768 '--input', '<(RULE_INPUT_PATH)', | 779 '--input', '<(RULE_INPUT_PATH)', |
769 '--output', '<@(_outputs)', | 780 '--output', '<@(_outputs)', |
770 '<@(_wix_defines)', | 781 '<@(_wix_defines)', |
771 ], | 782 ], |
772 'message': 'Generating <@(_outputs)', | 783 'message': 'Generating <@(_outputs)', |
773 }, | 784 }, |
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1845 '../base/allocator/allocator.gyp:allocator', | 1856 '../base/allocator/allocator.gyp:allocator', |
1846 ], | 1857 ], |
1847 }, | 1858 }, |
1848 ], | 1859 ], |
1849 ], | 1860 ], |
1850 }], | 1861 }], |
1851 ], # end of 'conditions' | 1862 ], # end of 'conditions' |
1852 }, # end of target 'remoting_unittests' | 1863 }, # end of target 'remoting_unittests' |
1853 ], # end of targets | 1864 ], # end of targets |
1854 } | 1865 } |
OLD | NEW |