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 import("//ui/ozone/ozone.gni") |
7 | 8 |
8 # See //content/BUILD.gn for how this works. | 9 # See //content/BUILD.gn for how this works. |
9 group("gpu") { | 10 group("gpu") { |
10 visibility = [ "//content/*" ] # This is an internal content API. | 11 visibility = [ "//content/*" ] # This is an internal content API. |
11 | 12 |
12 if (is_component_build) { | 13 if (is_component_build) { |
13 public_deps = [ | 14 public_deps = [ |
14 "//content", | 15 "//content", |
15 ] | 16 ] |
16 } else { | 17 } else { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 if (is_chromeos && current_cpu != "arm") { | 94 if (is_chromeos && current_cpu != "arm") { |
94 configs += [ "//third_party/libva:libva_config" ] | 95 configs += [ "//third_party/libva:libva_config" ] |
95 } | 96 } |
96 | 97 |
97 if (use_x11) { | 98 if (use_x11) { |
98 deps += [ "//ui/events/platform/x11" ] | 99 deps += [ "//ui/events/platform/x11" ] |
99 } | 100 } |
100 | 101 |
101 if (use_ozone) { | 102 if (use_ozone) { |
102 deps += [ "//ui/ozone" ] | 103 deps += [ "//ui/ozone" ] |
| 104 |
| 105 if (ozone_platform_x11) { |
| 106 defines = [ "OZONE_X11" ] |
| 107 } |
103 } | 108 } |
104 | 109 |
105 if (enable_vulkan) { | 110 if (enable_vulkan) { |
106 deps += [ "//gpu/vulkan" ] | 111 deps += [ "//gpu/vulkan" ] |
107 } | 112 } |
108 } | 113 } |
OLD | NEW |