| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 } | 155 } |
| 156 | 156 |
| 157 if (ozone_platform_gbm) { | 157 if (ozone_platform_gbm) { |
| 158 pkg_config("libgbm") { | 158 pkg_config("libgbm") { |
| 159 packages = [ "gbm" ] | 159 packages = [ "gbm" ] |
| 160 } | 160 } |
| 161 | 161 |
| 162 source_set("gbm") { | 162 source_set("gbm") { |
| 163 sources = [ | 163 sources = [ |
| 164 "common/native_pixmap_manager_gbm.cc", |
| 165 "common/native_pixmap_manager_gbm.h", |
| 164 "gpu/gbm_buffer.cc", | 166 "gpu/gbm_buffer.cc", |
| 165 "gpu/gbm_buffer.h", | 167 "gpu/gbm_buffer.h", |
| 166 "gpu/gbm_buffer_base.cc", | 168 "gpu/gbm_buffer_base.cc", |
| 167 "gpu/gbm_buffer_base.h", | 169 "gpu/gbm_buffer_base.h", |
| 168 "gpu/gbm_device.cc", | 170 "gpu/gbm_device.cc", |
| 169 "gpu/gbm_device.h", | 171 "gpu/gbm_device.h", |
| 170 "gpu/gbm_surface.cc", | 172 "gpu/gbm_surface.cc", |
| 171 "gpu/gbm_surface.h", | 173 "gpu/gbm_surface.h", |
| 172 "gpu/gbm_surface_factory.cc", | 174 "gpu/gbm_surface_factory.cc", |
| 173 "gpu/gbm_surface_factory.h", | 175 "gpu/gbm_surface_factory.h", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 188 public_configs = [ | 190 public_configs = [ |
| 189 ":libgbm", | 191 ":libgbm", |
| 190 "//third_party/khronos:khronos_headers", | 192 "//third_party/khronos:khronos_headers", |
| 191 ] | 193 ] |
| 192 | 194 |
| 193 if (use_mesa_platform_null) { | 195 if (use_mesa_platform_null) { |
| 194 defines += [ "USE_MESA_PLATFORM_NULL" ] | 196 defines += [ "USE_MESA_PLATFORM_NULL" ] |
| 195 } | 197 } |
| 196 } | 198 } |
| 197 } | 199 } |
| OLD | NEW |