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 # We don't support x64 prior to Win7 and D3DCompiler_43.dll is not needed on
10 need_d3dcompiler = (is_win && cpu_arch == "x86" && directxsdk_exists)
13 visibility = "//content/*"
18 "gpu_child_thread.cc",
20 "gpu_watchdog_thread.cc",
21 "gpu_watchdog_thread.h",
22 "in_process_gpu_thread.cc",
23 "in_process_gpu_thread.h",
26 configs += [ "//content:content_implementation" ]
31 "//mojo/public/interfaces/application",
38 "//third_party/khronos:khronos_headers",
39 "//third_party/wtl:wtl_includes",
41 libs = [ "setupapi.lib" ]
43 "//third_party/angle:libEGL",
44 "//third_party/angle:libGLESv2",
48 if (need_d3dcompiler) {
49 deps += [ ":extract_d3dcompiler" ]
52 if (is_chromeos && cpu_arch != "arm") {
53 configs += [ "//third_party/libva/libva_config" ]
57 deps += [ "//ui/events/platform/x11" ]
61 if (need_d3dcompiler) {
62 action("extract_d3dcompiler") {
64 script = "//build/extract_from_cab.py"
66 cabfile = "//third_party/directxsdk/files/Redist/Jun2010_D3DCompiler_43_x86.cab"
67 dllfile = "D3DCompiler_43.dll"
70 outputs = [ "$root_out_dir/$dllfile" ]
73 rebase_path(cabfile, root_build_dir),
75 rebase_path(root_out_dir, root_build_dir),