| 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_drm_atomic = false | 9 use_drm_atomic = false |
| 10 } | 10 } |
| 11 | 11 |
| 12 visibility = [ "//ui/ozone/*" ] | 12 visibility = [ "//ui/ozone/*" ] |
| 13 | 13 |
| 14 pkg_config("libdrm") { | |
| 15 packages = [ "libdrm" ] | |
| 16 } | |
| 17 | |
| 18 config("drm_atomic") { | 14 config("drm_atomic") { |
| 19 if (use_drm_atomic) { | 15 if (use_drm_atomic) { |
| 20 defines = [ "USE_DRM_ATOMIC" ] | 16 defines = [ "USE_DRM_ATOMIC" ] |
| 21 } | 17 } |
| 22 } | 18 } |
| 23 | 19 |
| 24 source_set("gbm") { | 20 source_set("gbm") { |
| 25 sources = [ | 21 sources = [ |
| 26 "client_native_pixmap_factory_gbm.cc", | 22 "client_native_pixmap_factory_gbm.cc", |
| 27 "client_native_pixmap_factory_gbm.h", | 23 "client_native_pixmap_factory_gbm.h", |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 "ozone_platform_gbm.h", | 118 "ozone_platform_gbm.h", |
| 123 ] | 119 ] |
| 124 | 120 |
| 125 deps = [ | 121 deps = [ |
| 126 "//base", | 122 "//base", |
| 127 "//ipc", | 123 "//ipc", |
| 128 "//mojo/common:common_base", | 124 "//mojo/common:common_base", |
| 129 "//services/service_manager/public/cpp:sources", | 125 "//services/service_manager/public/cpp:sources", |
| 130 "//services/ui/public/interfaces:constants", | 126 "//services/ui/public/interfaces:constants", |
| 131 "//skia", | 127 "//skia", |
| 128 "//third_party/libdrm", |
| 132 "//third_party/minigbm", | 129 "//third_party/minigbm", |
| 133 "//ui/base", | 130 "//ui/base", |
| 134 "//ui/display", | 131 "//ui/display", |
| 135 "//ui/display/types", | 132 "//ui/display/types", |
| 136 "//ui/display/util", | 133 "//ui/display/util", |
| 137 "//ui/events", | 134 "//ui/events", |
| 138 "//ui/events/devices", | 135 "//ui/events/devices", |
| 139 "//ui/events/ozone:events_ozone", | 136 "//ui/events/ozone:events_ozone", |
| 140 "//ui/events/ozone:events_ozone_evdev", | 137 "//ui/events/ozone:events_ozone_evdev", |
| 141 "//ui/events/ozone:events_ozone_layout", | 138 "//ui/events/ozone:events_ozone_layout", |
| 142 "//ui/events/platform", | 139 "//ui/events/platform", |
| 143 "//ui/gfx", | 140 "//ui/gfx", |
| 144 "//ui/gfx/geometry", | 141 "//ui/gfx/geometry", |
| 145 "//ui/gl", | 142 "//ui/gl", |
| 146 "//ui/ozone:ozone_base", | 143 "//ui/ozone:ozone_base", |
| 147 "//ui/ozone/common", | 144 "//ui/ozone/common", |
| 148 "//ui/ozone/gl", | 145 "//ui/ozone/gl", |
| 149 "//ui/ozone/public/interfaces", | 146 "//ui/ozone/public/interfaces", |
| 150 "//ui/platform_window", | 147 "//ui/platform_window", |
| 151 ] | 148 ] |
| 152 | 149 |
| 153 configs += [ ":libdrm" ] | |
| 154 | |
| 155 public_configs = [ "//third_party/khronos:khronos_headers" ] | 150 public_configs = [ "//third_party/khronos:khronos_headers" ] |
| 156 | 151 |
| 157 defines = [ "OZONE_IMPLEMENTATION" ] | 152 defines = [ "OZONE_IMPLEMENTATION" ] |
| 158 | 153 |
| 159 if (use_drm_atomic) { | 154 if (use_drm_atomic) { |
| 160 configs += [ ":drm_atomic" ] | 155 configs += [ ":drm_atomic" ] |
| 161 sources += [ | 156 sources += [ |
| 162 "gpu/hardware_display_plane_atomic.cc", | 157 "gpu/hardware_display_plane_atomic.cc", |
| 163 "gpu/hardware_display_plane_atomic.h", | 158 "gpu/hardware_display_plane_atomic.h", |
| 164 "gpu/hardware_display_plane_manager_atomic.cc", | 159 "gpu/hardware_display_plane_manager_atomic.cc", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 187 "gpu/mock_scanout_buffer.h", | 182 "gpu/mock_scanout_buffer.h", |
| 188 "gpu/mock_scanout_buffer_generator.cc", | 183 "gpu/mock_scanout_buffer_generator.cc", |
| 189 "gpu/mock_scanout_buffer_generator.h", | 184 "gpu/mock_scanout_buffer_generator.h", |
| 190 "gpu/screen_manager_unittest.cc", | 185 "gpu/screen_manager_unittest.cc", |
| 191 ] | 186 ] |
| 192 | 187 |
| 193 deps = [ | 188 deps = [ |
| 194 ":gbm", | 189 ":gbm", |
| 195 "//skia", | 190 "//skia", |
| 196 "//testing/gtest", | 191 "//testing/gtest", |
| 192 "//third_party/libdrm", |
| 197 "//ui/gfx", | 193 "//ui/gfx", |
| 198 "//ui/ozone:platform", | 194 "//ui/ozone:platform", |
| 199 "//ui/ozone/common", | 195 "//ui/ozone/common", |
| 200 ] | 196 ] |
| 201 | |
| 202 public_configs = [ ":libdrm" ] | |
| 203 } | 197 } |
| OLD | NEW |