[Cronet] Delay StartNetLog and StopNetLog until native request context is initialized
[chromium-blink-merge.git] / ui / gfx / gfx_tests.gyp
blob9dcbdb4adbd6eeb880998a914a98a201736f8597
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/r_tree_unittest.cc',
57         'geometry/rect_unittest.cc',
58         'geometry/safe_integer_conversions_unittest.cc',
59         'geometry/scroll_offset_unittest.cc',
60         'geometry/size_unittest.cc',
61         'geometry/vector2d_unittest.cc',
62         'geometry/vector3d_unittest.cc',
63         'image/image_mac_unittest.mm',
64         'image/image_util_unittest.cc',
65         'mac/coordinate_conversion_unittest.mm',
66         'nine_image_painter_unittest.cc',
67         'platform_font_linux_unittest.cc',
68         'platform_font_mac_unittest.mm',
69         'range/range_mac_unittest.mm',
70         'range/range_unittest.cc',
71         'range/range_win_unittest.cc',
72         'render_text_unittest.cc',
73         'sequential_id_generator_unittest.cc',
74         'shadow_value_unittest.cc',
75         'skbitmap_operations_unittest.cc',
76         'skrect_conversion_unittest.cc',
77         'transform_util_unittest.cc',
78         'utf16_indexing_unittest.cc',
79       ],
80       'dependencies': [
81         '../../base/base.gyp:base',
82         '../../base/base.gyp:test_support_base',
83         '../../skia/skia.gyp:skia',
84         '../../testing/gtest.gyp:gtest',
85         '../../third_party/libpng/libpng.gyp:libpng',
86         '../base/ui_base.gyp:ui_base',
87         '../resources/ui_resources.gyp:ui_test_pak',
88         'gfx.gyp:gfx',
89         'gfx.gyp:gfx_geometry',
90         'gfx.gyp:gfx_test_support',
91       ],
92       'conditions': [
93         ['OS == "ios"', {
94           'sources': ['<@(_common_sources)'],
95         }, {  # OS != "ios"
96           'sources': ['<@(_all_sources)'],
97         }],
98         ['OS != "mac" and OS != "ios"', {
99           'sources': [
100             'interpolated_transform_unittest.cc',
101             'transform_unittest.cc',
102           ],
103         }],
104         ['OS == "android"', {
105           'dependencies': [
106             '../../testing/android/native_test.gyp:native_test_native_code',
107           ],
108           # Do not run display_change_notifier_unittest.cc on Android because it
109           # does not compile display_observer.cc
110           'sources!': [
111             'display_change_notifier_unittest.cc',
112           ],
113         }],
114         ['OS=="android" or OS=="ios"', {
115           'sources!': [
116             'render_text_unittest.cc',
117           ],
118         }],
119         ['use_aura==1', {
120           'sources!': [
121             'screen_unittest.cc',
122           ],
123         },{
124           'sources!': [
125             'nine_image_painter_unittest.cc',
126           ],
127         }],
128         ['OS == "win"', {
129           'sources': [
130             'color_profile_win_unittest.cc',
131             'font_fallback_win_unittest.cc',
132             'icon_util_unittest.cc',
133             'icon_util_unittests.rc',
134             'path_win_unittest.cc',
135             'platform_font_win_unittest.cc',
136           ],
137           'msvs_settings': {
138             'VCLinkerTool': {
139               'DelayLoadDLLs': [
140                 'd2d1.dll',
141                 'd3d10_1.dll',
142               ],
143               'AdditionalDependencies': [
144                 'd2d1.lib',
145                 'd3d10_1.lib',
146               ],
147             },
148           },
149           'link_settings': {
150             'libraries': [
151               '-limm32.lib',
152               '-loleacc.lib',
153             ],
154           },
155           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
156           'msvs_disabled_warnings': [ 4267, ],
157         }],
158       ],
159     }
160   ],
161   'conditions': [
162     ['OS == "android"', {
163       'targets': [
164         {
165           'target_name': 'gfx_unittests_apk',
166           'type': 'none',
167           'dependencies': [
168             '../android/ui_android.gyp:ui_java',
169             'gfx_unittests',
170           ],
171           'variables': {
172             'test_suite_name': 'gfx_unittests',
173           },
174           'includes': [ '../../build/apk_test.gypi' ],
175         },
176       ],
177     }],
178     ['test_isolation_mode != "noop"', {
179       'targets': [
180         {
181           'target_name': 'gfx_unittests_run',
182           'type': 'none',
183           'dependencies': [
184             'gfx_unittests',
185           ],
186           'includes': [
187             '../../build/isolate.gypi',
188           ],
189           'sources': [
190             'gfx_unittests.isolate',
191           ],
192           'conditions': [
193             ['use_x11 == 1', {
194               'dependencies': [
195                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
196               ],
197             }],
198           ],
199         },
200       ],
201     }],
202   ],