[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / ui / display / display.gyp
blobef2dddfa2ffb1f10b1b9099dea11072239c774de
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/chromeos/display_mode.cc',
24         'types/chromeos/display_mode.h',
25         'types/chromeos/display_snapshot.cc',
26         'types/chromeos/display_snapshot.h',
27         'types/chromeos/native_display_delegate.h',
28         'types/chromeos/native_display_observer.h',
29         'types/chromeos/touchscreen_device.cc',
30         'types/chromeos/touchscreen_device.h',
31         'types/chromeos/touchscreen_device_manager.h',
32         'types/display_constants.h',
33         'types/display_types_export.h',
34       ],
35     },
36     {
37       # GN version: //ui/display
38       'target_name': 'display',
39       'type': '<(component)',
40       'dependencies': [
41         '../../base/base.gyp:base',
42         '../../ui/gfx/gfx.gyp:gfx',
43         '../../ui/gfx/gfx.gyp:gfx_geometry',
44         'display_util',
45       ],
46       'defines': [
47         'DISPLAY_IMPLEMENTATION',
48       ],
49       'sources': [
50         # Note: file list duplicated in GN build.
51         'chromeos/display_configurator.cc',
52         'chromeos/display_configurator.h',
53         'chromeos/touchscreen_delegate_impl.cc',
54         'chromeos/touchscreen_delegate_impl.h',
55         'chromeos/ozone/display_configurator_ozone.cc',
56         'chromeos/x11/display_configurator_x11.cc',
57         'chromeos/x11/display_mode_x11.cc',
58         'chromeos/x11/display_mode_x11.h',
59         'chromeos/x11/display_snapshot_x11.cc',
60         'chromeos/x11/display_snapshot_x11.h',
61         'chromeos/x11/display_util_x11.cc',
62         'chromeos/x11/display_util_x11.h',
63         'chromeos/x11/native_display_delegate_x11.cc',
64         'chromeos/x11/native_display_delegate_x11.h',
65         'chromeos/x11/native_display_event_dispatcher_x11.cc',
66         'chromeos/x11/native_display_event_dispatcher_x11.h',
67         'chromeos/x11/touchscreen_device_manager_x11.cc',
68         'chromeos/x11/touchscreen_device_manager_x11.h',
69         'display_export.h',
70         'display_switches.cc',
71         'display_switches.h',
72       ],
73       'conditions': [
74         ['use_x11 == 1', {
75           'dependencies': [
76             '../../build/linux/system.gyp:x11',
77             '../../build/linux/system.gyp:xext',
78             '../../build/linux/system.gyp:xi',
79             '../../build/linux/system.gyp:xrandr',
80             '../../ui/events/platform/events_platform.gyp:events_platform',
81           ],
82         }],
83         ['chromeos == 1', {
84           'dependencies': [
85             'display_types',
86           ],
87         }],
88         ['use_ozone == 1', {
89           'dependencies': [
90             '../../ui/ozone/ozone.gyp:ozone',
91           ],
92         }],
93       ],
94     },
95     {
96       # GN version: //ui/display/util
97       'target_name': 'display_util',
98       'type': '<(component)',
99       'dependencies': [
100         '../../base/base.gyp:base',
101         '../../ui/gfx/gfx.gyp:gfx_geometry',
102       ],
103       'defines': [
104         'DISPLAY_UTIL_IMPLEMENTATION',
105       ],
106       'sources': [
107         # Note: file list shared with GN build.
108         'util/display_util.cc',
109         'util/display_util.h',
110         'util/display_util_export.h',
111         'util/edid_parser.cc',
112         'util/edid_parser.h',
113         'util/x11/edid_parser_x11.cc',
114         'util/x11/edid_parser_x11.h',
115       ],
116       'conditions': [
117         ['use_x11 == 1', {
118           'dependencies': [
119             '../../build/linux/system.gyp:xrandr',
120             '../../ui/gfx/x/gfx_x11.gyp:gfx_x11',
121           ],
122         }],
123         ['chromeos == 1', {
124           'dependencies': [
125             'display_types',
126           ],
127         }],
128       ],
129     },
130     {
131       # GN version: //ui/display:test_util
132       'target_name': 'display_test_util',
133       'type': '<(component)',
134       'dependencies': [
135         '../../base/base.gyp:base',
136         '../../ui/gfx/gfx.gyp:gfx',
137         '../../ui/gfx/gfx.gyp:gfx_geometry',
138       ],
139       'defines': [
140         'DISPLAY_IMPLEMENTATION',
141       ],
142       'sources': [
143         # Note: file list duplicated in GN build.
144         'chromeos/test/test_display_snapshot.cc',
145         'chromeos/test/test_display_snapshot.h',
146       ],
147       'conditions': [
148         ['chromeos == 1', {
149           'dependencies': [
150             'display_types',
151           ],
152         }],
153       ],
154     },
155     {
156       # GN version: //ui/display:display_unittests
157       'target_name': 'display_unittests',
158       'type': 'executable',
159       'dependencies': [
160         '../../base/base.gyp:run_all_unittests',
161         '../../testing/gtest.gyp:gtest',
162         '../../ui/gfx/gfx.gyp:gfx_geometry',
163         'display_util',
164       ],
165       'include_dirs': [
166         '../..',
167       ],
168       'sources': [
169         'chromeos/display_configurator_unittest.cc',
170         'chromeos/touchscreen_delegate_impl_unittest.cc',
171         'chromeos/x11/display_util_x11_unittest.cc',
172         'chromeos/x11/native_display_event_dispatcher_x11_unittest.cc',
173         'util/display_util_unittest.cc',
174         'util/edid_parser_unittest.cc',
175       ],
176       'conditions': [
177         ['chromeos == 1', {
178           'dependencies': [
179             'display',
180             'display_test_util',
181             'display_types',
182           ],
183         }],
184       ],
185     },
186   ],