Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / gpu / BUILD.gn
blobeaa2b8e409f52fed0e2132a681dcbb3b592409fc
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")
6 import("//content/content.gni")
8 source_set("gpu") {
9   # TODO(brettw) it seems like this should be only visible to content like
10   # the other non-public content directories are. But this is depended on by
11   # the chrome target.
13   sources = [
14     "gpu_main.cc",
15     "gpu_process.cc",
16     "gpu_process.h",
17     "gpu_child_thread.cc",
18     "gpu_child_thread.h",
19     "gpu_watchdog_thread.cc",
20     "gpu_watchdog_thread.h",
21     "in_process_gpu_thread.cc",
22     "in_process_gpu_thread.h",
23   ]
25   configs += [ "//content:content_implementation" ]
27   deps = [
28     "//base",
29     "//content:export",
30     "//mojo/public/interfaces/application",
31     "//skia",
32     "//ui/gl",
33   ]
35   if (is_win) {
36     configs += [
37       "//third_party/khronos:khronos_headers",
38       "//third_party/wtl:wtl_includes",
39     ]
40     libs = [ "setupapi.lib" ]
41     deps += [
42       "//third_party/angle:libEGL",
43       "//third_party/angle:libGLESv2",
44     ]
45   }
47   if (is_chromeos && cpu_arch != "arm") {
48     configs += [ "//third_party/libva/libva_config" ]
49   }
51   if (use_x11) {
52     deps += [ "//ui/events/platform/x11" ]
53   }