ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / ui / gfx / gfx_tests.gyp
blobf4d30e21be2275758aa54e1543e9a0ab1cb11c5b
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': 'gfx_unittests',
12       'type': '<(gtest_target_type)',
13       # iOS uses a small subset of ui. common_sources are the only files that
14       # are built on iOS.
15       'common_sources' : [
16         'font_unittest.cc',
17         'image/image_family_unittest.cc',
18         'image/image_ios_unittest.mm',
19         'image/image_skia_unittest.cc',
20         'image/image_unittest.cc',
21         'screen_unittest.cc',
22         'test/run_all_unittests.cc',
23         'text_elider_unittest.cc',
24         'text_utils_unittest.cc',
25       ],
26       'all_sources': [
27         '<@(_common_sources)',
28         'animation/animation_container_unittest.cc',
29         'animation/animation_unittest.cc',
30         'animation/multi_animation_unittest.cc',
31         'animation/slide_animation_unittest.cc',
32         'animation/tween_unittest.cc',
33         'blit_unittest.cc',
34         'break_list_unittest.cc',
35         'canvas_unittest.cc',
36         'canvas_unittest_mac.mm',
37         'codec/jpeg_codec_unittest.cc',
38         'codec/png_codec_unittest.cc',
39         'color_analysis_unittest.cc',
40         'color_profile_mac_unittest.mm',
41         'color_utils_unittest.cc',
42         'display_change_notifier_unittest.cc',
43         'display_unittest.cc',
44         'font_list_unittest.cc',
45         'font_render_params_linux_unittest.cc',
46         'geometry/box_unittest.cc',
47         'geometry/cubic_bezier_unittest.cc',
48         'geometry/insets_unittest.cc',
49         'geometry/matrix3_unittest.cc',
50         'geometry/point3_unittest.cc',
51         'geometry/point_unittest.cc',
52         'geometry/quad_unittest.cc',
53         'geometry/r_tree_unittest.cc',
54         'geometry/rect_unittest.cc',
55         'geometry/safe_integer_conversions_unittest.cc',
56         'geometry/scroll_offset_unittest.cc',
57         'geometry/size_unittest.cc',
58         'geometry/vector2d_unittest.cc',
59         'geometry/vector3d_unittest.cc',
60         'image/image_mac_unittest.mm',
61         'image/image_util_unittest.cc',
62         'mac/coordinate_conversion_unittest.mm',
63         'platform_font_linux_unittest.cc',
64         'platform_font_mac_unittest.mm',
65         'range/range_mac_unittest.mm',
66         'range/range_unittest.cc',
67         'range/range_win_unittest.cc',
68         'render_text_unittest.cc',
69         'sequential_id_generator_unittest.cc',
70         'shadow_value_unittest.cc',
71         'skbitmap_operations_unittest.cc',
72         'skrect_conversion_unittest.cc',
73         'transform_util_unittest.cc',
74         'utf16_indexing_unittest.cc',
75       ],
76       'dependencies': [
77         '../../base/base.gyp:base',
78         '../../base/base.gyp:test_support_base',
79         '../../skia/skia.gyp:skia',
80         '../../testing/gtest.gyp:gtest',
81         '../../third_party/libpng/libpng.gyp:libpng',
82         '../base/ui_base.gyp:ui_base',
83         '../resources/ui_resources.gyp:ui_test_pak',
84         'gfx.gyp:gfx',
85         'gfx.gyp:gfx_geometry',
86         'gfx.gyp:gfx_test_support',
87       ],
88       'conditions': [
89         ['OS == "ios"', {
90           'sources': ['<@(_common_sources)'],
91         }, {  # OS != "ios"
92           'sources': ['<@(_all_sources)'],
93         }],
94         ['OS != "mac" and OS != "ios"', {
95           'sources': [
96             'interpolated_transform_unittest.cc',
97             'transform_unittest.cc',
98           ],
99         }],
100         ['OS == "android"', {
101           'dependencies': [
102             '../../testing/android/native_test.gyp:native_test_native_code',
103           ],
104           # Do not run display_change_notifier_unittest.cc on Android because it
105           # does not compile display_observer.cc
106           'sources!': [
107             'display_change_notifier_unittest.cc',
108           ],
109         }],
110         ['OS=="android" or OS=="ios"', {
111           'sources!': [
112             'render_text_unittest.cc',
113           ],
114         }],
115         ['use_aura==1', {
116           'sources!': [
117             'screen_unittest.cc',
118           ],
119         }],
120         ['OS == "win"', {
121           'sources': [
122             'color_profile_win_unittest.cc',
123             'font_fallback_win_unittest.cc',
124             'icon_util_unittest.cc',
125             'icon_util_unittests.rc',
126             'path_win_unittest.cc',
127             'platform_font_win_unittest.cc',
128           ],
129           'msvs_settings': {
130             'VCLinkerTool': {
131               'DelayLoadDLLs': [
132                 'd2d1.dll',
133                 'd3d10_1.dll',
134               ],
135               'AdditionalDependencies': [
136                 'd2d1.lib',
137                 'd3d10_1.lib',
138               ],
139             },
140           },
141           'link_settings': {
142             'libraries': [
143               '-limm32.lib',
144               '-loleacc.lib',
145             ],
146           },
147           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
148           'msvs_disabled_warnings': [ 4267, ],
149         }],
150       ],
151     }
152   ],
153   'conditions': [
154     ['OS == "android"', {
155       'targets': [
156         {
157           'target_name': 'gfx_unittests_apk',
158           'type': 'none',
159           'dependencies': [
160             '../android/ui_android.gyp:ui_java',
161             'gfx_unittests',
162           ],
163           'variables': {
164             'test_suite_name': 'gfx_unittests',
165           },
166           'includes': [ '../../build/apk_test.gypi' ],
167         },
168       ],
169     }],
170     ['test_isolation_mode != "noop"', {
171       'targets': [
172         {
173           'target_name': 'gfx_unittests_run',
174           'type': 'none',
175           'dependencies': [
176             'gfx_unittests',
177           ],
178           'includes': [
179             '../../build/isolate.gypi',
180           ],
181           'sources': [
182             'gfx_unittests.isolate',
183           ],
184           'conditions': [
185             ['use_x11 == 1', {
186               'dependencies': [
187                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
188               ],
189             }],
190           ],
191         },
192       ],
193     }],
194   ],