OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'variables': { | |
7 'internal_ozone_platform_deps': [ | |
8 'ozone_platform_gbm', | |
9 ], | |
10 'internal_ozone_platform_unittest_deps': [ | |
11 'ozone_platform_gbm_unittests', | |
12 ], | |
13 'internal_ozone_platforms': [ | |
14 'gbm', | |
15 ], | |
16 'use_drm_atomic%': 0, | |
17 }, | |
18 'targets': [ | |
19 { | |
20 'target_name': 'drm_atomic', | |
21 'type': 'none', | |
22 'conditions': [ | |
23 ['use_drm_atomic==1', { | |
24 'direct_dependent_settings': { | |
25 'defines': [ | |
26 'USE_DRM_ATOMIC', | |
27 ], | |
28 }, | |
29 }], | |
30 ], | |
31 }, | |
32 { | |
33 'target_name': 'ozone_platform_gbm', | |
34 'type': 'static_library', | |
35 'dependencies': [ | |
36 'gl/ozone_gl.gyp:ozone_gl', | |
37 'ozone.gyp:ozone_base', | |
38 'ozone.gyp:ozone_common', | |
39 '../../base/base.gyp:base', | |
40 '../../build/linux/system.gyp:libdrm', | |
41 '../../third_party/minigbm/minigbm.gyp:minigbm', | |
42 '../../skia/skia.gyp:skia', | |
43 '../../third_party/khronos/khronos.gyp:khronos_headers', | |
44 '../base/ui_base.gyp:ui_base', | |
45 '../display/display.gyp:display_types', | |
46 '../display/display.gyp:display_util', | |
47 '../events/devices/events_devices.gyp:events_devices', | |
48 '../events/events.gyp:events', | |
49 '../events/ozone/events_ozone.gyp:events_ozone', | |
50 '../events/ozone/events_ozone.gyp:events_ozone_evdev', | |
51 '../events/ozone/events_ozone.gyp:events_ozone_layout', | |
52 '../events/platform/events_platform.gyp:events_platform', | |
53 '../gl/gl.gyp:gl', | |
54 '../gfx/gfx.gyp:gfx', | |
55 '../gfx/gfx.gyp:gfx_geometry', | |
56 'drm_atomic', | |
57 ], | |
58 'defines': [ | |
59 'OZONE_IMPLEMENTATION', | |
60 ], | |
61 'sources': [ | |
62 'client_native_pixmap_factory_gbm.cc', | |
63 'client_native_pixmap_factory_gbm.h', | |
64 'common/client_native_pixmap_dmabuf.cc', | |
65 'common/client_native_pixmap_dmabuf.h', | |
66 'common/drm_util.cc', | |
67 'common/drm_util.h', | |
68 'common/scoped_drm_types.cc', | |
69 'common/scoped_drm_types.h', | |
70 'gpu/crtc_controller.cc', | |
71 'gpu/crtc_controller.h', | |
72 'gpu/display_change_observer.h', | |
73 'gpu/drm_buffer.cc', | |
74 'gpu/drm_buffer.h', | |
75 'gpu/drm_console_buffer.cc', | |
76 'gpu/drm_console_buffer.h', | |
77 'gpu/drm_device.cc', | |
78 'gpu/drm_device.h', | |
79 'gpu/drm_device_generator.cc', | |
80 'gpu/drm_device_generator.h', | |
81 'gpu/drm_device_manager.cc', | |
82 'gpu/drm_device_manager.h', | |
83 'gpu/drm_display.cc', | |
84 'gpu/drm_display.h', | |
85 'gpu/drm_gpu_display_manager.cc', | |
86 'gpu/drm_gpu_display_manager.h', | |
87 'gpu/drm_overlay_validator.cc', | |
88 'gpu/drm_overlay_validator.h', | |
89 'gpu/drm_thread.cc', | |
90 'gpu/drm_thread.h', | |
91 'gpu/drm_thread_message_proxy.cc', | |
92 'gpu/drm_thread_message_proxy.h', | |
93 'gpu/drm_thread_proxy.cc', | |
94 'gpu/drm_thread_proxy.h', | |
95 'gpu/drm_vsync_provider.cc', | |
96 'gpu/drm_vsync_provider.h', | |
97 'gpu/drm_window.cc', | |
98 'gpu/drm_window.h', | |
99 'gpu/drm_window_proxy.cc', | |
100 'gpu/drm_window_proxy.h', | |
101 'gpu/gbm_buffer.cc', | |
102 'gpu/gbm_buffer.h', | |
103 'gpu/gbm_buffer_base.cc', | |
104 'gpu/gbm_buffer_base.h', | |
105 'gpu/gbm_device.cc', | |
106 'gpu/gbm_device.h', | |
107 'gpu/gbm_surface.cc', | |
108 'gpu/gbm_surface.h', | |
109 'gpu/gbm_surface_factory.cc', | |
110 'gpu/gbm_surface_factory.h', | |
111 'gpu/gbm_surfaceless.cc', | |
112 'gpu/gbm_surfaceless.h', | |
113 'gpu/hardware_display_controller.cc', | |
114 'gpu/hardware_display_controller.h', | |
115 'gpu/hardware_display_plane.cc', | |
116 'gpu/hardware_display_plane.h', | |
117 'gpu/hardware_display_plane_manager.cc', | |
118 'gpu/hardware_display_plane_manager.h', | |
119 'gpu/hardware_display_plane_manager_legacy.cc', | |
120 'gpu/hardware_display_plane_manager_legacy.h', | |
121 'gpu/inter_thread_messaging_proxy.cc', | |
122 'gpu/inter_thread_messaging_proxy.h', | |
123 'gpu/overlay_plane.cc', | |
124 'gpu/overlay_plane.h', | |
125 'gpu/page_flip_request.cc', | |
126 'gpu/page_flip_request.h', | |
127 'gpu/proxy_helpers.cc', | |
128 'gpu/proxy_helpers.h', | |
129 'gpu/screen_manager.cc', | |
130 'gpu/screen_manager.h', | |
131 'host/drm_cursor.cc', | |
132 'host/drm_cursor.h', | |
133 'host/drm_device_handle.cc', | |
134 'host/drm_device_handle.h', | |
135 'host/drm_display_host.cc', | |
136 'host/drm_display_host.h', | |
137 'host/drm_display_host_manager.cc', | |
138 'host/drm_display_host_manager.h', | |
139 'host/drm_gpu_platform_support_host.cc', | |
140 'host/drm_gpu_platform_support_host.h', | |
141 'host/drm_native_display_delegate.cc', | |
142 'host/drm_native_display_delegate.h', | |
143 'host/drm_overlay_candidates_host.cc', | |
144 'host/drm_overlay_candidates_host.h', | |
145 'host/drm_overlay_manager.cc', | |
146 'host/drm_overlay_manager.h', | |
147 'host/drm_window_host.cc', | |
148 'host/drm_window_host.h', | |
149 'host/drm_window_host_manager.cc', | |
150 'host/drm_window_host_manager.h', | |
151 'host/gpu_thread_adapter.h', | |
152 'host/gpu_thread_observer.h', | |
153 'mus_thread_proxy.cc', | |
154 'mus_thread_proxy.h', | |
155 'ozone_platform_gbm.cc', | |
156 'ozone_platform_gbm.h', | |
157 ], | |
158 'conditions': [ | |
159 ['use_drm_atomic == 1', { | |
160 'sources': [ | |
161 'gpu/hardware_display_plane_atomic.cc', | |
162 'gpu/hardware_display_plane_atomic.h', | |
163 'gpu/hardware_display_plane_manager_atomic.cc', | |
164 'gpu/hardware_display_plane_manager_atomic.h', | |
165 ], | |
166 }], | |
167 ], | |
168 }, | |
169 { | |
170 'target_name': 'ozone_platform_gbm_unittests', | |
171 'type': 'none', | |
172 'dependencies': [ | |
173 '../../build/linux/system.gyp:libdrm', | |
174 '../../skia/skia.gyp:skia', | |
175 '../gfx/gfx.gyp:gfx', | |
176 '../gfx/gfx.gyp:gfx_geometry', | |
177 'ozone.gyp:ozone_platform', | |
178 'drm_atomic', | |
179 ], | |
180 'export_dependent_settings': [ | |
181 '../../build/linux/system.gyp:libdrm', | |
182 '../../skia/skia.gyp:skia', | |
183 '../gfx/gfx.gyp:gfx_geometry', | |
184 'drm_atomic', | |
185 ], | |
186 'direct_dependent_settings': { | |
187 'sources': [ | |
188 'gpu/drm_overlay_validator_unittest.cc', | |
189 'gpu/drm_window_unittest.cc', | |
190 'gpu/fake_plane_info.cc', | |
191 'gpu/fake_plane_info.h', | |
192 'gpu/hardware_display_controller_unittest.cc', | |
193 'gpu/hardware_display_plane_manager_unittest.cc', | |
194 'gpu/mock_dumb_buffer_generator.cc', | |
195 'gpu/mock_dumb_buffer_generator.h', | |
196 'gpu/mock_drm_device.cc', | |
197 'gpu/mock_drm_device.h', | |
198 'gpu/mock_hardware_display_plane_manager.cc', | |
199 'gpu/mock_hardware_display_plane_manager.h', | |
200 'gpu/mock_scanout_buffer.cc', | |
201 'gpu/mock_scanout_buffer.h', | |
202 'gpu/mock_scanout_buffer_generator.cc', | |
203 'gpu/mock_scanout_buffer_generator.h', | |
204 'gpu/screen_manager_unittest.cc', | |
205 ], | |
206 }, | |
207 }, | |
208 ], | |
209 } | |
OLD | NEW |