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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
506 ], | 512 ], |
507 'sources': [ | 513 'sources': [ |
508 'tools/breakpad_tester_win.cc', | 514 'tools/breakpad_tester_win.cc', |
509 ], | 515 ], |
510 }, # end of target 'remoting_breakpad_tester' | 516 }, # end of target 'remoting_breakpad_tester' |
511 | 517 |
512 { | 518 { |
513 'target_name': 'remoting_elevated_controller', | 519 'target_name': 'remoting_elevated_controller', |
514 'type': 'static_library', | 520 'type': 'static_library', |
515 'sources': [ | 521 'sources': [ |
516 'host/win/elevated_controller.idl', | 522 'host/win/elevated_controller_idl.templ', |
517 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/elevated_controller.h', | 523 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/elevated_controller.h', |
518 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/elevated_controller_i.c', | 524 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/elevated_controller_i.c', |
519 ], | 525 ], |
520 # This target exports a hard dependency because dependent targets may | 526 # This target exports a hard dependency because dependent targets may |
521 # include elevated_controller.h, a generated header. | 527 # include elevated_controller.h, a generated header. |
522 'hard_dependency': 1, | 528 'hard_dependency': 1, |
523 'msvs_settings': { | 529 'msvs_settings': { |
524 'VCMIDLTool': { | 530 'VCMIDLTool': { |
525 'OutputDirectory': '<(SHARED_INTERMEDIATE_DIR)/remoting/host', | 531 'OutputDirectory': '<(SHARED_INTERMEDIATE_DIR)/remoting/host', |
526 }, | 532 }, |
527 }, | 533 }, |
528 'direct_dependent_settings': { | 534 'direct_dependent_settings': { |
529 'include_dirs': [ | 535 'include_dirs': [ |
530 '<(SHARED_INTERMEDIATE_DIR)', | 536 '<(SHARED_INTERMEDIATE_DIR)', |
531 ], | 537 ], |
532 }, | 538 }, |
539 'rules': [ | |
540 { | |
541 'rule_name': 'generate_idl', | |
542 'extension': 'templ', | |
543 'outputs': [ | |
544 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/<(RULE_INPUT_PATH).idl ', | |
545 ], | |
546 'action': [ | |
547 'python', | |
548 '<(version_py_path)', | |
549 '-e', 'DAEMON_CONTROLLER_CLSID="<(daemon_controller_clsid)"', | |
550 '<(RULE_INPUT_PATH)', | |
551 '<@(_outputs)', | |
552 ], | |
553 'process_outputs_as_sources': 1, | |
554 'message': 'Generating <@(_outputs)' | |
555 }, | |
556 ], | |
533 }, # end of target 'remoting_elevated_controller' | 557 }, # end of target 'remoting_elevated_controller' |
558 | |
Jamie
2012/08/16 18:18:47
Nit: We don't tend to have many blank lines in gyp
alexeypa (please no reviews)
2012/08/16 18:35:59
OK, but our gyp files tend to be unreadable too.
| |
534 { | 559 { |
535 'target_name': 'remoting_host_controller', | 560 'target_name': 'remoting_host_controller', |
536 'type': 'executable', | 561 'type': 'executable', |
537 'variables': { 'enable_wexit_time_destructors': 1, }, | 562 'variables': { 'enable_wexit_time_destructors': 1, }, |
538 'defines' : [ | 563 'defines' : [ |
539 '_ATL_APARTMENT_THREADED', | 564 '_ATL_APARTMENT_THREADED', |
540 '_ATL_NO_AUTOMATIC_NAMESPACE', | 565 '_ATL_NO_AUTOMATIC_NAMESPACE', |
541 '_ATL_CSTRING_EXPLICIT_CONSTRUCTORS', | 566 '_ATL_CSTRING_EXPLICIT_CONSTRUCTORS', |
542 'STRICT', | 567 'STRICT', |
568 'DAEMON_CONTROLLER_CLSID="{<(daemon_controller_clsid)}"', | |
543 ], | 569 ], |
544 'include_dirs': [ | 570 'include_dirs': [ |
545 '<(INTERMEDIATE_DIR)', | 571 '<(INTERMEDIATE_DIR)', |
546 ], | 572 ], |
547 'dependencies': [ | 573 'dependencies': [ |
548 '../base/base.gyp:base', | 574 '../base/base.gyp:base', |
549 'remoting_breakpad', | 575 'remoting_breakpad', |
550 'remoting_elevated_controller', | 576 'remoting_elevated_controller', |
551 'remoting_protocol', | 577 'remoting_protocol', |
552 'remoting_version_resources', | 578 'remoting_version_resources', |
(...skipping 25 matching lines...) Expand all Loading... | |
578 "name='Microsoft.Windows.Common-Controls' " | 604 "name='Microsoft.Windows.Common-Controls' " |
579 "version='6.0.0.0' " | 605 "version='6.0.0.0' " |
580 "processorArchitecture='*' " | 606 "processorArchitecture='*' " |
581 "publicKeyToken='6595b64144ccf1df' language='*'\"", | 607 "publicKeyToken='6595b64144ccf1df' language='*'\"", |
582 ], | 608 ], |
583 # 2 == /SUBSYSTEM:WINDOWS | 609 # 2 == /SUBSYSTEM:WINDOWS |
584 'SubSystem': '2', | 610 'SubSystem': '2', |
585 }, | 611 }, |
586 }, | 612 }, |
587 }, # end of target 'remoting_host_controller' | 613 }, # end of target 'remoting_host_controller' |
614 | |
Jamie
2012/08/16 18:18:47
Nit: Blank line.
alexeypa (please no reviews)
2012/08/16 18:35:59
Done.
| |
588 { | 615 { |
589 'target_name': 'remoting_service', | 616 'target_name': 'remoting_service', |
590 'type': 'executable', | 617 'type': 'executable', |
591 'variables': { 'enable_wexit_time_destructors': 1, }, | 618 'variables': { 'enable_wexit_time_destructors': 1, }, |
592 'dependencies': [ | 619 'dependencies': [ |
593 '../base/base.gyp:base', | 620 '../base/base.gyp:base', |
594 '../base/base.gyp:base_static', | 621 '../base/base.gyp:base_static', |
595 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations', | 622 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations', |
596 '../ipc/ipc.gyp:ipc', | 623 '../ipc/ipc.gyp:ipc', |
597 'remoting_base', | 624 'remoting_base', |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
758 'resources/chromoting.ico', | 785 'resources/chromoting.ico', |
759 'tools/candle_and_light.py', | 786 'tools/candle_and_light.py', |
760 ], | 787 ], |
761 'outputs': [ | 788 'outputs': [ |
762 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', | 789 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', |
763 ], | 790 ], |
764 'msvs_cygwin_shell': 0, | 791 'msvs_cygwin_shell': 0, |
765 'action': [ | 792 'action': [ |
766 'python', 'tools/candle_and_light.py', | 793 'python', 'tools/candle_and_light.py', |
767 '--wix_path', '<(wix_path)', | 794 '--wix_path', '<(wix_path)', |
795 '--controller_clsid', '{<(daemon_controller_clsid)}', | |
768 '--version', '<(version_full)', | 796 '--version', '<(version_full)', |
769 '--product_dir', '<(PRODUCT_DIR).', | 797 '--product_dir', '<(PRODUCT_DIR).', |
770 '--intermediate_dir', '<(INTERMEDIATE_DIR).', | 798 '--intermediate_dir', '<(INTERMEDIATE_DIR).', |
771 '--sas_dll_path', '<(sas_dll_path)', | 799 '--sas_dll_path', '<(sas_dll_path)', |
772 '--input', '<(RULE_INPUT_PATH)', | 800 '--input', '<(RULE_INPUT_PATH)', |
773 '--output', '<@(_outputs)', | 801 '--output', '<@(_outputs)', |
774 '<@(_wix_defines)', | 802 '<@(_wix_defines)', |
775 ], | 803 ], |
776 'message': 'Generating <@(_outputs)', | 804 'message': 'Generating <@(_outputs)', |
777 }, | 805 }, |
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1858 '../base/allocator/allocator.gyp:allocator', | 1886 '../base/allocator/allocator.gyp:allocator', |
1859 ], | 1887 ], |
1860 }, | 1888 }, |
1861 ], | 1889 ], |
1862 ], | 1890 ], |
1863 }], | 1891 }], |
1864 ], # end of 'conditions' | 1892 ], # end of 'conditions' |
1865 }, # end of target 'remoting_unittests' | 1893 }, # end of target 'remoting_unittests' |
1866 ], # end of targets | 1894 ], # end of targets |
1867 } | 1895 } |
OLD | NEW |