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 'includes': [ | 6 'includes': [ |
7 'remoting_enable.gypi', | 7 'remoting_host_linux.gypi', |
| 8 'remoting_host_mac.gypi', |
| 9 'remoting_host_win.gypi', |
8 ], | 10 ], |
9 | 11 |
| 12 'variables': { |
| 13 'conditions': [ |
| 14 # Remoting host is supported only on Windows, OSX and Linux (with X11). |
| 15 ['OS=="win" or OS=="mac" or (OS=="linux" and use_x11==1)', { |
| 16 'enable_me2me_host': 1, |
| 17 'enable_it2me_host': 1, |
| 18 'enable_remoting_host': 1, |
| 19 }, { |
| 20 'enable_me2me_host': 0, |
| 21 'enable_it2me_host': 0, |
| 22 'enable_remoting_host': 0, |
| 23 }], |
| 24 ['chromeos==1', { |
| 25 'enable_remoting_host': 1, |
| 26 'enable_me2me_host': 0, |
| 27 'enable_it2me_host': 1, |
| 28 }], |
| 29 ], |
| 30 }, |
| 31 |
10 'conditions': [ | 32 'conditions': [ |
11 ['OS=="mac"', { | |
12 'includes': [ | |
13 'remoting_host_mac.gypi', | |
14 ], | |
15 }], | |
16 ['OS=="win"', { | |
17 'includes': [ | |
18 'remoting_host_win.gypi', | |
19 ], | |
20 }], | |
21 ['OS=="linux"', { | |
22 'includes': [ | |
23 'remoting_host_linux.gypi', | |
24 ], | |
25 }], | |
26 | |
27 ['enable_remoting_host==1', { | 33 ['enable_remoting_host==1', { |
28 'targets': [ | 34 'targets': [ |
29 { | 35 { |
30 # GN version: //remoting/host | 36 # GN version: //remoting/host |
31 'target_name': 'remoting_host', | 37 'target_name': 'remoting_host', |
32 'type': 'static_library', | 38 'type': 'static_library', |
33 'variables': { | 39 'variables': { |
34 'enable_wexit_time_destructors': 1, | 40 'enable_wexit_time_destructors': 1, |
35 'host_bundle_name': '<!(python <(version_py_path) -f <(branding_path
) -t "@MAC_HOST_BUNDLE_NAME@")', | 41 'host_bundle_name': '<!(python <(version_py_path) -f <(branding_path
) -t "@MAC_HOST_BUNDLE_NAME@")', |
36 'prefpane_bundle_name': '<!(python <(version_py_path) -f <(branding_
path) -t "@MAC_PREFPANE_BUNDLE_NAME@")', | 42 'prefpane_bundle_name': '<!(python <(version_py_path) -f <(branding_
path) -t "@MAC_PREFPANE_BUNDLE_NAME@")', |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 'action': [ | 386 'action': [ |
381 'python', '<(remoting_localize_path)', | 387 'python', '<(remoting_localize_path)', |
382 '--locale_dir', '<(webapp_locale_dir)', | 388 '--locale_dir', '<(webapp_locale_dir)', |
383 '--template', '<(RULE_INPUT_PATH)', | 389 '--template', '<(RULE_INPUT_PATH)', |
384 '--locale_output', | 390 '--locale_output', |
385 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suf
fix}.lproj/InfoPlist.strings', | 391 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suf
fix}.lproj/InfoPlist.strings', |
386 '<@(remoting_locales)', | 392 '<@(remoting_locales)', |
387 ]}, | 393 ]}, |
388 ], | 394 ], |
389 }, # end of target 'remoting_infoplist_strings' | 395 }, # end of target 'remoting_infoplist_strings' |
| 396 ], # end of 'targets' |
| 397 }], # 'enable_remoting_host==1' |
| 398 |
| 399 ['enable_me2me_host==1', { |
| 400 'targets': [ |
| 401 { |
| 402 'target_name': 'remoting_me2me_host_static', |
| 403 'type': 'static_library', |
| 404 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 405 'dependencies': [ |
| 406 '../base/base.gyp:base', |
| 407 '../base/base.gyp:base_i18n', |
| 408 '../net/net.gyp:net', |
| 409 '../third_party/webrtc/modules/modules.gyp:desktop_capture', |
| 410 'remoting_base', |
| 411 'remoting_breakpad', |
| 412 'remoting_host', |
| 413 'remoting_protocol', |
| 414 ], |
| 415 'defines': [ |
| 416 'VERSION=<(version_full)', |
| 417 ], |
| 418 'sources': [ |
| 419 'host/curtain_mode.h', |
| 420 'host/curtain_mode_linux.cc', |
| 421 'host/curtain_mode_mac.cc', |
| 422 'host/curtain_mode_win.cc', |
| 423 'host/posix/signal_handler.cc', |
| 424 'host/posix/signal_handler.h', |
| 425 ], |
| 426 'conditions': [ |
| 427 ['os_posix != 1', { |
| 428 'sources/': [ |
| 429 ['exclude', '^host/posix/'], |
| 430 ], |
| 431 }], |
| 432 ], # end of 'conditions' |
| 433 }, # end of target 'remoting_me2me_host_static' |
| 434 ] # end of targets |
| 435 }], # end of enable_me2me_host==1 |
| 436 |
| 437 ['enable_it2me_host==1', { |
| 438 'targets': [ |
390 { | 439 { |
391 # GN version: //remoting/host/it2me:common | 440 # GN version: //remoting/host/it2me:common |
392 'target_name': 'remoting_it2me_host_static', | 441 'target_name': 'remoting_it2me_host_static', |
393 'type': 'static_library', | 442 'type': 'static_library', |
394 'variables': { 'enable_wexit_time_destructors': 1, }, | 443 'variables': { 'enable_wexit_time_destructors': 1, }, |
395 'dependencies': [ | 444 'dependencies': [ |
396 '../base/base.gyp:base_i18n', | 445 '../base/base.gyp:base_i18n', |
397 '../components/components.gyp:policy', | 446 '../components/components.gyp:policy', |
398 '../net/net.gyp:net', | 447 '../net/net.gyp:net', |
399 'remoting_base', | 448 'remoting_base', |
400 'remoting_host', | 449 'remoting_host', |
401 'remoting_infoplist_strings', | 450 'remoting_infoplist_strings', |
402 'remoting_protocol', | 451 'remoting_protocol', |
403 'remoting_resources', | 452 'remoting_resources', |
404 ], | 453 ], |
405 'defines': [ | 454 'defines': [ |
406 'VERSION=<(version_full)', | 455 'VERSION=<(version_full)', |
407 ], | 456 ], |
408 'sources': [ | 457 'sources': [ |
409 '<@(remoting_it2me_host_static_sources)', | 458 '<@(remoting_it2me_host_static_sources)', |
410 ], | 459 ], |
411 }, # end of target 'remoting_it2me_host_static' | 460 }, # end of target 'remoting_it2me_host_static' |
412 ], # end of 'targets' | 461 ] # end of targets |
413 }], # 'enable_remoting_host==1' | 462 }], # end of 'enable_it2me_host==1' |
414 | |
415 ['enable_me2me_host==1', { | |
416 'targets': [ | |
417 { | |
418 'target_name': 'remoting_me2me_host_static', | |
419 'type': 'static_library', | |
420 'variables': { 'enable_wexit_time_destructors': 1, }, | |
421 'dependencies': [ | |
422 '../base/base.gyp:base', | |
423 '../base/base.gyp:base_i18n', | |
424 '../net/net.gyp:net', | |
425 '../third_party/webrtc/modules/modules.gyp:desktop_capture', | |
426 'remoting_base', | |
427 'remoting_breakpad', | |
428 'remoting_host', | |
429 'remoting_protocol', | |
430 ], | |
431 'defines': [ | |
432 'VERSION=<(version_full)', | |
433 ], | |
434 'sources': [ | |
435 'host/curtain_mode.h', | |
436 'host/curtain_mode_linux.cc', | |
437 'host/curtain_mode_mac.cc', | |
438 'host/curtain_mode_win.cc', | |
439 'host/posix/signal_handler.cc', | |
440 'host/posix/signal_handler.h', | |
441 ], | |
442 'conditions': [ | |
443 ['os_posix != 1', { | |
444 'sources/': [ | |
445 ['exclude', '^host/posix/'], | |
446 ], | |
447 }], | |
448 ], # end of 'conditions' | |
449 }, # end of target 'remoting_me2me_host_static' | |
450 ] # end of targets | |
451 }], # end of enable_me2me_host==1 | |
452 | 463 |
453 ['OS!="win" and enable_me2me_host==1', { | 464 ['OS!="win" and enable_me2me_host==1', { |
454 'targets': [ | 465 'targets': [ |
455 { | 466 { |
456 'target_name': 'remoting_me2me_host', | 467 'target_name': 'remoting_me2me_host', |
457 'type': 'executable', | 468 'type': 'executable', |
458 'variables': { 'enable_wexit_time_destructors': 1, }, | 469 'variables': { 'enable_wexit_time_destructors': 1, }, |
459 'dependencies': [ | 470 'dependencies': [ |
460 '../base/base.gyp:base', | 471 '../base/base.gyp:base', |
461 '../base/base.gyp:base_i18n', | 472 '../base/base.gyp:base_i18n', |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 }, # end of postbuild 'dump_symbols' | 635 }, # end of postbuild 'dump_symbols' |
625 ], # end of 'postbuilds' | 636 ], # end of 'postbuilds' |
626 }], # mac_breakpad==1 | 637 }], # mac_breakpad==1 |
627 ], # conditions | 638 ], # conditions |
628 }], # OS=mac | 639 }], # OS=mac |
629 ], | 640 ], |
630 }, # end of target 'remoting_me2me_native_messaging_host' | 641 }, # end of target 'remoting_me2me_native_messaging_host' |
631 ], # targets | 642 ], # targets |
632 }], # end of OS!="win" and enable_me2me_host==1 | 643 }], # end of OS!="win" and enable_me2me_host==1 |
633 | 644 |
634 ['OS!="win" and enable_remoting_host==1', { | 645 ['OS!="win" and enable_it2me_host==1 and chromeos==0', { |
635 'conditions': [ | 646 'targets': [ |
636 ['chromeos==0', { | 647 { |
637 'targets': [ | 648 'target_name': 'remoting_it2me_native_messaging_host', |
638 { | 649 'type': 'executable', |
639 'target_name': 'remoting_it2me_native_messaging_host', | 650 'product_name': 'remote_assistance_host', |
640 'type': 'executable', | 651 'variables': { 'enable_wexit_time_destructors': 1, }, |
641 'product_name': 'remote_assistance_host', | 652 'dependencies': [ |
642 'variables': { 'enable_wexit_time_destructors': 1, }, | 653 '../base/base.gyp:base', |
| 654 'remoting_base', |
| 655 'remoting_breakpad', |
| 656 'remoting_host', |
| 657 'remoting_it2me_host_static', |
| 658 'remoting_native_messaging_base', |
| 659 'remoting_protocol', |
| 660 ], |
| 661 'defines': [ |
| 662 'VERSION=<(version_full)', |
| 663 ], |
| 664 'sources': [ |
| 665 'host/it2me/it2me_native_messaging_host_entry_point.cc', |
| 666 'host/it2me/it2me_native_messaging_host_main.cc', |
| 667 'host/it2me/it2me_native_messaging_host_main.h', |
| 668 ], |
| 669 'conditions': [ |
| 670 ['OS=="linux" and chromeos==0 and use_ozone==0', { |
643 'dependencies': [ | 671 'dependencies': [ |
644 '../base/base.gyp:base', | 672 # Always use GTK on Linux, even for Aura builds. |
645 'remoting_base', | 673 '../build/linux/system.gyp:gtk', |
646 'remoting_breakpad', | |
647 'remoting_host', | |
648 'remoting_it2me_host_static', | |
649 'remoting_native_messaging_base', | |
650 'remoting_protocol', | |
651 ], | 674 ], |
652 'defines': [ | 675 }], |
653 'VERSION=<(version_full)', | 676 ['OS=="linux" and use_allocator!="none"', { |
| 677 'dependencies': [ |
| 678 '../base/allocator/allocator.gyp:allocator', |
654 ], | 679 ], |
655 'sources': [ | 680 }], |
656 'host/it2me/it2me_native_messaging_host_entry_point.cc', | 681 ['OS=="mac"', { |
657 'host/it2me/it2me_native_messaging_host_main.cc', | 682 'mac_bundle': 1, |
658 'host/it2me/it2me_native_messaging_host_main.h', | 683 'variables': { |
| 684 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_p
ath) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_ID@")', |
| 685 }, |
| 686 'xcode_settings': { |
| 687 'INFOPLIST_FILE': 'host/it2me/remote_assistance_host-Info.plist'
, |
| 688 'INFOPLIST_PREPROCESS': 'YES', |
| 689 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_f
ull)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"', |
| 690 }, |
| 691 'mac_bundle_resources': [ |
| 692 '<(PRODUCT_DIR)/icudtl.dat', |
| 693 'host/disconnect_window.xib', |
| 694 'host/it2me/remote_assistance_host-Info.plist', |
| 695 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT
_DIR) <(remoting_locales))', |
| 696 |
| 697 # Localized strings for 'Info.plist' |
| 698 '<!@pymod_do_main(remoting_localize --locale_output ' |
| 699 '"<(SHARED_INTERMEDIATE_DIR)/remoting/remote_assistance_host
-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" ' |
| 700 '--print_only <(remoting_locales))', |
| 701 ], |
| 702 'mac_bundle_resources!': [ |
| 703 'host/it2me/remote_assistance_host-Info.plist', |
659 ], | 704 ], |
660 'conditions': [ | 705 'conditions': [ |
661 ['OS=="linux" and chromeos==0 and use_ozone==0', { | 706 ['mac_breakpad==1', { |
| 707 'variables': { |
| 708 # A real .dSYM is needed for dump_syms to operate on. |
| 709 'mac_real_dsym': 1, |
| 710 }, |
| 711 'copies': [ |
| 712 { |
| 713 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Res
ources', |
| 714 'files': [ |
| 715 '<(PRODUCT_DIR)/crash_inspector', |
| 716 '<(PRODUCT_DIR)/crash_report_sender.app' |
| 717 ], |
| 718 }, |
| 719 ], |
662 'dependencies': [ | 720 'dependencies': [ |
663 # Always use GTK on Linux, even for Aura builds. | 721 '../breakpad/breakpad.gyp:dump_syms', |
664 '../build/linux/system.gyp:gtk', | |
665 ], | 722 ], |
666 }], | 723 'postbuilds': [ |
667 ['OS=="linux" and use_allocator!="none"', { | 724 { |
668 'dependencies': [ | 725 'postbuild_name': 'Dump Symbols', |
669 '../base/allocator/allocator.gyp:allocator', | 726 'variables': { |
670 ], | 727 'dump_product_syms_path': |
671 }], | 728 'scripts/mac/dump_product_syms', |
672 ['OS=="mac"', { | 729 }, |
673 'mac_bundle': 1, | 730 'action': [ |
674 'variables': { | 731 '<(dump_product_syms_path)', |
675 'host_bundle_id': '<!(python <(version_py_path) -f <(brandin
g_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_ID@")', | 732 '<(version_full)', |
676 }, | 733 ], |
677 'xcode_settings': { | 734 }, # end of postbuild 'dump_symbols' |
678 'INFOPLIST_FILE': 'host/it2me/remote_assistance_host-Info.pl
ist', | 735 ], # end of 'postbuilds' |
679 'INFOPLIST_PREPROCESS': 'YES', | 736 }], # mac_breakpad==1 |
680 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(versi
on_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"', | 737 ], # conditions |
681 }, | 738 }], # OS=mac |
682 'mac_bundle_resources': [ | 739 ], |
683 '<(PRODUCT_DIR)/icudtl.dat', | 740 }, # end of target 'remoting_it2me_native_messaging_host' |
684 'host/disconnect_window.xib', | 741 ], # end of 'targets' |
685 'host/it2me/remote_assistance_host-Info.plist', | 742 }], # # end of OS!="win" and enable_it2me_host==1 |
686 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRO
DUCT_DIR) <(remoting_locales))', | |
687 | 743 |
688 # Localized strings for 'Info.plist' | |
689 '<!@pymod_do_main(remoting_localize --locale_output ' | |
690 '"<(SHARED_INTERMEDIATE_DIR)/remoting/remote_assistance_host
-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" ' | |
691 '--print_only <(remoting_locales))', | |
692 ], | |
693 'mac_bundle_resources!': [ | |
694 'host/it2me/remote_assistance_host-Info.plist', | |
695 ], | |
696 'conditions': [ | |
697 ['mac_breakpad==1', { | |
698 'variables': { | |
699 # A real .dSYM is needed for dump_syms to operate on. | |
700 'mac_real_dsym': 1, | |
701 }, | |
702 'copies': [ | |
703 { | |
704 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)
/Resources', | |
705 'files': [ | |
706 '<(PRODUCT_DIR)/crash_inspector', | |
707 '<(PRODUCT_DIR)/crash_report_sender.app' | |
708 ], | |
709 }, | |
710 ], | |
711 'dependencies': [ | |
712 '../breakpad/breakpad.gyp:dump_syms', | |
713 ], | |
714 'postbuilds': [ | |
715 { | |
716 'postbuild_name': 'Dump Symbols', | |
717 'variables': { | |
718 'dump_product_syms_path': | |
719 'scripts/mac/dump_product_syms', | |
720 }, | |
721 'action': [ | |
722 '<(dump_product_syms_path)', | |
723 '<(version_full)', | |
724 ], | |
725 }, # end of postbuild 'dump_symbols' | |
726 ], # end of 'postbuilds' | |
727 }], # mac_breakpad==1 | |
728 ], # conditions | |
729 }], # OS=mac | |
730 ], # end of conditions | |
731 }, # end of target 'remoting_it2me_native_messaging_host' | |
732 ], # targets | |
733 }, { # chromeos==0 | |
734 'targets': [ | |
735 { | |
736 # Dummy target for chromeos==1 | |
737 'target_name': 'remoting_it2me_native_messaging_host', | |
738 'type': 'executable', | |
739 }, | |
740 ], # targets | |
741 }], # end of chromeos==0 | |
742 ], # end of conditions | |
743 }], # end of OS!="win" and enable_remoting_host==1 | |
744 ], # end of 'conditions' | 744 ], # end of 'conditions' |
745 } | 745 } |
OLD | NEW |