blob: ee4cb1555865a14ceb55d45431b5b17a030bb187 [file] [log] [blame]
[email protected]dab154ee2014-06-13 23:48:501# 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
Daniel Bratellb2123d42017-12-04 11:59:515import("//build/config/jumbo.gni")
[email protected]22fe91d2014-08-12 17:07:126import("//build/config/ui.gni")
qyearsleydb0a34872017-03-14 03:24:317import("//gpu/vulkan/features.gni")
xhwangfb22df12015-10-13 23:13:468import("//media/media_options.gni")
kylechar476993472016-09-14 16:03:489import("//ui/ozone/ozone.gni")
[email protected]dab154ee2014-06-13 23:48:5010
sammcd06e3fc2015-04-28 00:14:5411# See //content/BUILD.gn for how this works.
12group("gpu") {
brettwb78fc9e2016-03-25 21:02:5113 visibility = [ "//content/*" ] # This is an internal content API.
sammcd06e3fc2015-04-28 00:14:5414
15 if (is_component_build) {
16 public_deps = [
17 "//content",
18 ]
19 } else {
20 public_deps = [
21 ":gpu_sources",
22 ]
23 }
24}
25
brucedawson6e53a2e12016-07-23 19:35:4726if (is_component_build) {
Daniel Bratellb2123d42017-12-04 11:59:5127 link_target_type = "jumbo_source_set"
brucedawson6e53a2e12016-07-23 19:35:4728} else {
Daniel Bratellb2123d42017-12-04 11:59:5129 link_target_type = "jumbo_static_library"
brucedawson6e53a2e12016-07-23 19:35:4730}
Tom Sepez085507ab2017-10-18 22:36:0031
brucedawson6e53a2e12016-07-23 19:35:4732target(link_target_type, "gpu_sources") {
brettwb78fc9e2016-03-25 21:02:5133 # This is an internal content API. Code outside of the content "component"
34 # (like content/test and content/shell) should depend on ":gpu" above.
Brett Wilson8f1323042014-09-11 16:58:5635 visibility = [ "//content/*" ]
[email protected]6294f0d2014-08-20 17:43:0936
[email protected]dab154ee2014-06-13 23:48:5037 sources = [
satorux7fa9d302015-02-16 00:44:5238 "gpu_child_thread.cc",
39 "gpu_child_thread.h",
[email protected]dab154ee2014-06-13 23:48:5040 "gpu_main.cc",
41 "gpu_process.cc",
42 "gpu_process.h",
Tom Sepez085507ab2017-10-18 22:36:0043 "gpu_sandbox_hook_linux.cc",
44 "gpu_sandbox_hook_linux.h",
ben507aa812016-08-10 23:26:1945 "gpu_service_factory.cc",
46 "gpu_service_factory.h",
[email protected]dab154ee2014-06-13 23:48:5047 "in_process_gpu_thread.cc",
48 "in_process_gpu_thread.h",
49 ]
50
ben02a37772015-11-19 04:37:0551 configs += [ "//content:content_implementation" ]
[email protected]dab154ee2014-06-13 23:48:5052
53 deps = [
54 "//base",
brettwb78fc9e2016-03-25 21:02:51