summaryrefslogtreecommitdiffstats
path: root/ui/surface/BUILD.gn
blob: 96130c44d8e67ac6614858b2396114c54c46d5db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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("surface") {
  sources = [
    "accelerated_surface_mac.cc",
    "accelerated_surface_mac.h",
    "surface_export.h",
    "transport_dib.cc",
    "transport_dib.h",
    "transport_dib_posix.cc",
    "transport_dib_win.cc",
  ]

  configs += [ "//third_party/khronos:khronos_headers" ]

  defines = [ "SURFACE_IMPLEMENTATION" ]

  deps = [
    "//base",
    "//base/third_party/dynamic_annotations",
    "//skia",
    "//ui/base",
    "//ui/gfx/geometry",
    "//ui/gl",
  ]

  if (is_mac) {
    # Required by accelerated_surface_mac.cc.
    libs = [
      "IOSurface.framework",
      "OpenGL.framework",
    ]
  }
}