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_skia_unittest.cc', | |
19 'image/image_unittest.cc', | |
20 'image/image_unittest_util.cc', | |
21 'image/image_unittest_util.h', | |
22 'image/image_unittest_util_ios.mm', | |
23 'image/image_unittest_util_mac.mm', | |
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 'codec/jpeg_codec_unittest.cc', | |
38 'codec/png_codec_unittest.cc', | |
39 'color_analysis_unittest.cc', | |
40 'color_utils_unittest.cc', | |
41 'display_unittest.cc', | |
42 'geometry/box_unittest.cc', | |
43 'geometry/cubic_bezier_unittest.cc', | |
44 'geometry/insets_unittest.cc', | |
45 'geometry/matrix3_unittest.cc', | |
46 'geometry/point_unittest.cc', | |
47 'geometry/point3_unittest.cc', | |
48 'geometry/quad_unittest.cc', | |
49 'geometry/r_tree_unittest.cc', | |
50 'geometry/rect_unittest.cc', | |
51 'geometry/safe_integer_conversions_unittest.cc', | |
52 'geometry/size_unittest.cc', | |
53 'geometry/vector2d_unittest.cc', | |
54 'geometry/vector3d_unittest.cc', | |
55 'image/image_mac_unittest.mm', | |
56 'image/image_util_unittest.cc', | |
57 'range/range_mac_unittest.mm', | |
58 'range/range_unittest.cc', | |
59 'range/range_win_unittest.cc', | |
60 'sequential_id_generator_unittest.cc', | |
61 'shadow_value_unittest.cc', | |
62 'skbitmap_operations_unittest.cc', | |
63 'skrect_conversion_unittest.cc', | |
64 'transform_util_unittest.cc', | |
65 'utf16_indexing_unittest.cc', | |
66 ], | |
67 'dependencies': [ | |
68 '../../base/base.gyp:base', | |
69 '../../base/base.gyp:test_support_base', | |
70 '../../skia/skia.gyp:skia', | |
71 '../../testing/gtest.gyp:gtest', | |
72 '../../third_party/libpng/libpng.gyp:libpng', | |
73 '../base/ui_base.gyp:ui_base', | |
74 'gfx.gyp:gfx', | |
75 'gfx.gyp:gfx_geometry', | |
76 'gfx.gyp:gfx_test_support', | |
77 ], | |
78 'conditions': [ | |
79 ['use_x11==1', { | |
80 'dependencies': [ | |
81 '../../build/linux/system.gyp:x11', | |
tfarina
2014/05/18 05:18:36
I added this in the hope to fix the undefined X er
| |
82 ], | |
83 }], | |
84 ['OS == "ios"', { | |
85 'sources': ['<@(_common_sources)'], | |
86 }, { # OS != "ios" | |
87 'sources': ['<@(_all_sources)'], | |
88 }], | |
89 ['OS == "win"', { | |
90 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
91 'msvs_disabled_warnings': [ 4267, ], | |
92 }], | |
93 ['OS != "mac" and OS != "ios"', { | |
94 'sources': [ | |
95 'transform_unittest.cc', | |
96 'interpolated_transform_unittest.cc', | |
97 ], | |
98 }], | |
99 ['use_pango == 1', { | |
100 'dependencies': [ | |
101 '../../build/linux/system.gyp:fontconfig', | |
102 '../../build/linux/system.gyp:pangocairo', | |
103 ], | |
104 'sources': [ | |
105 'platform_font_pango_unittest.cc', | |
106 ], | |
107 'conditions': [ | |
108 ['use_allocator!="none"', { | |
109 'dependencies': [ | |
110 '../../base/allocator/allocator.gyp:allocator', | |
111 ], | |
112 }], | |
113 ], | |
114 }], | |
115 ['use_ozone==1 and use_pango==0', { | |
116 'sources!': [ | |
117 'font_unittest.cc', | |
118 'text_elider_unittest.cc', | |
119 ], | |
120 }], | |
121 ], | |
122 } | |
123 ], | |
124 'conditions': [ | |
125 ['OS == "android"', { | |
126 'targets': [ | |
127 { | |
128 'target_name': 'gfx_unittests_apk', | |
129 'type': 'none', | |
130 'dependencies': [ | |
131 'gfx_unittests', | |
132 ], | |
133 'variables': { | |
134 'test_suite_name': 'gfx_unittests', | |
135 }, | |
136 'includes': [ '../../build/apk_test.gypi' ], | |
137 }, | |
138 ], | |
139 }], | |
140 ], | |
141 } | |
OLD | NEW |