summaryrefslogtreecommitdiffstats
path: root/remoting/remoting_host.gypi
diff options
context:
space:
mode:
authorjrw <jrw@chromium.org>2015-07-16 19:52:39 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-17 02:53:09 +0000
commit5b3e1c46c4c325dfd84b236bb316e37bafdd0120 (patch)
tree867513e244566e55955b49395f8a5036dcf95baa /remoting/remoting_host.gypi
parent842c8f9ecb6fd5faf0bdfd7690d94e7d41188c57 (diff)
downloadchromium_src-5b3e1c46c4c325dfd84b236bb316e37bafdd0120.zip
chromium_src-5b3e1c46c4c325dfd84b236bb316e37bafdd0120.tar.gz
chromium_src-5b3e1c46c4c325dfd84b236bb316e37bafdd0120.tar.bz2
Added compile-time switch to enable GCD in host.
With this change, the decision to use GCD or the legacy registry is made entirely at compile time by setting the value of |remoting_use_gcd| in gyp. This change is in preparation for a future change that will allow a host to determine at runtime, based on a GCD query, whether or not it is registered with GCD (as opposed to the legacy registry). At that point, the compile-time switch will determine whether or not the host attempts to connect to GCD before using the legacy registry as a fallback. BUG=503804 Review URL: https://codereview.chromium.org/1215173002 Cr-Commit-Position: refs/heads/master@{#339206}
Diffstat (limited to 'remoting/remoting_host.gypi')
-rw-r--r--remoting/remoting_host.gypi10
1 files changed, 10 insertions, 0 deletions
diff --git a/remoting/remoting_host.gypi b/remoting/remoting_host.gypi
index ded5f03..39aa213 100644
--- a/remoting/remoting_host.gypi
+++ b/remoting/remoting_host.gypi
@@ -187,6 +187,11 @@
'<@(remoting_cast_sources)',
],
}],
+ ['remoting_use_gcd==1', {
+ 'defines': [
+ 'USE_GCD',
+ ]
+ }],
],
}, # end of target 'remoting_host'
@@ -447,6 +452,11 @@
'USE_REMOTING_MACOSX_INTERNAL'
],
}],
+ ['remoting_use_gcd==1', {
+ 'defines': [
+ 'USE_GCD',
+ ]
+ }],
], # end of 'conditions'
}, # end of target 'remoting_me2me_host_static'
] # end of targets