Chromium Code Reviews| 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 |
| 11 ozone_use_vgem_map = false | |
| 11 } | 12 } |
| 12 | 13 |
| 13 pkg_config("libdrm") { | 14 pkg_config("libdrm") { |
| 14 packages = [ "libdrm" ] | 15 packages = [ "libdrm" ] |
| 15 } | 16 } |
| 16 | 17 |
| 17 source_set("drm_common") { | 18 source_set("drm_common") { |
| 18 sources = [ | 19 sources = [ |
| 19 "common/client_native_pixmap_factory_drm.cc", | 20 "common/client_native_pixmap_factory_drm.cc", |
| 20 "common/client_native_pixmap_factory_drm.h", | 21 "common/client_native_pixmap_factory_drm.h", |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 158 | 159 |
| 159 if (ozone_platform_gbm) { | 160 if (ozone_platform_gbm) { |
| 160 pkg_config("libgbm") { | 161 pkg_config("libgbm") { |
| 161 packages = [ "gbm" ] | 162 packages = [ "gbm" ] |
| 162 } | 163 } |
| 163 | 164 |
| 164 source_set("gbm") { | 165 source_set("gbm") { |
| 165 sources = [ | 166 sources = [ |
| 166 "common/client_native_pixmap_factory_gbm.cc", | 167 "common/client_native_pixmap_factory_gbm.cc", |
| 167 "common/client_native_pixmap_factory_gbm.h", | 168 "common/client_native_pixmap_factory_gbm.h", |
| 169 "gpu/client_native_pixmap_vgem.cc", | |
| 170 "gpu/client_native_pixmap_vgem.h", | |
| 168 "gpu/gbm_buffer.cc", | 171 "gpu/gbm_buffer.cc", |
| 169 "gpu/gbm_buffer.h", | 172 "gpu/gbm_buffer.h", |
| 170 "gpu/gbm_buffer_base.cc", | 173 "gpu/gbm_buffer_base.cc", |
| 171 "gpu/gbm_buffer_base.h", | 174 "gpu/gbm_buffer_base.h", |
| 172 "gpu/gbm_device.cc", | 175 "gpu/gbm_device.cc", |
| 173 "gpu/gbm_device.h", | 176 "gpu/gbm_device.h", |
| 174 "gpu/gbm_surface.cc", | 177 "gpu/gbm_surface.cc", |
| 175 "gpu/gbm_surface.h", | 178 "gpu/gbm_surface.h", |
| 176 "gpu/gbm_surface_factory.cc", | 179 "gpu/gbm_surface_factory.cc", |
| 177 "gpu/gbm_surface_factory.h", | 180 "gpu/gbm_surface_factory.h", |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 190 ] | 193 ] |
| 191 | 194 |
| 192 public_configs = [ | 195 public_configs = [ |
| 193 ":libgbm", | 196 ":libgbm", |
| 194 "//third_party/khronos:khronos_headers", | 197 "//third_party/khronos:khronos_headers", |
| 195 ] | 198 ] |
| 196 | 199 |
| 197 if (use_mesa_platform_null) { | 200 if (use_mesa_platform_null) { |
| 198 defines += [ "USE_MESA_PLATFORM_NULL" ] | 201 defines += [ "USE_MESA_PLATFORM_NULL" ] |
| 199 } | 202 } |
| 203 | |
| 204 if (ozone_use_vgem_map) { | |
| 205 defines += [ "OZONE_USE_VGEM_MAP" ] | |
|
reveman
2015/08/06 12:08:35
why is this define needed?
dshwang
2015/08/06 13:59:17
upstream linux doesn't have vgem_drm.h, so only cr
| |
| 206 } | |
| 200 } | 207 } |
| 201 } | 208 } |
| OLD | NEW |