blob: 44d053e0b021e728238fbba496341ffccd524199 [file] [log] [blame]
epoger@google.comccdbd2c2011-06-02 14:38:23 +00001# GYP file to build unit tests.
epoger@google.comccdbd2c2011-06-02 14:38:23 +00002{
3 'includes': [
4 'apptype_console.gypi',
epoger@google.comccdbd2c2011-06-02 14:38:23 +00005 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +00006 'targets': [
7 {
8 'target_name': 'tests',
9 'type': 'executable',
commit-bot@chromium.org79e13262014-02-25 20:02:09 +000010 'include_dirs' : [
11 '../src/core',
12 '../src/effects',
13 '../src/image',
14 '../src/lazy',
15 '../src/images',
16 '../src/pathops',
17 '../src/pdf',
18 '../src/pipe/utils',
19 '../src/utils',
20 '../src/utils/debugger',
21 '../tools/',
22
23 # Needed for TDStackNesterTest.
24 '../experimental/PdfViewer',
25 '../experimental/PdfViewer/src',
26 ],
caryclark@google.comf685a222013-04-19 11:45:56 +000027 'includes': [
caryclark@google.comf685a222013-04-19 11:45:56 +000028 'pathops_unittest.gypi',
29 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000030 'sources': [
commit-bot@chromium.org79e13262014-02-25 20:02:09 +000031 '../tests/AAClipTest.cpp',
32 '../tests/ARGBImageEncoderTest.cpp',
33 '../tests/AndroidPaintTest.cpp',
34 '../tests/AnnotationTest.cpp',
35 '../tests/AtomicTest.cpp',
36 '../tests/BBoxHierarchyTest.cpp',
37 '../tests/BitSetTest.cpp',
38 '../tests/BitmapCopyTest.cpp',
39 '../tests/BitmapGetColorTest.cpp',
40 '../tests/BitmapHasherTest.cpp',
41 '../tests/BitmapHeapTest.cpp',
42 '../tests/BitmapTest.cpp',
commit-bot@chromium.org7f428a92014-02-25 21:31:03 +000043 '../tests/BlendTest.cpp',
commit-bot@chromium.org79e13262014-02-25 20:02:09 +000044 '../tests/BlitRowTest.cpp',
45 '../tests/BlurTest.cpp',
46 '../tests/CachedDecodingPixelRefTest.cpp',
47 '../tests/CanvasStateTest.cpp',
48 '../tests/CanvasTest.cpp',
49 '../tests/ChecksumTest.cpp',
50 '../tests/ClampRangeTest.cpp',
51 '../tests/ClipCacheTest.cpp',
52 '../tests/ClipCubicTest.cpp',
53 '../tests/ClipStackTest.cpp',
54 '../tests/ClipperTest.cpp',
55 '../tests/ColorFilterTest.cpp',
56 '../tests/ColorPrivTest.cpp',
57 '../tests/ColorTest.cpp',
58 '../tests/DataRefTest.cpp',
59 '../tests/DeferredCanvasTest.cpp',
60 '../tests/DequeTest.cpp',
61 '../tests/DeviceLooperTest.cpp',
62 '../tests/DiscardableMemoryPool.cpp',
63 '../tests/DiscardableMemoryTest.cpp',
64 '../tests/DocumentTest.cpp',
65 '../tests/DrawBitmapRectTest.cpp',
66 '../tests/DrawPathTest.cpp',
67 '../tests/DrawTextTest.cpp',
68 '../tests/DynamicHashTest.cpp',
69 '../tests/EmptyPathTest.cpp',
70 '../tests/ErrorTest.cpp',
71 '../tests/FillPathTest.cpp',
72 '../tests/FitsInTest.cpp',
73 '../tests/FlatDataTest.cpp',
74 '../tests/FlateTest.cpp',
75 '../tests/FontHostStreamTest.cpp',
76 '../tests/FontHostTest.cpp',
77 '../tests/FontMgrTest.cpp',
78 '../tests/FontNamesTest.cpp',
79 '../tests/FrontBufferedStreamTest.cpp',
80 '../tests/GLInterfaceValidation.cpp',
81 '../tests/GLProgramsTest.cpp',
82 '../tests/GeometryTest.cpp',
83 '../tests/GifTest.cpp',
84 '../tests/GpuBitmapCopyTest.cpp',
85 '../tests/GpuColorFilterTest.cpp',
86 '../tests/GpuDrawPathTest.cpp',
87 '../tests/GrBinHashKeyTest.cpp',
88 '../tests/GrContextFactoryTest.cpp',
89 '../tests/GrDrawTargetTest.cpp',
90 '../tests/GrMemoryPoolTest.cpp',
91 '../tests/GrRedBlackTreeTest.cpp',
92 '../tests/GrSurfaceTest.cpp',
93 '../tests/GrTBSearchTest.cpp',
94 '../tests/GradientTest.cpp',
95 '../tests/HashCacheTest.cpp',
96 '../tests/ImageCacheTest.cpp',
97 '../tests/ImageDecodingTest.cpp',
98 '../tests/ImageFilterTest.cpp',
99 '../tests/InfRectTest.cpp',
100 '../tests/JpegTest.cpp',
101 '../tests/LListTest.cpp',
102 '../tests/LayerDrawLooperTest.cpp',
103 '../tests/MD5Test.cpp',
104 '../tests/MallocPixelRefTest.cpp',
105 '../tests/MathTest.cpp',
106 '../tests/Matrix44Test.cpp',
107 '../tests/MatrixClipCollapseTest.cpp',
108 '../tests/MatrixTest.cpp',
109 '../tests/MemoryTest.cpp',
110 '../tests/MemsetTest.cpp',
111 '../tests/MessageBusTest.cpp',
112 '../tests/MetaDataTest.cpp',
113 '../tests/MipMapTest.cpp',
114 '../tests/OSPathTest.cpp',
115 '../tests/OnceTest.cpp',
116 '../tests/PDFPrimitivesTest.cpp',
117 '../tests/PackBitsTest.cpp',
118 '../tests/PaintTest.cpp',
119 '../tests/ParsePathTest.cpp',
120 '../tests/PathCoverageTest.cpp',
121 '../tests/PathMeasureTest.cpp',
122 '../tests/PathTest.cpp',
123 '../tests/PathUtilsTest.cpp',
124 '../tests/PictureTest.cpp',
125 '../tests/PictureUtilsTest.cpp',
126 '../tests/PipeTest.cpp',
127 '../tests/PixelRefTest.cpp',
128 '../tests/PointTest.cpp',
129 '../tests/PremulAlphaRoundTripTest.cpp',
130 '../tests/QuickRejectTest.cpp',
131 '../tests/RTreeTest.cpp',
132 '../tests/RandomTest.cpp',
133 '../tests/ReadPixelsTest.cpp',
134 '../tests/ReadWriteAlphaTest.cpp',
135 '../tests/Reader32Test.cpp',
136 '../tests/RefCntTest.cpp',
137 '../tests/RefDictTest.cpp',
138 '../tests/RegionTest.cpp',
139 '../tests/ResourceCacheTest.cpp',
140 '../tests/RoundRectTest.cpp',
141 '../tests/RuntimeConfigTest.cpp',
142 '../tests/SHA1Test.cpp',
143 '../tests/ScalarTest.cpp',
144 '../tests/SerializationTest.cpp',
145 '../tests/ShaderImageFilterTest.cpp',
146 '../tests/ShaderOpacityTest.cpp',
147 '../tests/SkBase64Test.cpp',
148 '../tests/SortTest.cpp',
149 '../tests/SrcOverTest.cpp',
150 '../tests/StreamTest.cpp',
151 '../tests/StringTest.cpp',
152 '../tests/StrokeTest.cpp',
153 '../tests/SurfaceTest.cpp',
154 '../tests/TLSTest.cpp',
155 '../tests/TSetTest.cpp',
156 '../tests/Test.cpp',
157 '../tests/Test.h',
158 '../tests/TestSize.cpp',
159 '../tests/TileGridTest.cpp',
160 '../tests/TracingTest.cpp',
161 '../tests/ToUnicode.cpp',
162 '../tests/Typeface.cpp',
163 '../tests/UnicodeTest.cpp',
164 '../tests/UnitTestTest.cpp',
165 '../tests/UtilsTest.cpp',
166 '../tests/WArrayTest.cpp',
167 '../tests/WritePixelsTest.cpp',
168 '../tests/Writer32Test.cpp',
169 '../tests/XfermodeTest.cpp',
tfarina@chromium.orgceddfeb2014-01-30 22:51:42 +0000170 '../tests/skia_test.cpp',
commit-bot@chromium.org79e13262014-02-25 20:02:09 +0000171
172 '../experimental/PdfViewer/src/SkTDStackNester.h',
173 '../tests/TDStackNesterTest.cpp',
174
175 # Needed for PipeTest.
176 '../src/pipe/utils/SamplePipeControllers.cpp',
177
178 # Needed for MatrixClipCollapse test.
179 '../src/utils/debugger/SkDrawCommand.h',
180 '../src/utils/debugger/SkDrawCommand.cpp',
181 '../src/utils/debugger/SkDebugCanvas.h',
182 '../src/utils/debugger/SkDebugCanvas.cpp',
183 '../src/utils/debugger/SkObjectParser.h',
184 '../src/utils/debugger/SkObjectParser.cpp',
185 ],
186 'dependencies': [
187 'skia_lib.gyp:skia_lib',
188 'flags.gyp:flags',
189 'experimental.gyp:experimental',
190 'pdf.gyp:pdf',
191 'tools.gyp:picture_utils',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000192 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000193 'conditions': [
194 [ 'skia_gpu == 1', {
195 'include_dirs': [
196 '../src/gpu',
197 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000198 }],
199 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000200 },
201 ],
202}