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