Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / ui / ozone / platform / dri / dri.gypi
blob23afb86b506ce2e3f28a00383e1eef54fe0078b2
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_dri',
9     ],
10     'internal_ozone_platform_unittest_deps': [
11       'ozone_platform_dri_unittests',
12     ],
13     'internal_ozone_platforms': [
14       'dri',
15     ],
16     'use_drm_atomic_flip%': 0,
17   },
18   'targets': [
19     {
20       'target_name': 'ozone_platform_dri',
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/events.gyp:events',
30         '../events/ozone/events_ozone.gyp:events_ozone_evdev',
31         '../gfx/gfx.gyp:gfx',
32         '../gfx/gfx.gyp:gfx_geometry',
33       ],
34       'defines': [
35         'OZONE_IMPLEMENTATION',
36       ],
37       'sources': [
38         'channel_observer.h',
39         'crtc_controller.cc',
40         'crtc_controller.h',
41         'display_manager.cc',
42         'display_manager.h',
43         'display_mode_dri.cc',
44         'display_mode_dri.h',
45         'display_snapshot_dri.cc',
46         'display_snapshot_dri.h',
47         'dri_console_buffer.cc',
48         'dri_console_buffer.h',
49         'dri_buffer.cc',
50         'dri_buffer.h',
51         'dri_cursor.cc',
52         'dri_cursor.h',
53         'dri_gpu_platform_support.cc',
54         'dri_gpu_platform_support.h',
55         'dri_gpu_platform_support_host.cc',
56         'dri_gpu_platform_support_host.h',
57         'dri_surface.cc',
58         'dri_surface.h',
59         'dri_surface_factory.cc',
60         'dri_surface_factory.h',
61         'dri_util.cc',
62         'dri_util.h',
63         'dri_vsync_provider.cc',
64         'dri_vsync_provider.h',
65         'dri_window.cc',
66         'dri_window.h',
67         'dri_window_delegate.h',
68         'dri_window_delegate_impl.cc',
69         'dri_window_delegate_impl.h',
70         'dri_window_delegate_manager.cc',
71         'dri_window_delegate_manager.h',
72         'dri_window_manager.cc',
73         'dri_window_manager.h',
74         'dri_wrapper.cc',
75         'dri_wrapper.h',
76         'hardware_display_controller.cc',
77         'hardware_display_controller.h',
78         'native_display_delegate_dri.cc',
79         'native_display_delegate_dri.h',
80         'native_display_delegate_proxy.cc',
81         'native_display_delegate_proxy.h',
82         'overlay_plane.cc',
83         'overlay_plane.h',
84         'ozone_platform_dri.cc',
85         'ozone_platform_dri.h',
86         'scoped_drm_types.cc',
87         'scoped_drm_types.h',
88         'screen_manager.cc',
89         'screen_manager.h',
90         'scanout_buffer.h',
91       ],
92       'conditions': [
93         ['use_drm_atomic_flip==1', {
94           'sources': [
95             'hardware_display_plane.cc',
96             'hardware_display_plane.h',
97             'hardware_display_plane_manager.cc',
98             'hardware_display_plane_manager.h',
99           ],
100         }],
101       ],
102     },
103     {
104       'target_name': 'ozone_platform_dri_unittests',
105       'type': 'none',
106       'dependencies': [
107         '../../build/linux/system.gyp:libdrm',
108         '../../skia/skia.gyp:skia',
109         '../gfx/gfx.gyp:gfx_geometry',
110         'ozone_platform_dri',
111       ],
112       'export_dependent_settings': [
113         '../../build/linux/system.gyp:libdrm',
114         '../../skia/skia.gyp:skia',
115         '../gfx/gfx.gyp:gfx_geometry',
116       ],
117       'direct_dependent_settings': {
118         'sources': [
119           'dri_surface_factory_unittest.cc',
120           'dri_surface_unittest.cc',
121           'hardware_display_controller_unittest.cc',
122           'screen_manager_unittest.cc',
123           'test/mock_dri_wrapper.cc',
124           'test/mock_dri_wrapper.h',
125         ],
126       },
127     },
128   ],