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/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
6 import("//ui/ozone/ozone.gni") | 6 import("//ui/ozone/ozone.gni") |
7 | 7 |
8 declare_args() { | 8 declare_args() { |
9 use_mesa_platform_null = false | 9 use_mesa_platform_null = false |
10 use_drm_atomic = false | 10 use_drm_atomic = false |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 if (ozone_platform_gbm) { | 151 if (ozone_platform_gbm) { |
152 pkg_config("libgbm") { | 152 pkg_config("libgbm") { |
153 packages = [ "gbm" ] | 153 packages = [ "gbm" ] |
154 } | 154 } |
155 | 155 |
156 source_set("gbm") { | 156 source_set("gbm") { |
157 sources = [ | 157 sources = [ |
| 158 "gbm_surface_client_factory.cc", |
| 159 "gbm_surface_client_factory.h", |
158 "gbm_surface_factory.cc", | 160 "gbm_surface_factory.cc", |
159 "gbm_surface_factory.h", | 161 "gbm_surface_factory.h", |
160 "gpu/gbm_buffer.cc", | 162 "gpu/gbm_buffer.cc", |
161 "gpu/gbm_buffer.h", | 163 "gpu/gbm_buffer.h", |
162 "gpu/gbm_buffer_base.cc", | 164 "gpu/gbm_buffer_base.cc", |
163 "gpu/gbm_buffer_base.h", | 165 "gpu/gbm_buffer_base.h", |
164 "gpu/gbm_device.cc", | 166 "gpu/gbm_device.cc", |
165 "gpu/gbm_device.h", | 167 "gpu/gbm_device.h", |
166 "gpu/gbm_surface.cc", | 168 "gpu/gbm_surface.cc", |
167 "gpu/gbm_surface.h", | 169 "gpu/gbm_surface.h", |
168 "gpu/gbm_surfaceless.cc", | 170 "gpu/gbm_surfaceless.cc", |
169 "gpu/gbm_surfaceless.h", | 171 "gpu/gbm_surfaceless.h", |
| 172 "ozone_client_gbm.cc", |
| 173 "ozone_client_gbm.h", |
170 "ozone_platform_gbm.cc", | 174 "ozone_platform_gbm.cc", |
171 "ozone_platform_gbm.h", | 175 "ozone_platform_gbm.h", |
172 ] | 176 ] |
173 | 177 |
174 deps = [ | 178 deps = [ |
175 ":drm_common", | 179 ":drm_common", |
176 "//base", | 180 "//base", |
177 "//skia", | 181 "//skia", |
178 "//ui/events/ozone:events_ozone_evdev", | 182 "//ui/events/ozone:events_ozone_evdev", |
179 "//ui/events/ozone:events_ozone_layout", | 183 "//ui/events/ozone:events_ozone_layout", |
180 ] | 184 ] |
181 | 185 |
182 public_configs = [ | 186 public_configs = [ |
183 ":libgbm", | 187 ":libgbm", |
184 "//third_party/khronos:khronos_headers", | 188 "//third_party/khronos:khronos_headers", |
185 ] | 189 ] |
186 | 190 |
187 if (use_mesa_platform_null) { | 191 if (use_mesa_platform_null) { |
188 defines += [ "USE_MESA_PLATFORM_NULL" ] | 192 defines += [ "USE_MESA_PLATFORM_NULL" ] |
189 } | 193 } |
190 } | 194 } |
191 } | 195 } |
OLD | NEW |