Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ui / display / display.gyp
blobe8f45f712b117d44fda17be4b17d904ef32b6662
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     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # GN version: //ui/display/types
12       'target_name': 'display_types',
13       'type': '<(component)',
14       'dependencies': [
15         '../../base/base.gyp:base',
16         '../../ui/gfx/gfx.gyp:gfx_geometry',
17       ],
18       'defines': [
19         'DISPLAY_TYPES_IMPLEMENTATION',
20       ],
21       'sources': [
22         # Note: file list duplicated in GN build.
23         'types/display_constants.h',
24         'types/display_mode.cc',
25         'types/display_mode.h',
26         'types/display_snapshot.cc',
27         'types/display_snapshot.h',
28         'types/display_types_export.h',
29         'types/native_display_delegate.h',
30         'types/native_display_observer.h',
31       ],
32     },
33     {
34       # GN version: //ui/display
35       'target_name': 'display',
36       'type': '<(component)',
37       'dependencies': [
38         '../../base/base.gyp:base',
39         '../../ui/gfx/gfx.gyp:gfx',
40         '../../ui/gfx/gfx.gyp:gfx_geometry',
41         'display_util',
42       ],
43       'defines': [
44         'DISPLAY_IMPLEMENTATION',
45       ],
46       'sources': [
47         # Note: file list duplicated in GN build.
48         'chromeos/apply_content_protection_task.cc',
49         'chromeos/apply_content_protection_task.h',
50         'chromeos/configure_displays_task.cc',
51         'chromeos/configure_displays_task.h',
52         'chromeos/display_configurator.cc',
53         'chromeos/display_configurator.h',
54         'chromeos/display_layout_manager.h',
55         'chromeos/display_util.cc',
56         'chromeos/display_util.h',
57         'chromeos/ozone/display_configurator_ozone.cc',
58         'chromeos/query_content_protection_task.cc',
59         'chromeos/query_content_protection_task.h',
60         'chromeos/update_display_configuration_task.cc',
61         'chromeos/update_display_configuration_task.h',
62         'chromeos/x11/display_configurator_x11.cc',
63         'chromeos/x11/display_mode_x11.cc',
64         'chromeos/x11/display_mode_x11.h',
65         'chromeos/x11/display_snapshot_x11.cc',
66         'chromeos/x11/display_snapshot_x11.h',
67         'chromeos/x11/display_util_x11.cc',
68         'chromeos/x11/display_util_x11.h',
69         'chromeos/x11/native_display_delegate_x11.cc',
70         'chromeos/x11/native_display_delegate_x11.h',
71         'chromeos/x11/native_display_event_dispatcher_x11.cc',
72         'chromeos/x11/native_display_event_dispatcher_x11.h',
73         'display_export.h',
74         'display_switches.cc',
75         'display_switches.h',
76       ],
77       'conditions': [
78         ['use_x11 == 1', {
79           'dependencies': [
80             '../../build/linux/system.gyp:x11',
81             '../../build/linux/system.gyp:xext',
82             '../../build/linux/system.gyp:xi',
83             '../../build/linux/system.gyp:xrandr',
84             '../../ui/events/platform/events_platform.gyp:events_platform',
85           ],
86         }],
87         ['chromeos == 1', {
88           'dependencies': [
89             'display_types',
90           ],
91         }],
92         ['chromeos == 1 and use_x11 == 1', {
93           'dependencies': [
94             '../gfx/x/gfx_x11.gyp:gfx_x11',
95           ],
96         }],
97         ['use_ozone == 1', {
98           'dependencies': [
99             '../../ui/ozone/ozone.gyp:ozone',
100           ],
101         }],
102       ],
103     },
104     {
105       # GN version: //ui/display/util
106       'target_name': 'display_util',
107       'type': '<(component)',
108       'dependencies': [
109         '../../base/base.gyp:base',
110         '../../ui/gfx/gfx.gyp:gfx_geometry',
111       ],
112       'defines': [
113         'DISPLAY_UTIL_IMPLEMENTATION',
114       ],
115       'sources': [
116         # Note: file list shared with GN build.
117         'util/display_util.cc',
118         'util/display_util.h',
119         'util/display_util_export.h',
120         'util/edid_parser.cc',
121         'util/edid_parser.h',
122         'util/x11/edid_parser_x11.cc',
123         'util/x11/edid_parser_x11.h',
124       ],
125       'conditions': [
126         ['use_x11 == 1', {
127           'dependencies': [
128             '../../build/linux/system.gyp:x11',
129             '../../build/linux/system.gyp:xrandr',
130             '../../ui/gfx/x/gfx_x11.gyp:gfx_x11',
131           ],
132         }],
133         ['chromeos == 1', {
134           'dependencies': [
135             'display_types',
136           ],
137         }],
138       ],
139     },
140     {
141       # Used to share stubs with code outside ui/display
142       #
143       # GN version: //ui/display:test_util
144       'target_name': 'display_test_util',
145       'type': '<(component)',
146       'dependencies': [
147         '../../base/base.gyp:base',
148         '../../ui/gfx/gfx.gyp:gfx',
149         '../../ui/gfx/gfx.gyp:gfx_geometry',
150       ],
151       'defines': [
152         'DISPLAY_IMPLEMENTATION',
153       ],
154       'sources': [
155         # Note: file list duplicated in GN build.
156         'chromeos/test/test_display_snapshot.cc',
157         'chromeos/test/test_display_snapshot.h',
158       ],
159       'conditions': [
160         ['chromeos == 1', {
161           'dependencies': [
162             'display_types',
163           ],
164         }],
165       ],
166     },
167     # Internal utilities used by display_unittests
168     {
169       'target_name': 'display_test_support',
170       'type': 'static_library',
171       'dependencies': [
172         '../../base/base.gyp:base',
173         '../../ui/gfx/gfx.gyp:gfx',
174         '../../ui/gfx/gfx.gyp:gfx_geometry',
175       ],
176       'sources': [
177         'chromeos/test/action_logger.cc',
178         'chromeos/test/action_logger.h',
179         'chromeos/test/action_logger_util.cc',
180         'chromeos/test/action_logger_util.h',
181         'chromeos/test/test_display_layout_manager.cc',
182         'chromeos/test/test_display_layout_manager.h',
183         'chromeos/test/test_native_display_delegate.cc',
184         'chromeos/test/test_native_display_delegate.h',
185       ],
186     },
187     {
188       # GN version: //ui/display:display_unittests
189       'target_name': 'display_unittests',
190       'type': 'executable',
191       'dependencies': [
192         '../../base/base.gyp:run_all_unittests',
193         '../../testing/gtest.gyp:gtest',
194         '../../ui/gfx/gfx.gyp:gfx_geometry',
195         'display_util',
196       ],
197       'include_dirs': [
198         '../..',
199       ],
200       'sources': [
201         'chromeos/apply_content_protection_task_unittest.cc',
202         'chromeos/configure_displays_task_unittest.cc',
203         'chromeos/display_configurator_unittest.cc',
204         'chromeos/query_content_protection_task_unittest.cc',
205         'chromeos/update_display_configuration_task_unittest.cc',
206         'chromeos/x11/display_util_x11_unittest.cc',
207         'chromeos/x11/native_display_event_dispatcher_x11_unittest.cc',
208         'util/display_util_unittest.cc',
209         'util/edid_parser_unittest.cc',
210       ],
211       'conditions': [
212         ['chromeos == 1', {
213           'dependencies': [
214             'display',
215             'display_test_support',
216             'display_test_util',
217             'display_types',
218           ],
219         }],
220       ],
221     },
222   ],