Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / cc / surfaces / BUILD.gn
blobe43d4e5741f1af1df497f0a716a42a5f53279cd6
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 source_set("surface_id") {
6   sources = [
7     "surface_id.h",
8   ]
10   deps = [
11     "//base",
12   ]
15 component("surfaces") {
16   output_name = "cc_surfaces"
17   sources = [
18     "display.cc",
19     "display.h",
20     "display_client.h",
21     "onscreen_display_client.cc",
22     "onscreen_display_client.h",
23     "surface.cc",
24     "surface.h",
25     "surface_aggregator.cc",
26     "surface_aggregator.h",
27     "surface_display_output_surface.cc",
28     "surface_display_output_surface.h",
29     "surface_factory.cc",
30     "surface_factory.h",
31     "surface_factory_client.h",
32     "surface_id_allocator.cc",
33     "surface_id_allocator.h",
34     "surface_manager.cc",
35     "surface_manager.h",
36     "surface_resource_holder.cc",
37     "surface_resource_holder.h",
38     "surfaces_export.h",
39   ]
41   defines = [ "CC_SURFACES_IMPLEMENTATION=1" ]
43   deps = [
44     ":surface_id",
45     "//base",
46     "//base/third_party/dynamic_annotations",
47     "//cc",
48     "//skia",
49     "//ui/events:events_base",
50     "//ui/gfx",
51     "//ui/gfx/geometry",
52   ]
54   if (is_android && !is_debug) {
55     configs -= [ "//build/config/compiler:optimize" ]
56     configs += [ "//build/config/compiler:optimize_max" ]
57   }