Home | History | Annotate | Download | only in platform
      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.
      4 
      5 import("//build/config/ui.gni")
      6 
      7 component("platform") {
      8   sources = [
      9     "platform_event_dispatcher.h",
     10     "platform_event_observer.h",
     11     "platform_event_source.cc",
     12     "platform_event_source.h",
     13     "platform_event_source_stub.cc",
     14     "platform_event_types.h",
     15     "scoped_event_dispatcher.cc",
     16     "scoped_event_dispatcher.h",
     17   ]
     18 
     19   defines = [
     20     "EVENTS_IMPLEMENTATION",
     21   ]
     22 
     23   deps = [
     24     "//base"
     25   ]
     26 
     27   if (use_x11) {
     28     sources -= [
     29       "platform_event_source_stub.cc",
     30     ]
     31   }
     32 }
     33