Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: ui/ozone/platform/drm/BUILD.gn

Issue 1350473002: Revert of ozone: Remove the "drm" software composited platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/platform/drm/common/client_native_pixmap_factory_drm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # TODO(dshwang): remove this flag when all gbm hardware supports vgem map. 12 # TODO(dshwang): remove this flag when all gbm hardware supports vgem map.
13 # crbug.com/519587 13 # crbug.com/519587
14 use_vgem_map = false 14 use_vgem_map = false
15 } 15 }
16 16
17 pkg_config("libdrm") { 17 pkg_config("libdrm") {
18 packages = [ "libdrm" ] 18 packages = [ "libdrm" ]
19 } 19 }
20 20
21 source_set("gbm") { 21 source_set("drm_common") {
22 sources = [ 22 sources = [
23 "common/client_native_pixmap_factory_gbm.cc", 23 "common/client_native_pixmap_factory_drm.cc",
24 "common/client_native_pixmap_factory_gbm.h", 24 "common/client_native_pixmap_factory_drm.h",
25 "common/drm_util.cc", 25 "common/drm_util.cc",
26 "common/drm_util.h", 26 "common/drm_util.h",
27 "common/scoped_drm_types.cc", 27 "common/scoped_drm_types.cc",
28 "common/scoped_drm_types.h", 28 "common/scoped_drm_types.h",
29 "gpu/crtc_controller.cc", 29 "gpu/crtc_controller.cc",
30 "gpu/crtc_controller.h", 30 "gpu/crtc_controller.h",
31 "gpu/display_change_observer.h", 31 "gpu/display_change_observer.h",
32 "gpu/drm_buffer.cc", 32 "gpu/drm_buffer.cc",
33 "gpu/drm_buffer.h", 33 "gpu/drm_buffer.h",
34 "gpu/drm_console_buffer.cc", 34 "gpu/drm_console_buffer.cc",
35 "gpu/drm_console_buffer.h", 35 "gpu/drm_console_buffer.h",
36 "gpu/drm_device.cc", 36 "gpu/drm_device.cc",
37 "gpu/drm_device.h", 37 "gpu/drm_device.h",
38 "gpu/drm_device_generator.cc", 38 "gpu/drm_device_generator.cc",
39 "gpu/drm_device_generator.h", 39 "gpu/drm_device_generator.h",
40 "gpu/drm_device_manager.cc", 40 "gpu/drm_device_manager.cc",
41 "gpu/drm_device_manager.h", 41 "gpu/drm_device_manager.h",
42 "gpu/drm_display.cc", 42 "gpu/drm_display.cc",
43 "gpu/drm_display.h", 43 "gpu/drm_display.h",
44 "gpu/drm_gpu_display_manager.cc", 44 "gpu/drm_gpu_display_manager.cc",
45 "gpu/drm_gpu_display_manager.h", 45 "gpu/drm_gpu_display_manager.h",
46 "gpu/drm_gpu_platform_support.cc", 46 "gpu/drm_gpu_platform_support.cc",
47 "gpu/drm_gpu_platform_support.h", 47 "gpu/drm_gpu_platform_support.h",
48 "gpu/drm_surface.cc",
49 "gpu/drm_surface.h",
50 "gpu/drm_surface_factory.cc",
51 "gpu/drm_surface_factory.h",
48 "gpu/drm_vsync_provider.cc", 52 "gpu/drm_vsync_provider.cc",
49 "gpu/drm_vsync_provider.h", 53 "gpu/drm_vsync_provider.h",
50 "gpu/drm_window.cc", 54 "gpu/drm_window.cc",
51 "gpu/drm_window.h", 55 "gpu/drm_window.h",
52 "gpu/gbm_buffer.cc",
53 "gpu/gbm_buffer.h",
54 "gpu/gbm_buffer_base.cc",
55 "gpu/gbm_buffer_base.h",
56 "gpu/gbm_device.cc",
57 "gpu/gbm_device.h",
58 "gpu/gbm_surface.cc",
59 "gpu/gbm_surface.h",
60 "gpu/gbm_surface_factory.cc",
61 "gpu/gbm_surface_factory.h",
62 "gpu/gbm_surfaceless.cc",
63 "gpu/gbm_surfaceless.h",
64 "gpu/hardware_display_controller.cc", 56 "gpu/hardware_display_controller.cc",
65 "gpu/hardware_display_controller.h", 57 "gpu/hardware_display_controller.h",
66 "gpu/hardware_display_plane.cc", 58 "gpu/hardware_display_plane.cc",
67 "gpu/hardware_display_plane.h", 59 "gpu/hardware_display_plane.h",
68 "gpu/hardware_display_plane_manager.cc", 60 "gpu/hardware_display_plane_manager.cc",
69 "gpu/hardware_display_plane_manager.h", 61 "gpu/hardware_display_plane_manager.h",
70 "gpu/hardware_display_plane_manager_legacy.cc", 62 "gpu/hardware_display_plane_manager_legacy.cc",
71 "gpu/hardware_display_plane_manager_legacy.h", 63 "gpu/hardware_display_plane_manager_legacy.h",
72 "gpu/overlay_plane.cc", 64 "gpu/overlay_plane.cc",
73 "gpu/overlay_plane.h", 65 "gpu/overlay_plane.h",
(...skipping 16 matching lines...) Expand all
90 "host/drm_native_display_delegate.cc", 82 "host/drm_native_display_delegate.cc",
91 "host/drm_native_display_delegate.h", 83 "host/drm_native_display_delegate.h",
92 "host/drm_overlay_candidates_host.cc", 84 "host/drm_overlay_candidates_host.cc",
93 "host/drm_overlay_candidates_host.h", 85 "host/drm_overlay_candidates_host.h",
94 "host/drm_overlay_manager.cc", 86 "host/drm_overlay_manager.cc",
95 "host/drm_overlay_manager.h", 87 "host/drm_overlay_manager.h",
96 "host/drm_window_host.cc", 88 "host/drm_window_host.cc",
97 "host/drm_window_host.h", 89 "host/drm_window_host.h",
98 "host/drm_window_host_manager.cc", 90 "host/drm_window_host_manager.cc",
99 "host/drm_window_host_manager.h", 91 "host/drm_window_host_manager.h",
100 "ozone_platform_gbm.cc",
101 "ozone_platform_gbm.h",
102 ] 92 ]
103 93
94 defines = [ "OZONE_IMPLEMENTATION" ]
95
96 if (use_drm_atomic) {
97 defines += [ "USE_DRM_ATOMIC" ]
98 sources += [
99 "gpu/hardware_display_plane_atomic.cc",
100 "gpu/hardware_display_plane_atomic.h",
101 "gpu/hardware_display_plane_manager_atomic.cc",
102 "gpu/hardware_display_plane_manager_atomic.h",
103 ]
104 }
105
104 deps = [ 106 deps = [
105 ":drm_common",
106 "//base", 107 "//base",
108 "//skia",
107 "//ipc", 109 "//ipc",
108 "//skia",
109 "//third_party/minigbm",
110 "//ui/base", 110 "//ui/base",
111 "//ui/display/types", 111 "//ui/display/types",
112 "//ui/display/util", 112 "//ui/display/util",
113 "//ui/events", 113 "//ui/events",
114 "//ui/events/devices", 114 "//ui/events/devices",
115 "//ui/events/ozone:events_ozone_evdev", 115 "//ui/events/ozone:events_ozone_evdev",
116 "//ui/events/ozone:events_ozone_layout", 116 "//ui/events/ozone:events_ozone_layout",
117 "//ui/events/platform", 117 "//ui/events/platform",
118 "//ui/gfx", 118 "//ui/gfx",
119 "//ui/gfx/geometry", 119 "//ui/gfx/geometry",
120 ] 120 ]
121 121
122 configs = [ ":libdrm" ]
123
124 public_configs = [ "//third_party/khronos:khronos_headers" ]
125
126 defines = []
127
128 if (use_drm_atomic) {
129 defines += [ "USE_DRM_ATOMIC" ]
130 sources += [
131 "gpu/hardware_display_plane_atomic.cc",
132 "gpu/hardware_display_plane_atomic.h",
133 "gpu/hardware_display_plane_manager_atomic.cc",
134 "gpu/hardware_display_plane_manager_atomic.h",
135 ]
136 }
137
138 if (use_mesa_platform_null) {
139 defines += [ "USE_MESA_PLATFORM_NULL" ]
140 }
141
142 if (use_vgem_map) {
143 defines += [ "USE_VGEM_MAP" ]
144
145 sources += [
146 "gpu/client_native_pixmap_vgem.cc",
147 "gpu/client_native_pixmap_vgem.h",
148 ]
149 }
150 }
151
152 source_set("gbm_unittests") {
153 testonly = true
154 sources = [
155 "gpu/drm_window_unittest.cc",
156 "gpu/hardware_display_controller_unittest.cc",
157 "gpu/hardware_display_plane_manager_unittest.cc",
158 "gpu/screen_manager_unittest.cc",
159 "test/mock_drm_device.cc",
160 "test/mock_drm_device.h",
161 ]
162
163 deps = [
164 "//skia",
165 "//testing/gtest",
166 "//ui/gfx",
167 "//ui/ozone",
168 ]
169
170 public_configs = [ ":libdrm" ] 122 public_configs = [ ":libdrm" ]
171 } 123 }
124
125 if (ozone_platform_drm) {
126 source_set("drm") {
127 sources = [
128 "ozone_platform_drm.cc",
129 "ozone_platform_drm.h",
130 ]
131
132 deps = [
133 ":drm_common",
134 "//base",
135 "//skia",
136 "//ui/events/ozone:events_ozone_evdev",
137 "//ui/events/ozone:events_ozone_layout",
138 ]
139 }
140
141 source_set("drm_unittests") {
142 testonly = true
143 sources = [
144 "gpu/drm_surface_unittest.cc",
145 "gpu/drm_window_unittest.cc",
146 "gpu/hardware_display_controller_unittest.cc",
147 "gpu/hardware_display_plane_manager_unittest.cc",
148 "gpu/screen_manager_unittest.cc",
149 "test/mock_drm_device.cc",
150 "test/mock_drm_device.h",
151 ]
152
153 deps = [
154 "//skia",
155 "//testing/gtest",
156 "//ui/gfx",
157 "//ui/ozone",
158 ]
159
160 public_configs = [ ":libdrm" ]
161 }
162 }
163
164 if (ozone_platform_gbm) {
165 source_set("gbm") {
166 sources = [
167 "common/client_native_pixmap_factory_gbm.cc",
168 "common/client_native_pixmap_factory_gbm.h",
169 "gpu/gbm_buffer.cc",
170 "gpu/gbm_buffer.h",
171 "gpu/gbm_buffer_base.cc",
172 "gpu/gbm_buffer_base.h",
173 "gpu/gbm_device.cc",
174 "gpu/gbm_device.h",
175 "gpu/gbm_surface.cc",
176 "gpu/gbm_surface.h",
177 "gpu/gbm_surface_factory.cc",
178 "gpu/gbm_surface_factory.h",
179 "gpu/gbm_surfaceless.cc",
180 "gpu/gbm_surfaceless.h",
181 "ozone_platform_gbm.cc",
182 "ozone_platform_gbm.h",
183 ]
184
185 deps = [
186 ":drm_common",
187 "//base",
188 "//skia",
189 "//third_party/minigbm",
190 "//ui/events/ozone:events_ozone_evdev",
191 "//ui/events/ozone:events_ozone_layout",
192 ]
193
194 public_configs = [ "//third_party/khronos:khronos_headers" ]
195
196 defines = []
197
198 if (use_mesa_platform_null) {
199 defines += [ "USE_MESA_PLATFORM_NULL" ]
200 }
201
202 if (use_vgem_map) {
203 defines += [ "USE_VGEM_MAP" ]
204
205 sources += [
206 "gpu/client_native_pixmap_vgem.cc",
207 "gpu/client_native_pixmap_vgem.h",
208 ]
209 }
210 }
211 }
OLDNEW
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/platform/drm/common/client_native_pixmap_factory_drm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698