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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# 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")
import("//content/content.gni")
import("//media/media_options.gni")
# See //content/BUILD.gn for how this works.
group("gpu") {
visibility = [ "//content/*" ]
if (is_component_build) {
public_deps = [
"//content",
]
} else {
public_deps = [
":gpu_sources",
]
}
}
source_set("gpu_sources") {
visibility = [ "//content/*" ]
sources = [
"gpu_child_thread.cc",
"gpu_child_thread.h",
"gpu_main.cc",
"gpu_process.cc",
"gpu_process.h",
"gpu_process_control_impl.cc",
"gpu_process_control_impl.h",
"gpu_watchdog_thread.cc",
"gpu_watchdog_thread.h",
"in_process_gpu_thread.cc",
"in_process_gpu_thread.h",
]
configs += [ "//content:content_implementation" ]
deps = [
"//base",
"//content:export",
"//content/public/child:child_sources",
"//content/public/common:common_sources",
"//gpu:gpu",
"//gpu/ipc/common:command_buffer_traits",
"//ipc",
"//mojo/shell/public/interfaces",
"//skia",
"//ui/gl",
]
public_deps = [
"//content/common:mojo_bindings",
]
if (mojo_media_host == "gpu") {
deps += [ "//media/mojo/services:application_factory" ]
}
if (is_win) {
configs += [
"//third_party/khronos:khronos_headers",
"//third_party/wtl:wtl_includes",
]
libs = [ "setupapi.lib" ]
deps += [
"//third_party/angle:libEGL",
"//third_party/angle:libGLESv2",
]
}
if (is_chromeos && current_cpu != "arm") {
configs += [ "//third_party/libva:libva_config" ]
}
if (use_x11) {
deps += [ "//ui/events/platform/x11" ]
}
if (enable_vulkan) {
deps += [ "//gpu/vulkan" ]
}
}
|