NativeDisplayDelegateProxy needs to read a file which is necessary to start chrome...
[chromium-blink-merge.git] / ui / display / display.gyp
blobad17901e9e49f492643bd12185c68376d177bb96
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/configure_displays_task.cc',
49         'chromeos/configure_displays_task.h',
50         'chromeos/display_configurator.cc',
51         'chromeos/display_configurator.h',
52         'chromeos/display_util.cc',
53         'chromeos/display_util.h',
54         'chromeos/ozone/display_configurator_ozone.cc',
55         'chromeos/update_display_configuration_task.cc',
56         'chromeos/update_display_configuration_task.h',
57         'chromeos/x11/display_configurator_x11.cc',
58         'chromeos/x11/display_mode_x11.cc',
59         'chromeos/x11/display_mode_x11.h',
60         'chromeos/x11/display_snapshot_x11.cc',
61         'chromeos/x11/display_snapshot_x11.h',
62         'chromeos/x11/display_util_x11.cc',
63         'chromeos/x11/display_util_x11.h',
64         'chromeos/x11/native_display_delegate_x11.cc',
65         'chromeos/x11/native_display_delegate_x11.h',
66         'chromeos/x11/native_display_event_dispatcher_x11.cc',
67         'chromeos/x11/native_display_event_dispatcher_x11.h',
68         'display_export.h',
69         'display_switches.cc',
70         'display_switches.h',
71       ],
72       'conditions': [
73         ['use_x11 == 1', {
74           'dependencies': [
75             '../../build/linux/system.gyp:x11',
76             '../../build/linux/system.gyp:xext',
77             '../../build/linux/system.gyp:xi',
78             '../../build/linux/system.gyp:xrandr',
79             '../../ui/events/platform/events_platform.gyp:events_platform',
80           ],
81         }],
82         ['chromeos == 1', {
83           'dependencies': [
84             'display_types',
85           ],
86         }],
87         ['chromeos == 1 and use_x11 == 1', {
88           'dependencies': [
89             '../gfx/x/gfx_x11.gyp:gfx_x11',
90           ],
91         }],
92         ['use_ozone == 1', {
93           'dependencies': [
94             '../../ui/ozone/ozone.gyp:ozone',
95           ],
96         }],
97       ],
98     },
99     {
100       # GN version: //ui/display/util
101       'target_name': 'display_util',
102       'type': '<(component)',
103       'dependencies': [
104         '../../base/base.gyp:base',
105         '../../ui/gfx/gfx.gyp:gfx_geometry',
106       ],
107       'defines': [
108         'DISPLAY_UTIL_IMPLEMENTATION',
109       ],
110       'sources': [
111         # Note: file list shared with GN build.
112         'util/display_util.cc',
113         'util/display_util.h',
114         'util/display_util_export.h',
115         'util/edid_parser.cc',
116         'util/edid_parser.h',
117         'util/x11/edid_parser_x11.cc',
118         'util/x11/edid_parser_x11.h',
119       ],
120       'conditions': [
121         ['use_x11 == 1', {
122           'dependencies': [
123             '../../build/linux/system.gyp:x11',
124             '../../build/linux/system.gyp:xrandr',
125             '../../ui/gfx/x/gfx_x11.gyp:gfx_x11',
126           ],
127         }],
128         ['chromeos == 1', {
129           'dependencies': [
130             'display_types',
131           ],
132         }],
133       ],
134     },
135     {
136       # Used to share stubs with code outside ui/display
137       #
138       # GN version: //ui/display:test_util
139       'target_name': 'display_test_util',
140       'type': '<(component)',
141       'dependencies': [
142         '../../base/base.gyp:base',
143         '../../ui/gfx/gfx.gyp:gfx',
144         '../../ui/gfx/gfx.gyp:gfx_geometry',
145       ],
146       'defines': [
147         'DISPLAY_IMPLEMENTATION',
148       ],
149       'sources': [
150         # Note: file list duplicated in GN build.
151         'chromeos/test/test_display_snapshot.cc',
152         'chromeos/test/test_display_snapshot.h',
153       ],
154       'conditions': [
155         ['chromeos == 1', {
156           'dependencies': [
157             'display_types',
158           ],
159         }],
160       ],
161     },
162     # Internal utilities used by display_unittests
163     {
164       'target_name': 'display_test_support',
165       'type': 'static_library',
166       'dependencies': [
167         '../../base/base.gyp:base',
168         '../../ui/gfx/gfx.gyp:gfx',
169         '../../ui/gfx/gfx.gyp:gfx_geometry',
170       ],
171       'sources': [
172         'chromeos/test/action_logger.cc',
173         'chromeos/test/action_logger.h',
174         'chromeos/test/action_logger_util.cc',
175         'chromeos/test/action_logger_util.h',
176         'chromeos/test/test_native_display_delegate.cc',
177         'chromeos/test/test_native_display_delegate.h',
178       ],
179     },
180     {
181       # GN version: //ui/display:display_unittests
182       'target_name': 'display_unittests',
183       'type': 'executable',
184       'dependencies': [
185         '../../base/base.gyp:run_all_unittests',
186         '../../testing/gtest.gyp:gtest',
187         '../../ui/gfx/gfx.gyp:gfx_geometry',
188         'display_util',
189       ],
190       'include_dirs': [
191         '../..',
192       ],
193       'sources': [
194         'chromeos/configure_displays_task_unittest.cc',
195         'chromeos/display_configurator_unittest.cc',
196         'chromeos/update_display_configuration_task_unittest.cc',
197         'chromeos/x11/display_util_x11_unittest.cc',
198         'chromeos/x11/native_display_event_dispatcher_x11_unittest.cc',
199         'util/display_util_unittest.cc',
200         'util/edid_parser_unittest.cc',
201       ],
202       'conditions': [
203         ['chromeos == 1', {
204           'dependencies': [
205             'display',
206             'display_test_support',
207             'display_test_util',
208             'display_types',
209           ],
210         }],
211       ],
212     },
213   ],