Roll android_tools deps to the latest.
[chromium-blink-merge.git] / ui / display / display.gyp
blob4b2ca521e6c4cdd4976e2fbc2d8b37359db8b956
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       'target_name': 'display_types',
12       'type': '<(component)',
13       'dependencies': [
14         '../../base/base.gyp:base',
15         '../../ui/gfx/gfx.gyp:gfx_geometry',
16       ],
17       'defines': [
18         'DISPLAY_TYPES_IMPLEMENTATION',
19       ],
20       'sources': [
21         'types/chromeos/display_mode.cc',
22         'types/chromeos/display_mode.h',
23         'types/chromeos/display_snapshot.cc',
24         'types/chromeos/display_snapshot.h',
25         'types/chromeos/native_display_delegate.h',
26         'types/chromeos/native_display_observer.h',
27         'types/chromeos/touchscreen_device.cc',
28         'types/chromeos/touchscreen_device.h',
29         'types/chromeos/touchscreen_device_manager.h',
30         'types/display_constants.h',
31         'types/display_types_export.h',
32       ],
33     },
34     {
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         'chromeos/display_configurator.cc',
48         'chromeos/display_configurator.h',
49         'chromeos/touchscreen_delegate_impl.cc',
50         'chromeos/touchscreen_delegate_impl.h',
51         'chromeos/ozone/display_configurator_ozone.cc',
52         'chromeos/x11/display_configurator_x11.cc',
53         'chromeos/x11/display_mode_x11.cc',
54         'chromeos/x11/display_mode_x11.h',
55         'chromeos/x11/display_snapshot_x11.cc',
56         'chromeos/x11/display_snapshot_x11.h',
57         'chromeos/x11/display_util_x11.cc',
58         'chromeos/x11/display_util_x11.h',
59         'chromeos/x11/native_display_delegate_x11.cc',
60         'chromeos/x11/native_display_delegate_x11.h',
61         'chromeos/x11/native_display_event_dispatcher_x11.cc',
62         'chromeos/x11/native_display_event_dispatcher_x11.h',
63         'chromeos/x11/touchscreen_device_manager_x11.cc',
64         'chromeos/x11/touchscreen_device_manager_x11.h',
65         'display_export.h',
66         'display_switches.cc',
67         'display_switches.h',
68       ],
69       'conditions': [
70         ['use_x11 == 1', {
71           'dependencies': [
72             '../../build/linux/system.gyp:x11',
73             '../../build/linux/system.gyp:xext',
74             '../../build/linux/system.gyp:xi',
75             '../../build/linux/system.gyp:xrandr',
76           ],
77         }],
78         ['chromeos == 1', {
79           'dependencies': [
80             'display_types',
81           ],
82         }],
83         ['use_ozone == 1', {
84           'dependencies': [
85             '../../ui/ozone/ozone.gyp:ozone',
86           ],
87         }],
88       ],
89     },
90     {
91       'target_name': 'display_util',
92       'type': '<(component)',
93       'dependencies': [
94         '../../base/base.gyp:base',
95         '../../ui/gfx/gfx.gyp:gfx_geometry',
96       ],
97       'defines': [
98         'DISPLAY_UTIL_IMPLEMENTATION',
99       ],
100       'sources': [
101         'util/display_util.cc',
102         'util/display_util.h',
103         'util/display_util_export.h',
104         'util/edid_parser.cc',
105         'util/edid_parser.h',
106         'util/x11/edid_parser_x11.cc',
107         'util/x11/edid_parser_x11.h',
108       ],
109       'conditions': [
110         ['use_x11 == 1', {
111           'dependencies': [
112             '../../build/linux/system.gyp:xrandr',
113             '../../ui/gfx/x/gfx_x11.gyp:gfx_x11',
114           ],
115         }],
116         ['chromeos == 1', {
117           'dependencies': [
118             'display_types',
119           ],
120         }],
121       ],
122     },
123     {
124       'target_name': 'display_test_util',
125       'type': '<(component)',
126       'dependencies': [
127         '../../base/base.gyp:base',
128         '../../ui/gfx/gfx.gyp:gfx',
129         '../../ui/gfx/gfx.gyp:gfx_geometry',
130       ],
131       'defines': [
132         'DISPLAY_IMPLEMENTATION',
133       ],
134       'sources': [
135         'chromeos/test/test_display_snapshot.cc',
136         'chromeos/test/test_display_snapshot.h',
137       ],
138       'conditions': [
139         ['chromeos == 1', {
140           'dependencies': [
141             'display_types',
142           ],
143         }],
144       ],
145     },
146     {
147       'target_name': 'display_unittests',
148       'type': 'executable',
149       'dependencies': [
150         '../../base/base.gyp:run_all_unittests',
151         '../../testing/gtest.gyp:gtest',
152         'display_util',
153       ],
154       'include_dirs': [
155         '../..',
156       ],
157       'sources': [
158         'util/edid_parser_unittest.cc',
159       ],
160     },
161   ],