diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-06 17:55:22 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-06 17:55:22 +0000 |
commit | cfdfb15e535732776267075e35f0b44d51a751d5 (patch) | |
tree | 6544514b678cbd9c5eea64923e42527e0d2cdbd7 /ui/events | |
parent | d1d0d9e3685ca01cd34c119fc1f83e84fa5f2518 (diff) | |
download | chromium_src-cfdfb15e535732776267075e35f0b44d51a751d5.zip chromium_src-cfdfb15e535732776267075e35f0b44d51a751d5.tar.gz chromium_src-cfdfb15e535732776267075e35f0b44d51a751d5.tar.bz2 |
GN: ui/events/platform target from r270816
This adds the //ui/events/platform target and adds a dependency from //ui/gl
R=sadrul@chromium.org
Review URL: https://codereview.chromium.org/317823009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275474 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/events')
-rw-r--r-- | ui/events/BUILD.gn | 9 | ||||
-rw-r--r-- | ui/events/platform/BUILD.gn | 30 |
2 files changed, 31 insertions, 8 deletions
diff --git a/ui/events/BUILD.gn b/ui/events/BUILD.gn index 1aae11f..e2fe42b 100644 --- a/ui/events/BUILD.gn +++ b/ui/events/BUILD.gn @@ -44,6 +44,7 @@ component("events_base") { "//base", "//base/third_party/dynamic_annotations", "//skia", + "//ui/events/platform", "//ui/gfx", "//ui/gfx/geometry", ] @@ -110,14 +111,6 @@ component("events") { "gestures/gesture_types.h", "gestures/velocity_calculator.cc", "gestures/velocity_calculator.h", - "platform/platform_event_dispatcher.h", - "platform/platform_event_observer.h", - "platform/platform_event_source.cc", - "platform/platform_event_source.h", - "platform/platform_event_source_stub.cc", - "platform/platform_event_types.h", - "platform/scoped_event_dispatcher.cc", - "platform/scoped_event_dispatcher.h", "platform/x11/x11_event_source.cc", "platform/x11/x11_event_source.h", "win/events_win.cc", diff --git a/ui/events/platform/BUILD.gn b/ui/events/platform/BUILD.gn new file mode 100644 index 0000000..e842993 --- /dev/null +++ b/ui/events/platform/BUILD.gn @@ -0,0 +1,30 @@ +# 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. + +import("//build/config/ui.gni") + +component("platform") { + deps = [ + "//base" + ] + + defines = [ + "EVENTS_IMPLEMENTATION", + ] + + sources = [ + "platform_event_dispatcher.h", + "platform_event_observer.h", + "platform_event_source.cc", + "platform_event_source.h", + "platform_event_source_stub.cc", + "platform_event_types.h", + "scoped_event_dispatcher.cc", + "scoped_event_dispatcher.h", + ] + + if (use_x11) { + sources -= [ "platform_event_source_stub.cc" ] + } +} |