summaryrefslogtreecommitdiffstats
path: root/components/handoff/BUILD.gn
diff options
context:
space:
mode:
authorerikchen <erikchen@chromium.org>2014-11-14 11:59:52 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-14 20:01:08 +0000
commit332265bced283912feef60dc75afd99ec59f8f9b (patch)
treec399b581823dc23b4f340022aaae98e1d5ad9595 /components/handoff/BUILD.gn
parentc96249700a14152ef3bf4d73c961300159d6cb41 (diff)
downloadchromium_src-332265bced283912feef60dc75afd99ec59f8f9b.zip
chromium_src-332265bced283912feef60dc75afd99ec59f8f9b.tar.gz
chromium_src-332265bced283912feef60dc75afd99ec59f8f9b.tar.bz2
Create a new component "handoff" to be shared between Mac and iOS.
The files handoff_utility.{h,mm} were moved from chrome/browser/mac/ to components/handoff/, but were not otherwise changed. In an attempt to reduce duplicated conditionals in build files, I introduced the platform conditionals into the gyp/GN files for the handoff component, and then included the component on all platforms. BUG=380419 Review URL: https://codereview.chromium.org/709123003 Cr-Commit-Position: refs/heads/master@{#304257}
Diffstat (limited to 'components/handoff/BUILD.gn')
-rw-r--r--components/handoff/BUILD.gn12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/handoff/BUILD.gn b/components/handoff/BUILD.gn
new file mode 100644
index 0000000..bc427d9
--- /dev/null
+++ b/components/handoff/BUILD.gn
@@ -0,0 +1,12 @@
+# Copyright 2014 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.
+
+source_set("handoff") {
+ if (is_mac || is_ios) {
+ sources += [
+ "handoff_utility.h",
+ "handoff_utility.mm",
+ ]
+ }
+}