Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / events / platform / BUILD.gn
blobb9a977fefaf530c305c5fc412ff08d93874c9c9d
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
7 component("platform") {
8   sources = [
9     # Allow this target to include events_export.h without depending on the
10     # events target (which would be circular).
11     "../events_export.h",
12     "platform_event_dispatcher.h",
13     "platform_event_observer.h",
14     "platform_event_source.cc",
15     "platform_event_source.h",
16     "platform_event_source_stub.cc",
17     "platform_event_types.h",
18     "scoped_event_dispatcher.cc",
19     "scoped_event_dispatcher.h",
20   ]
22   defines = [ "EVENTS_IMPLEMENTATION" ]
24   deps = [
25     "//base",
26   ]
28   if (use_x11) {
29     sources -= [ "platform_event_source_stub.cc" ]
30   }