[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 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 | |
Daniel Bratell | b2123d4 | 2017-12-04 11:59:51 | [diff] [blame] | 5 | import("//build/config/jumbo.gni") |
[email protected] | 22fe91d | 2014-08-12 17:07:12 | [diff] [blame] | 6 | import("//build/config/ui.gni") |
qyearsley | db0a3487 | 2017-03-14 03:24:31 | [diff] [blame] | 7 | import("//gpu/vulkan/features.gni") |
xhwang | fb22df1 | 2015-10-13 23:13:46 | [diff] [blame] | 8 | import("//media/media_options.gni") |
kylechar | 47699347 | 2016-09-14 16:03:48 | [diff] [blame] | 9 | import("//ui/ozone/ozone.gni") |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 10 | |
sammc | d06e3fc | 2015-04-28 00:14:54 | [diff] [blame] | 11 | # See //content/BUILD.gn for how this works. |
| 12 | group("gpu") { |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 13 | visibility = [ "//content/*" ] # This is an internal content API. |
sammc | d06e3fc | 2015-04-28 00:14:54 | [diff] [blame] | 14 | |
| 15 | if (is_component_build) { |
| 16 | public_deps = [ |
| 17 | "//content", |
| 18 | ] |
| 19 | } else { |
| 20 | public_deps = [ |
| 21 | ":gpu_sources", |
| 22 | ] |
| 23 | } |
| 24 | } |
| 25 | |
brucedawson | 6e53a2e1 | 2016-07-23 19:35:47 | [diff] [blame] | 26 | if (is_component_build) { |
Daniel Bratell | b2123d4 | 2017-12-04 11:59:51 | [diff] [blame] | 27 | link_target_type = "jumbo_source_set" |
brucedawson | 6e53a2e1 | 2016-07-23 19:35:47 | [diff] [blame] | 28 | } else { |
Daniel Bratell | b2123d4 | 2017-12-04 11:59:51 | [diff] [blame] | 29 | link_target_type = "jumbo_static_library" |
brucedawson | 6e53a2e1 | 2016-07-23 19:35:47 | [diff] [blame] | 30 | } |
Tom Sepez | 085507ab | 2017-10-18 22:36:00 | [diff] [blame] | 31 | |
brucedawson | 6e53a2e1 | 2016-07-23 19:35:47 | [diff] [blame] | 32 | target(link_target_type, "gpu_sources") { |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 33 | # 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 Wilson | 8f132304 | 2014-09-11 16:58:56 | [diff] [blame] | 35 | visibility = [ "//content/*" ] |
[email protected] | 6294f0d | 2014-08-20 17:43:09 | [diff] [blame] | 36 | |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 37 | sources = [ |
satorux | 7fa9d30 | 2015-02-16 00:44:52 | [diff] [blame] | 38 | "gpu_child_thread.cc", |
| 39 | "gpu_child_thread.h", |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 40 | "gpu_main.cc", |
| 41 | "gpu_process.cc", |
| 42 | "gpu_process.h", |
Tom Sepez | 085507ab | 2017-10-18 22:36:00 | [diff] [blame] | 43 | "gpu_sandbox_hook_linux.cc", |
| 44 | "gpu_sandbox_hook_linux.h", |
ben | 507aa81 | 2016-08-10 23:26:19 | [diff] [blame] | 45 | "gpu_service_factory.cc", |
| 46 | "gpu_service_factory.h", |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 47 | "in_process_gpu_thread.cc", |
| 48 | "in_process_gpu_thread.h", |
| 49 | ] |
| 50 | |
ben | 02a3777 | 2015-11-19 04:37:05 | [diff] [blame] | 51 | configs += [ "//content:content_implementation" ] |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 52 | |
| 53 | deps = [ |
| 54 | "//base", |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] |
|