Home | History | Annotate | Download | only in gpu
      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 import("//content/content.gni")
      7 
      8 source_set("gpu") {
      9   visibility = [ "//content/*" ]
     10 
     11   sources = [
     12     "gpu_main.cc",
     13     "gpu_process.cc",
     14     "gpu_process.h",
     15     "gpu_child_thread.cc",
     16     "gpu_child_thread.h",
     17     "gpu_watchdog_thread.cc",
     18     "gpu_watchdog_thread.h",
     19     "in_process_gpu_thread.cc",
     20     "in_process_gpu_thread.h",
     21   ]
     22 
     23   configs += [ "//content:content_implementation" ]
     24 
     25   deps = [
     26     "//base",
     27     "//content:export",
     28     "//mojo/public/interfaces/application",
     29     "//skia",
     30     "//ui/gl",
     31   ]
     32 
     33   if (is_win) {
     34     configs += [
     35       "//third_party/khronos:khronos_headers",
     36       "//third_party/wtl:wtl_includes",
     37     ]
     38     libs = [ "setupapi.lib" ]
     39     deps += [
     40       "//third_party/angle:libEGL",
     41       "//third_party/angle:libGLESv2",
     42     ]
     43   }
     44 
     45   if (is_chromeos && cpu_arch != "arm") {
     46     configs += [ "//third_party/libva:libva_config" ]
     47   }
     48 
     49   if (use_x11) {
     50     deps += [ "//ui/events/platform/x11" ]
     51   }
     52 }
     53