Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / ozone / platform / drm / drm.gypi
blob11a9eedd8ae7893f7c9a4563d7a3e0d6530cd249
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.
6   'variables': {
7     'internal_ozone_platform_deps': [
8       'ozone_platform_drm',
9     ],
10     'internal_ozone_platform_unittest_deps': [
11       'ozone_platform_drm_unittests',
12     ],
13     'internal_ozone_platforms': [
14       'drm',
15     ],
16     'use_drm_atomic%': 0,
17   },
18   'targets': [
19     {
20       'target_name': 'ozone_platform_drm',
21       'type': 'static_library',
22       'dependencies': [
23         '../../base/base.gyp:base',
24         '../../build/linux/system.gyp:libdrm',
25         '../../skia/skia.gyp:skia',
26         '../base/ui_base.gyp:ui_base',
27         '../display/display.gyp:display_types',
28         '../display/display.gyp:display_util',
29         '../events/devices/events_devices.gyp:events_devices',
30         '../events/events.gyp:events',
31         '../events/ozone/events_ozone.gyp:events_ozone_evdev',
32         '../events/ozone/events_ozone.gyp:events_ozone_layout',
33         '../events/platform/events_platform.gyp:events_platform',
34         '../gfx/gfx.gyp:gfx',
35         '../gfx/gfx.gyp:gfx_geometry',
36       ],
37       'defines': [
38         'OZONE_IMPLEMENTATION',
39       ],
40       'sources': [
41         'common/drm_util.cc',
42         'common/drm_util.h',
43         'common/scoped_drm_types.cc',
44         'common/scoped_drm_types.h',
45         'gpu/crtc_controller.cc',
46         'gpu/crtc_controller.h',
47         'gpu/display_change_observer.h',
48         'gpu/drm_buffer.cc',
49         'gpu/drm_buffer.h',
50         'gpu/drm_console_buffer.cc',
51         'gpu/drm_console_buffer.h',
52         'gpu/drm_device.cc',
53         'gpu/drm_device.h',
54         'gpu/drm_device_generator.cc',
55         'gpu/drm_device_generator.h',
56         'gpu/drm_device_manager.cc',
57         'gpu/drm_device_manager.h',
58         'gpu/drm_display.cc',
59         'gpu/drm_display.h',
60         'gpu/drm_gpu_display_manager.cc',
61         'gpu/drm_gpu_display_manager.h',
62         'gpu/drm_gpu_platform_support.cc',
63         'gpu/drm_gpu_platform_support.h',
64         'gpu/drm_surface.cc',
65         'gpu/drm_surface.h',
66         'gpu/drm_surface_factory.cc',
67         'gpu/drm_surface_factory.h',
68         'gpu/drm_vsync_provider.cc',
69         'gpu/drm_vsync_provider.h',
70         'gpu/drm_window.cc',
71         'gpu/drm_window.h',
72         'gpu/hardware_display_controller.cc',
73         'gpu/hardware_display_controller.h',
74         'gpu/hardware_display_plane.cc',
75         'gpu/hardware_display_plane.h',
76         'gpu/hardware_display_plane_manager.cc',
77         'gpu/hardware_display_plane_manager.h',
78         'gpu/hardware_display_plane_manager_legacy.cc',
79         'gpu/hardware_display_plane_manager_legacy.h',
80         'gpu/overlay_plane.cc',
81         'gpu/overlay_plane.h',
82         'gpu/page_flip_request.cc',
83         'gpu/page_flip_request.h',
84         'gpu/screen_manager.cc',
85         'gpu/screen_manager.h',
86         'host/channel_observer.h',
87         'host/drm_cursor.cc',
88         'host/drm_cursor.h',
89         'host/drm_device_handle.cc',
90         'host/drm_device_handle.h',
91         'host/drm_display_host.cc',
92         'host/drm_display_host.h',
93         'host/drm_display_host_manager.cc',
94         'host/drm_display_host_manager.h',
95         'host/drm_gpu_platform_support_host.cc',
96         'host/drm_gpu_platform_support_host.h',
97         'host/drm_native_display_delegate.cc',
98         'host/drm_native_display_delegate.h',
99         'host/drm_overlay_candidates_host.cc',
100         'host/drm_overlay_candidates_host.h',
101         'host/drm_overlay_manager.cc',
102         'host/drm_overlay_manager.h',
103         'host/drm_window_host.cc',
104         'host/drm_window_host.h',
105         'host/drm_window_host_manager.cc',
106         'host/drm_window_host_manager.h',
107         'ozone_platform_drm.cc',
108         'ozone_platform_drm.h',
109         'scanout_buffer.h',
110       ],
111       'conditions': [
112         ['use_drm_atomic == 1', {
113           'sources': [
114             'gpu/hardware_display_plane_atomic.cc',
115             'gpu/hardware_display_plane_atomic.h',
116             'gpu/hardware_display_plane_manager_atomic.cc',
117             'gpu/hardware_display_plane_manager_atomic.h',
118           ],
119           'defines': [
120             'USE_DRM_ATOMIC=1',
121           ],
122         }],
123       ],
124     },
125     {
126       'target_name': 'ozone_platform_drm_unittests',
127       'type': 'none',
128       'dependencies': [
129         '../../build/linux/system.gyp:libdrm',
130         '../../skia/skia.gyp:skia',
131         '../gfx/gfx.gyp:gfx',
132         '../gfx/gfx.gyp:gfx_geometry',
133         'ozone.gyp:ozone',
134       ],
135       'export_dependent_settings': [
136         '../../build/linux/system.gyp:libdrm',
137         '../../skia/skia.gyp:skia',
138         '../gfx/gfx.gyp:gfx_geometry',
139       ],
140       'direct_dependent_settings': {
141         'sources': [
142           'gpu/drm_surface_unittest.cc',
143           'gpu/drm_window_unittest.cc',
144           'gpu/hardware_display_controller_unittest.cc',
145           'gpu/hardware_display_plane_manager_unittest.cc',
146           'gpu/screen_manager_unittest.cc',
147           'test/mock_drm_device.cc',
148           'test/mock_drm_device.h',
149         ],
150       },
151     },
152   ],