Fix content verifier problem with content scripts (reland)
[chromium-blink-merge.git] / ui / surface / BUILD.gn
blob96130c44d8e67ac6614858b2396114c54c46d5db
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("surface") {
8   sources = [
9     "accelerated_surface_mac.cc",
10     "accelerated_surface_mac.h",
11     "surface_export.h",
12     "transport_dib.cc",
13     "transport_dib.h",
14     "transport_dib_posix.cc",
15     "transport_dib_win.cc",
16   ]
18   configs += [ "//third_party/khronos:khronos_headers" ]
20   defines = [ "SURFACE_IMPLEMENTATION" ]
22   deps = [
23     "//base",
24     "//base/third_party/dynamic_annotations",
25     "//skia",
26     "//ui/base",
27     "//ui/gfx/geometry",
28     "//ui/gl",
29   ]
31   if (is_mac) {
32     # Required by accelerated_surface_mac.cc.
33     libs = [
34       "IOSurface.framework",
35       "OpenGL.framework",
36     ]
37   }