Commit c29be3bc authored by bshe's avatar bshe Committed by Commit bot

Revert of [Chromoting] Remove wildcard ('*') from remoting_all target....

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}
parent 1e04aae8
......@@ -3,76 +3,14 @@
# found in the LICENSE file.
{
'includes': [
'remoting_enable.gypi',
],
'targets': [
{
'target_name': 'remoting_all',
'type': 'none',
'dependencies': [
'../remoting/remoting.gyp:remoting_base',
'../remoting/remoting.gyp:remoting_breakpad',
'../remoting/remoting.gyp:remoting_browser_test_resources',
'../remoting/remoting.gyp:remoting_client',
'../remoting/remoting.gyp:remoting_client_plugin',
'../remoting/remoting.gyp:remoting_protocol',
'../remoting/remoting.gyp:remoting_test_common',
'../remoting/remoting.gyp:remoting_unittests',
'../remoting/remoting.gyp:remoting_resources',
'../remoting/remoting.gyp:remoting_webapp',
'../remoting/remoting.gyp:remoting_webapp_html',
'../remoting/remoting.gyp:remoting_webapp_unittest',
'../remoting/app_remoting_webapp.gyp:ar_sample_app',
],
'conditions' : [
['OS=="win"', {
'dependencies': [
'../remoting/remoting.gyp:remoting_breakpad_tester',
'../remoting/remoting.gyp:remoting_console',
'../remoting/remoting.gyp:remoting_core',
'../remoting/remoting.gyp:remoting_desktop',
'../remoting/remoting.gyp:remoting_host_installation',
'../remoting/remoting.gyp:remoting_windows_resources',
],
}],
['OS=="android"', {
'dependencies': [
'../remoting/remoting.gyp:remoting_android_client_java',
'../remoting/remoting.gyp:remoting_android_resources',
'../remoting/remoting.gyp:remoting_apk',
'../remoting/remoting.gyp:remoting_apk_manifest',
'../remoting/remoting.gyp:remoting_client_jni',
'../remoting/remoting.gyp:remoting_jni_headers',
'../remoting/remoting.gyp:remoting_test_apk',
'../remoting/remoting.gyp:remoting_unittests_apk',
'../remoting/remoting.gyp:*',
'../remoting/app_remoting_webapp.gyp:*',
],
}],
['enable_remoting_host==1', {
'dependencies': [
'../remoting/remoting.gyp:remoting_infoplist_strings',
'../remoting/remoting.gyp:remoting_it2me_host_static',
'../remoting/remoting.gyp:remoting_it2me_native_messaging_host',
'../remoting/remoting.gyp:remoting_host',
'../remoting/remoting.gyp:remoting_host_setup_base',
'../remoting/remoting.gyp:remoting_native_messaging_base',
'../remoting/remoting.gyp:remoting_native_messaging_manifests',
'../remoting/remoting.gyp:remoting_perftests',
'../remoting/remoting.gyp:remoting_start_host',
],
}],
['enable_me2me_host==1', {
'dependencies': [
'../remoting/remoting.gyp:remoting_me2me_host',
'../remoting/remoting.gyp:remoting_me2me_host_archive',
'../remoting/remoting.gyp:remoting_me2me_host_static',
'../remoting/remoting.gyp:remoting_me2me_native_messaging_host',
],
}],
],
}, # end of target 'remoting_all'
], # end of targets
}
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'enable_remoting_host%': 0,
'enable_me2me_host%': 0,
'conditions': [
['OS=="win" or OS=="mac"', {
'enable_remoting_host': 1,
'enable_me2me_host': 1,
}],
['OS=="linux" and chromeos==0 and use_x11==1', {
'enable_remoting_host': 1,
'enable_me2me_host': 1,
}],
['OS=="linux" and chromeos==1', {
'enable_remoting_host': 1,
}],
], # end of conditions
}, # end of variables
}
......@@ -4,26 +4,32 @@
{
'includes': [
'remoting_enable.gypi',
'remoting_host_linux.gypi',
'remoting_host_mac.gypi',
'remoting_host_win.gypi',
],
'variables': {
'conditions': [
['OS=="mac"', {
'includes': [
'remoting_host_mac.gypi',
],
# 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,
}],
['OS=="win"', {
'includes': [
'remoting_host_win.gypi',
],
['chromeos==1', {
'enable_remoting_host': 1,
'enable_me2me_host': 0,
'enable_it2me_host': 1,
}],
['OS=="linux"', {
'includes': [
'remoting_host_linux.gypi',
],
}],
},
'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'
......@@ -450,6 +434,33 @@
] # 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,9 +642,7 @@
], # targets
}], # end of OS!="win" and enable_me2me_host==1
['OS!="win" and enable_remoting_host==1', {
'conditions': [
['chromeos==0', {
['OS!="win" and enable_it2me_host==1 and chromeos==0', {
'targets': [
{
'target_name': 'remoting_it2me_native_messaging_host',
......@@ -727,19 +736,10 @@
}], # 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 'targets'
}], # # end of OS!="win" and enable_it2me_host==1
], # end of 'conditions'
}
......@@ -3,6 +3,8 @@
# found in the LICENSE file.
{
'conditions': [
['OS=="linux" and ( (branding=="Chrome" and enable_remoting_host==1 and chromeos==0) or (archive_chromoting_tests==1) )', {
'variables': {
'build_deb_script': 'host/installer/linux/build-deb.sh',
'deb_filename': 'host/installer/<!(["<(build_deb_script)", "-p", "-s", "<(DEPTH)"])',
......@@ -15,10 +17,6 @@
'<(PRODUCT_DIR)/remote_assistance_host.debug',
]
},
'conditions': [
['(branding=="Chrome" and enable_remoting_host==1 and chromeos==0) or (archive_chromoting_tests==1)', {
'targets': [
{
# Store the installer package(s) into a zip file so there is a
......@@ -42,7 +40,8 @@
'action': [ 'zip', '-j', '-0', '<@(_outputs)', '<@(_inputs)' ],
},
],
}, {
},
{
'target_name': 'remoting_me2me_host_deb_installer',
'type': 'none',
'dependencies': [
......@@ -76,18 +75,10 @@
},
],
},
], # end of 'targets'
}, {
# Dummy targets.
'targets': [
{
'target_name': 'remoting_me2me_host_archive',
'type': 'none',
},
], # end of 'targets'
}], # branding=="Chrome"
],
}], # OS=="linux" and branding=="Chrome"
['enable_remoting_host==1', {
['OS=="linux" and enable_remoting_host==1', {
'targets': [
# Linux breakpad processing
# The following target is disabled temporarily because it was failing
......@@ -126,7 +117,7 @@
# ], # end of 'conditions'
# }, # end of target 'remoting_linux_symbols'
], # end of 'targets'
}], # 'enable_remoting_host==1'
}], # 'OS=="linux"'
], # end of 'conditions'
}
......@@ -25,6 +25,8 @@
],
},
'conditions': [
['OS=="mac"', {
'targets': [
{
'target_name': 'remoting_host_uninstaller',
......@@ -253,5 +255,7 @@
], # conditions
}, # end of target 'remoting_host_prefpane'
], # end of 'targets'
}], # 'OS=="mac"'
], # end of 'conditions'
}
......@@ -11,8 +11,10 @@
'host/installer/win/chromoting.wxs',
'host/installer/win/parameters.json',
],
}, # end of 'variables'
},
'conditions': [
['OS=="win"', {
'targets': [
{
'target_name': 'remoting_breakpad_tester',
......@@ -476,13 +478,13 @@
],
}, # end of target 'remoting_windows_resources'
], # end of 'targets'
}], # 'OS=="win"'
'conditions': [
# The host installation is generated only if WiX is available. If
# component build is used the produced installation will not work due to
# missing DLLs. We build it anyway to make sure the GYP scripts are executed
# by the bots.
['wix_exists == "True" and sas_dll_exists == "True"', {
['OS == "win" and wix_exists == "True" and sas_dll_exists == "True"', {
'targets': [
{
'target_name': 'remoting_host_installation',
......@@ -613,20 +615,7 @@
], # actions
}, # end of target 'remoting_me2me_host_archive'
], # end of 'targets'
}, {
# Dummy targets for when Wix is not available.
'targets': [
{
'target_name': 'remoting_host_installation',
'type': 'none',
},
{
'target_name': 'remoting_me2me_host_archive',
'type': 'none',
},
], # end of 'targets'
}], # 'wix_exists == "True" and sas_dll_exists == "True"'
}], # '<(wix_path) != ""'
], # end of 'conditions'
}
......@@ -265,7 +265,6 @@
'dependencies!': [
'remoting_host',
'remoting_host_setup_base',
'remoting_it2me_host_static',
'remoting_native_messaging_base',
],
'sources/': [
......@@ -274,6 +273,14 @@
['exclude', '^base/resources_unittest\\.cc$'],
]
}],
['enable_it2me_host == 0', {
'dependencies!': [
'remoting_it2me_host_static',
],
'sources/': [
['exclude', '^host/it2me/'],
]
}],
[ 'OS == "linux" and use_allocator!="none"', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
......@@ -292,7 +299,7 @@
'<@(remoting_webapp_js_browser_test_files)',
],
},
], # end of copies
], #end of copies
}, # end of target 'remoting_browser_test_resources'
{
'target_name': 'remoting_webapp_unittest',
......@@ -366,7 +373,7 @@
],
},
],
}, # end of target 'remoting_webapp_unittest'
}, # end of target 'remoting_webapp_js_unittest'
], # end of targets
'conditions': [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment