| 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 } | 11 } |
| 12 | 12 |
| 13 visibility = [ "//ui/ozone/*" ] | 13 visibility = [ "//ui/ozone/*" ] |
| 14 | 14 |
| 15 pkg_config("libdrm") { | 15 pkg_config("libdrm") { |
| 16 packages = [ "libdrm" ] | 16 packages = [ "libdrm" ] |
| 17 } | 17 } |
| 18 | 18 |
| 19 config("drm_atomic") { | 19 config("drm_atomic") { |
| 20 if (use_drm_atomic) { | 20 if (use_drm_atomic) { |
| 21 defines = [ "USE_DRM_ATOMIC" ] | 21 defines = [ "USE_DRM_ATOMIC" ] |
| 22 } | 22 } |
| 23 } | 23 } |
| 24 | 24 |
| 25 source_set("gbm") { | 25 source_set("gbm") { |
| 26 sources = [ | 26 sources = [ |
| 27 "client_native_pixmap_factory_gbm.cc", | 27 "client_native_pixmap_factory_gbm.cc", |
| 28 "client_native_pixmap_factory_gbm.h", | 28 "client_native_pixmap_factory_gbm.h", |
| 29 "common/client_native_pixmap_dmabuf.cc", |
| 30 "common/client_native_pixmap_dmabuf.h", |
| 29 "common/drm_util.cc", | 31 "common/drm_util.cc", |
| 30 "common/drm_util.h", | 32 "common/drm_util.h", |
| 31 "common/scoped_drm_types.cc", | 33 "common/scoped_drm_types.cc", |
| 32 "common/scoped_drm_types.h", | 34 "common/scoped_drm_types.h", |
| 33 "gpu/crtc_controller.cc", | 35 "gpu/crtc_controller.cc", |
| 34 "gpu/crtc_controller.h", | 36 "gpu/crtc_controller.h", |
| 35 "gpu/drm_buffer.cc", | 37 "gpu/drm_buffer.cc", |
| 36 "gpu/drm_buffer.h", | 38 "gpu/drm_buffer.h", |
| 37 "gpu/drm_console_buffer.cc", | 39 "gpu/drm_console_buffer.cc", |
| 38 "gpu/drm_console_buffer.h", | 40 "gpu/drm_console_buffer.h", |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 148 |
| 147 if (use_drm_atomic) { | 149 if (use_drm_atomic) { |
| 148 configs += [ ":drm_atomic" ] | 150 configs += [ ":drm_atomic" ] |
| 149 sources += [ | 151 sources += [ |
| 150 "gpu/hardware_display_plane_atomic.cc", | 152 "gpu/hardware_display_plane_atomic.cc", |
| 151 "gpu/hardware_display_plane_atomic.h", | 153 "gpu/hardware_display_plane_atomic.h", |
| 152 "gpu/hardware_display_plane_manager_atomic.cc", | 154 "gpu/hardware_display_plane_manager_atomic.cc", |
| 153 "gpu/hardware_display_plane_manager_atomic.h", | 155 "gpu/hardware_display_plane_manager_atomic.h", |
| 154 ] | 156 ] |
| 155 } | 157 } |
| 156 | |
| 157 if (use_vgem_map) { | |
| 158 configs += [ "//ui/ozone:vgem_map" ] | |
| 159 | |
| 160 sources += [ | |
| 161 "common/client_native_pixmap_vgem.cc", | |
| 162 "common/client_native_pixmap_vgem.h", | |
| 163 ] | |
| 164 } | |
| 165 } | 158 } |
| 166 | 159 |
| 167 source_set("gbm_unittests") { | 160 source_set("gbm_unittests") { |
| 168 testonly = true | 161 testonly = true |
| 169 configs += [ ":drm_atomic" ] | 162 configs += [ ":drm_atomic" ] |
| 170 sources = [ | 163 sources = [ |
| 171 "gpu/drm_overlay_validator_unittest.cc", | 164 "gpu/drm_overlay_validator_unittest.cc", |
| 172 "gpu/drm_window_unittest.cc", | 165 "gpu/drm_window_unittest.cc", |
| 173 "gpu/fake_plane_info.cc", | 166 "gpu/fake_plane_info.cc", |
| 174 "gpu/fake_plane_info.h", | 167 "gpu/fake_plane_info.h", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 191 ":gbm", | 184 ":gbm", |
| 192 "//skia", | 185 "//skia", |
| 193 "//testing/gtest", | 186 "//testing/gtest", |
| 194 "//ui/gfx", | 187 "//ui/gfx", |
| 195 "//ui/ozone:platform", | 188 "//ui/ozone:platform", |
| 196 "//ui/ozone/common", | 189 "//ui/ozone/common", |
| 197 ] | 190 ] |
| 198 | 191 |
| 199 public_configs = [ ":libdrm" ] | 192 public_configs = [ ":libdrm" ] |
| 200 } | 193 } |
| OLD | NEW |