| 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 if (is_component_build) { | 23 source_set("gpu_sources") { |
| 24 link_target_type = "source_set" | |
| 25 } else { | |
| 26 link_target_type = "static_library" | |
| 27 } | |
| 28 target(link_target_type, "gpu_sources") { | |
| 29 # This is an internal content API. Code outside of the content "component" | 24 # This is an internal content API. Code outside of the content "component" |
| 30 # (like content/test and content/shell) should depend on ":gpu" above. | 25 # (like content/test and content/shell) should depend on ":gpu" above. |
| 31 visibility = [ "//content/*" ] | 26 visibility = [ "//content/*" ] |
| 32 | 27 |
| 33 sources = [ | 28 sources = [ |
| 34 "gpu_child_thread.cc", | 29 "gpu_child_thread.cc", |
| 35 "gpu_child_thread.h", | 30 "gpu_child_thread.h", |
| 36 "gpu_main.cc", | 31 "gpu_main.cc", |
| 37 "gpu_process.cc", | 32 "gpu_process.cc", |
| 38 "gpu_process.h", | 33 "gpu_process.h", |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 96 } |
| 102 | 97 |
| 103 if (use_ozone) { | 98 if (use_ozone) { |
| 104 deps += [ "//ui/ozone" ] | 99 deps += [ "//ui/ozone" ] |
| 105 } | 100 } |
| 106 | 101 |
| 107 if (enable_vulkan) { | 102 if (enable_vulkan) { |
| 108 deps += [ "//gpu/vulkan" ] | 103 deps += [ "//gpu/vulkan" ] |
| 109 } | 104 } |
| 110 } | 105 } |
| OLD | NEW |