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