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