diff options
author | bshe <bshe@chromium.org> | 2015-02-08 19:24:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-09 03:24:33 +0000 |
commit | c29be3bc08f24d515d07547570e5d0d7f1a10ff3 (patch) | |
tree | c4a33746cf12cd484f3fda86aa882a0e75bb1a9c /remoting/remoting_host.gypi | |
parent | 1e04aae816f6ac47f30a29fb3b0e2531216a8686 (diff) | |
download | chromium_src-c29be3bc08f24d515d07547570e5d0d7f1a10ff3.zip chromium_src-c29be3bc08f24d515d07547570e5d0d7f1a10ff3.tar.gz chromium_src-c29be3bc08f24d515d07547570e5d0d7f1a10ff3.tar.bz2 |
Revert of [Chromoting] Remove wildcard ('*') from remoting_all target. (patchset #8 id:140001 of https://codereview.chromium.org/896743004/)
Reason for revert:
It cause ChromiumOS.Chromium and PFQ bots to fail. The reason might because chroot didn't have "dpkg-architecture" command. The correct solution might be add "dpkg-architecture" command to chroot. But this CL currently break PFQ and a bunch of bots. So revert it for immediate fix.
See crbug.com/456491
Original issue's description:
> [Chromoting] Remove wildcard ('*') from remoting_all target.
>
> Support for the wildcard is going away in GN, so this helps prepare for the transition away from GYP.
>
> This cl adds dummy targets so that that logic for when the proper targets should be build can be kept in the platform-specific files.
>
> Some of the conditions in the host gyp files needed to be restructured so that the dummy targets would be defined only when necessary. The updated conditions caused a lot of lines to be re-indented, but the target definitions are the same (except for the new dummy targets).
>
> BUG=
>
> Committed: https://crrev.com/9fb75ed89c0ae4ced679576f9cf030cc8c30e928
> Cr-Commit-Position: refs/heads/master@{#315150}
TBR=kelvinp@chromium.org,garykac@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=
Review URL: https://codereview.chromium.org/905223002
Cr-Commit-Position: refs/heads/master@{#315261}
Diffstat (limited to 'remoting/remoting_host.gypi')
-rw-r--r-- | remoting/remoting_host.gypi | 278 |
1 files changed, 139 insertions, 139 deletions
diff --git a/remoting/remoting_host.gypi b/remoting/remoting_host.gypi index 733f17f..59175fe 100644 --- a/remoting/remoting_host.gypi +++ b/remoting/remoting_host.gypi @@ -4,26 +4,32 @@ { 'includes': [ - 'remoting_enable.gypi', + 'remoting_host_linux.gypi', + 'remoting_host_mac.gypi', + 'remoting_host_win.gypi', ], - 'conditions': [ - ['OS=="mac"', { - 'includes': [ - 'remoting_host_mac.gypi', - ], - }], - ['OS=="win"', { - 'includes': [ - 'remoting_host_win.gypi', - ], - }], - ['OS=="linux"', { - 'includes': [ - 'remoting_host_linux.gypi', - ], - }], + 'variables': { + 'conditions': [ + # Remoting host is supported only on Windows, OSX and Linux (with X11). + ['OS=="win" or OS=="mac" or (OS=="linux" and use_x11==1)', { + 'enable_me2me_host': 1, + 'enable_it2me_host': 1, + 'enable_remoting_host': 1, + }, { + 'enable_me2me_host': 0, + 'enable_it2me_host': 0, + 'enable_remoting_host': 0, + }], + ['chromeos==1', { + 'enable_remoting_host': 1, + 'enable_me2me_host': 0, + 'enable_it2me_host': 1, + }], + ], + }, + 'conditions': [ ['enable_remoting_host==1', { 'targets': [ { @@ -387,28 +393,6 @@ ]}, ], }, # end of target 'remoting_infoplist_strings' - { - # GN version: //remoting/host/it2me:common - 'target_name': 'remoting_it2me_host_static', - 'type': 'static_library', - 'variables': { 'enable_wexit_time_destructors': 1, }, - 'dependencies': [ - '../base/base.gyp:base_i18n', - '../components/components.gyp:policy', - '../net/net.gyp:net', - 'remoting_base', - 'remoting_host', - 'remoting_infoplist_strings', - 'remoting_protocol', - 'remoting_resources', - ], - 'defines': [ - 'VERSION=<(version_full)', - ], - 'sources': [ - '<@(remoting_it2me_host_static_sources)', - ], - }, # end of target 'remoting_it2me_host_static' ], # end of 'targets' }], # 'enable_remoting_host==1' @@ -447,8 +431,35 @@ }], ], # end of 'conditions' }, # end of target 'remoting_me2me_host_static' - ] # end of targets - }], # end of enable_me2me_host==1 + ] # end of targets + }], # end of enable_me2me_host==1 + + ['enable_it2me_host==1', { + 'targets': [ + { + # GN version: //remoting/host/it2me:common + 'target_name': 'remoting_it2me_host_static', + 'type': 'static_library', + 'variables': { 'enable_wexit_time_destructors': 1, }, + 'dependencies': [ + '../base/base.gyp:base_i18n', + '../components/components.gyp:policy', + '../net/net.gyp:net', + 'remoting_base', + 'remoting_host', + 'remoting_infoplist_strings', + 'remoting_protocol', + 'remoting_resources', + ], + 'defines': [ + 'VERSION=<(version_full)', + ], + 'sources': [ + '<@(remoting_it2me_host_static_sources)', + ], + }, # end of target 'remoting_it2me_host_static' + ] # end of targets + }], # end of 'enable_it2me_host==1' ['OS!="win" and enable_me2me_host==1', { 'targets': [ @@ -631,115 +642,104 @@ ], # targets }], # end of OS!="win" and enable_me2me_host==1 - ['OS!="win" and enable_remoting_host==1', { - 'conditions': [ - ['chromeos==0', { - 'targets': [ - { - 'target_name': 'remoting_it2me_native_messaging_host', - 'type': 'executable', - 'product_name': 'remote_assistance_host', - 'variables': { 'enable_wexit_time_destructors': 1, }, + ['OS!="win" and enable_it2me_host==1 and chromeos==0', { + 'targets': [ + { + 'target_name': 'remoting_it2me_native_messaging_host', + 'type': 'executable', + 'product_name': 'remote_assistance_host', + 'variables': { 'enable_wexit_time_destructors': 1, }, + 'dependencies': [ + '../base/base.gyp:base', + 'remoting_base', + 'remoting_breakpad', + 'remoting_host', + 'remoting_it2me_host_static', + 'remoting_native_messaging_base', + 'remoting_protocol', + ], + 'defines': [ + 'VERSION=<(version_full)', + ], + 'sources': [ + 'host/it2me/it2me_native_messaging_host_entry_point.cc', + 'host/it2me/it2me_native_messaging_host_main.cc', + 'host/it2me/it2me_native_messaging_host_main.h', + ], + 'conditions': [ + ['OS=="linux" and chromeos==0 and use_ozone==0', { 'dependencies': [ - '../base/base.gyp:base', - 'remoting_base', - 'remoting_breakpad', - 'remoting_host', - 'remoting_it2me_host_static', - 'remoting_native_messaging_base', - 'remoting_protocol', + # Always use GTK on Linux, even for Aura builds. + '../build/linux/system.gyp:gtk', ], - 'defines': [ - 'VERSION=<(version_full)', + }], + ['OS=="linux" and use_allocator!="none"', { + 'dependencies': [ + '../base/allocator/allocator.gyp:allocator', ], - 'sources': [ - 'host/it2me/it2me_native_messaging_host_entry_point.cc', - 'host/it2me/it2me_native_messaging_host_main.cc', - 'host/it2me/it2me_native_messaging_host_main.h', + }], + ['OS=="mac"', { + 'mac_bundle': 1, + 'variables': { + 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_ID@")', + }, + 'xcode_settings': { + 'INFOPLIST_FILE': 'host/it2me/remote_assistance_host-Info.plist', + 'INFOPLIST_PREPROCESS': 'YES', + 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"', + }, + 'mac_bundle_resources': [ + '<(PRODUCT_DIR)/icudtl.dat', + 'host/disconnect_window.xib', + 'host/it2me/remote_assistance_host-Info.plist', + '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))', + + # Localized strings for 'Info.plist' + '<!@pymod_do_main(remoting_localize --locale_output ' + '"<(SHARED_INTERMEDIATE_DIR)/remoting/remote_assistance_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" ' + '--print_only <(remoting_locales))', + ], + 'mac_bundle_resources!': [ + 'host/it2me/remote_assistance_host-Info.plist', ], 'conditions': [ - ['OS=="linux" and chromeos==0 and use_ozone==0', { - 'dependencies': [ - # Always use GTK on Linux, even for Aura builds. - '../build/linux/system.gyp:gtk', - ], - }], - ['OS=="linux" and use_allocator!="none"', { - 'dependencies': [ - '../base/allocator/allocator.gyp:allocator', - ], - }], - ['OS=="mac"', { - 'mac_bundle': 1, + ['mac_breakpad==1', { 'variables': { - 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_ID@")', - }, - 'xcode_settings': { - 'INFOPLIST_FILE': 'host/it2me/remote_assistance_host-Info.plist', - 'INFOPLIST_PREPROCESS': 'YES', - 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"', + # A real .dSYM is needed for dump_syms to operate on. + 'mac_real_dsym': 1, }, - 'mac_bundle_resources': [ - '<(PRODUCT_DIR)/icudtl.dat', - 'host/disconnect_window.xib', - 'host/it2me/remote_assistance_host-Info.plist', - '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))', - - # Localized strings for 'Info.plist' - '<!@pymod_do_main(remoting_localize --locale_output ' - '"<(SHARED_INTERMEDIATE_DIR)/remoting/remote_assistance_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" ' - '--print_only <(remoting_locales))', + 'copies': [ + { + 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources', + 'files': [ + '<(PRODUCT_DIR)/crash_inspector', + '<(PRODUCT_DIR)/crash_report_sender.app' + ], + }, ], - 'mac_bundle_resources!': [ - 'host/it2me/remote_assistance_host-Info.plist', + 'dependencies': [ + '../breakpad/breakpad.gyp:dump_syms', ], - 'conditions': [ - ['mac_breakpad==1', { + 'postbuilds': [ + { + 'postbuild_name': 'Dump Symbols', 'variables': { - # A real .dSYM is needed for dump_syms to operate on. - 'mac_real_dsym': 1, + 'dump_product_syms_path': + 'scripts/mac/dump_product_syms', }, - 'copies': [ - { - 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources', - 'files': [ - '<(PRODUCT_DIR)/crash_inspector', - '<(PRODUCT_DIR)/crash_report_sender.app' - ], - }, - ], - 'dependencies': [ - '../breakpad/breakpad.gyp:dump_syms', + 'action': [ + '<(dump_product_syms_path)', + '<(version_full)', ], - 'postbuilds': [ - { - 'postbuild_name': 'Dump Symbols', - 'variables': { - 'dump_product_syms_path': - 'scripts/mac/dump_product_syms', - }, - 'action': [ - '<(dump_product_syms_path)', - '<(version_full)', - ], - }, # end of postbuild 'dump_symbols' - ], # end of 'postbuilds' - }], # mac_breakpad==1 - ], # conditions - }], # OS=mac - ], # end of conditions - }, # end of target 'remoting_it2me_native_messaging_host' - ], # targets - }, { # chromeos==0 - 'targets': [ - { - # Dummy target for chromeos==1 - 'target_name': 'remoting_it2me_native_messaging_host', - 'type': 'executable', - }, - ], # targets - }], # end of chromeos==0 - ], # end of conditions - }], # end of OS!="win" and enable_remoting_host==1 + }, # end of postbuild 'dump_symbols' + ], # end of 'postbuilds' + }], # mac_breakpad==1 + ], # conditions + }], # OS=mac + ], + }, # end of target 'remoting_it2me_native_messaging_host' + ], # end of 'targets' + }], # # end of OS!="win" and enable_it2me_host==1 + ], # end of 'conditions' } |