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