Upstream version 11.40.277.0
[platform/framework/web/crosswalk.git] / src / ui / ozone / platform / dri / dri.gypi
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_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_mode_dri.cc',
42         'display_mode_dri.h',
43         'display_snapshot_dri.cc',
44         'display_snapshot_dri.h',
45         'dri_console_buffer.cc',
46         'dri_console_buffer.h',
47         'dri_buffer.cc',
48         'dri_buffer.h',
49         'dri_cursor.cc',
50         'dri_cursor.h',
51         'dri_gpu_platform_support.cc',
52         'dri_gpu_platform_support.h',
53         'dri_gpu_platform_support_host.cc',
54         'dri_gpu_platform_support_host.h',
55         'dri_surface.cc',
56         'dri_surface.h',
57         'dri_surface_factory.cc',
58         'dri_surface_factory.h',
59         'dri_util.cc',
60         'dri_util.h',
61         'dri_vsync_provider.cc',
62         'dri_vsync_provider.h',
63         'dri_window.cc',
64         'dri_window.h',
65         'dri_window_delegate.h',
66         'dri_window_delegate_impl.cc',
67         'dri_window_delegate_impl.h',
68         'dri_window_delegate_manager.cc',
69         'dri_window_delegate_manager.h',
70         'dri_window_manager.cc',
71         'dri_window_manager.h',
72         'dri_wrapper.cc',
73         'dri_wrapper.h',
74         'hardware_display_controller.cc',
75         'hardware_display_controller.h',
76         'native_display_delegate_dri.cc',
77         'native_display_delegate_dri.h',
78         'overlay_plane.cc',
79         'overlay_plane.h',
80         'ozone_platform_dri.cc',
81         'ozone_platform_dri.h',
82         'scoped_drm_types.cc',
83         'scoped_drm_types.h',
84         'screen_manager.cc',
85         'screen_manager.h',
86         'scanout_buffer.h',
87       ],
88       'conditions': [
89         ['use_drm_atomic_flip==1', {
90           'sources': [
91             'hardware_display_plane.cc',
92             'hardware_display_plane.h',
93             'hardware_display_plane_manager.cc',
94             'hardware_display_plane_manager.h',
95           ],
96         }],
97       ],
98     },
99     {
100       'target_name': 'ozone_platform_dri_unittests',
101       'type': 'none',
102       'dependencies': [
103         '../../build/linux/system.gyp:libdrm',
104         '../../skia/skia.gyp:skia',
105         '../gfx/gfx.gyp:gfx_geometry',
106         'ozone_platform_dri',
107       ],
108       'export_dependent_settings': [
109         '../../build/linux/system.gyp:libdrm',
110         '../../skia/skia.gyp:skia',
111         '../gfx/gfx.gyp:gfx_geometry',
112       ],
113       'direct_dependent_settings': {
114         'sources': [
115           'dri_surface_factory_unittest.cc',
116           'dri_surface_unittest.cc',
117           'hardware_display_controller_unittest.cc',
118           'screen_manager_unittest.cc',
119           'test/mock_dri_wrapper.cc',
120           'test/mock_dri_wrapper.h',
121         ],
122       },
123     },
124   ],
125 }