OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//media/media_options.gni") | 6 import("//media/media_options.gni") |
7 | 7 |
8 # See //content/BUILD.gn for how this works. | 8 # See //content/BUILD.gn for how this works. |
9 group("gpu") { | 9 group("gpu") { |
10 visibility = [ "//content/*" ] # This is an internal content API. | 10 visibility = [ "//content/*" ] # This is an internal content API. |
11 | 11 |
12 if (is_component_build) { | 12 if (is_component_build) { |
13 public_deps = [ | 13 public_deps = [ |
14 "//content", | 14 "//content", |
15 ] | 15 ] |
16 } else { | 16 } else { |
17 public_deps = [ | 17 public_deps = [ |
18 ":gpu_sources", | 18 ":gpu_sources", |
19 ] | 19 ] |
20 } | 20 } |
21 } | 21 } |
22 | 22 |
23 source_set("gpu_sources") { | 23 if (is_component_build) { |
| 24 link_target_type = "source_set" |
| 25 } else { |
| 26 link_target_type = "static_library" |
| 27 } |
| 28 target(link_target_type, "gpu_sources") { |
24 # This is an internal content API. Code outside of the content "component" | 29 # This is an internal content API. Code outside of the content "component" |
25 # (like content/test and content/shell) should depend on ":gpu" above. | 30 # (like content/test and content/shell) should depend on ":gpu" above. |
26 visibility = [ "//content/*" ] | 31 visibility = [ "//content/*" ] |
27 | 32 |
28 sources = [ | 33 sources = [ |
29 "gpu_child_thread.cc", | 34 "gpu_child_thread.cc", |
30 "gpu_child_thread.h", | 35 "gpu_child_thread.h", |
31 "gpu_main.cc", | 36 "gpu_main.cc", |
32 "gpu_process.cc", | 37 "gpu_process.cc", |
33 "gpu_process.h", | 38 "gpu_process.h", |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 101 } |
97 | 102 |
98 if (use_ozone) { | 103 if (use_ozone) { |
99 deps += [ "//ui/ozone" ] | 104 deps += [ "//ui/ozone" ] |
100 } | 105 } |
101 | 106 |
102 if (enable_vulkan) { | 107 if (enable_vulkan) { |
103 deps += [ "//gpu/vulkan" ] | 108 deps += [ "//gpu/vulkan" ] |
104 } | 109 } |
105 } | 110 } |
OLD | NEW |