blob: d5efbbacd594bc611d559eef17c6396ad3176bb8 [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
commit-bot@chromium.orga5572e52014-03-07 03:24:41 +00005# Common gypi for unit tests.
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +00006{
7 'include_dirs': [
8 '../src/core',
9 '../src/effects',
10 '../src/image',
11 '../src/lazy',
12 '../src/images',
13 '../src/pathops',
14 '../src/pdf',
15 '../src/pipe/utils',
16 '../src/utils',
17 '../src/utils/debugger',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000018
19 # Needed for TDStackNesterTest.
20 '../experimental/PdfViewer',
21 '../experimental/PdfViewer/src',
22 ],
23 'dependencies': [
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000024 'experimental.gyp:experimental',
caryclark17f0b6d2014-07-22 10:15:34 -070025 'flags.gyp:flags_common',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000026 'pdf.gyp:pdf',
tfarinabcbc1782014-06-18 14:32:48 -070027 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000028 'tools.gyp:picture_utils',
mtklein9ac68ee2014-06-20 11:29:20 -070029 'tools.gyp:resources',
tfarina20108912014-06-21 10:54:17 -070030 'tools.gyp:sk_tool_utils',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000031 ],
djsollen85d36522014-07-22 13:56:34 -070032 'conditions': [
tomhudsonf79673b2014-08-05 06:36:11 -070033 [ 'skia_os == "android"', {
tomhudsonf79673b2014-08-05 06:36:11 -070034 'include_dirs': [
35 '../src/ports',
36 ],
37 'sources': [
38 '../tests/FontConfigParser.cpp',
39 ],
40 }],
djsollen85d36522014-07-22 13:56:34 -070041 [ 'skia_android_framework == 1', {
42 'libraries': [
43 '-ldl',
44 ],
45 }],
46 ],
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000047 'sources': [
48 '../tests/Test.cpp',
49 '../tests/Test.h',
50
51 '../tests/AAClipTest.cpp',
52 '../tests/ARGBImageEncoderTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000053 '../tests/AnnotationTest.cpp',
commit-bot@chromium.orgaec14382014-04-22 15:21:18 +000054 '../tests/AsADashTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000055 '../tests/AtomicTest.cpp',
scroggob61e2062014-11-10 13:12:25 -080056 '../tests/BadIcoTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000057 '../tests/BitSetTest.cpp',
58 '../tests/BitmapCopyTest.cpp',
59 '../tests/BitmapGetColorTest.cpp',
60 '../tests/BitmapHasherTest.cpp',
61 '../tests/BitmapHeapTest.cpp',
62 '../tests/BitmapTest.cpp',
63 '../tests/BlendTest.cpp',
64 '../tests/BlitRowTest.cpp',
65 '../tests/BlurTest.cpp',
reede3323962014-10-24 11:16:19 -070066 '../tests/CTest.cpp',
reed9d93c2e2014-10-08 05:17:12 -070067 '../tests/CachedDataTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000068 '../tests/CachedDecodingPixelRefTest.cpp',
scroggo24519372014-07-22 12:38:55 -070069 '../tests/CanvasStateHelpers.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000070 '../tests/CanvasStateTest.cpp',
71 '../tests/CanvasTest.cpp',
72 '../tests/ChecksumTest.cpp',
73 '../tests/ClampRangeTest.cpp',
74 '../tests/ClipCacheTest.cpp',
75 '../tests/ClipCubicTest.cpp',
76 '../tests/ClipStackTest.cpp',
77 '../tests/ClipperTest.cpp',
halcanarya096d7a2015-03-27 12:16:53 -070078 '../tests/CodexTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000079 '../tests/ColorFilterTest.cpp',
80 '../tests/ColorPrivTest.cpp',
81 '../tests/ColorTest.cpp',
halcanary3a6672a2015-02-13 15:12:52 -080082 '../tests/CPlusPlusEleven.cpp',
commit-bot@chromium.orgaf5346a2014-03-18 17:38:34 +000083 '../tests/DashPathEffectTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000084 '../tests/DataRefTest.cpp',
85 '../tests/DeferredCanvasTest.cpp',
halcanary1b5c6042015-02-18 11:29:56 -080086 '../tests/DeflateWStream.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000087 '../tests/DequeTest.cpp',
88 '../tests/DeviceLooperTest.cpp',
commit-bot@chromium.org085a6e42014-03-03 19:23:28 +000089 '../tests/DiscardableMemoryPoolTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000090 '../tests/DiscardableMemoryTest.cpp',
91 '../tests/DocumentTest.cpp',
92 '../tests/DrawBitmapRectTest.cpp',
93 '../tests/DrawPathTest.cpp',
reeda6441162015-03-26 13:40:09 -070094 '../tests/DrawTextTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000095 '../tests/DynamicHashTest.cpp',
96 '../tests/EmptyPathTest.cpp',
97 '../tests/ErrorTest.cpp',
98 '../tests/FillPathTest.cpp',
99 '../tests/FitsInTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000100 '../tests/FlateTest.cpp',
joshualittee5da552014-07-16 13:32:56 -0700101 '../tests/FloatingPointTextureTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000102 '../tests/FontHostStreamTest.cpp',
103 '../tests/FontHostTest.cpp',
104 '../tests/FontMgrTest.cpp',
105 '../tests/FontNamesTest.cpp',
tfarina0a65e382014-07-08 10:33:28 -0700106 '../tests/FontObjTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000107 '../tests/FrontBufferedStreamTest.cpp',
commit-bot@chromium.org085a6e42014-03-03 19:23:28 +0000108 '../tests/GLInterfaceValidationTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000109 '../tests/GLProgramsTest.cpp',
110 '../tests/GeometryTest.cpp',
111 '../tests/GifTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000112 '../tests/GpuColorFilterTest.cpp',
113 '../tests/GpuDrawPathTest.cpp',
robertphillips952841b2014-06-30 08:26:50 -0700114 '../tests/GpuLayerCacheTest.cpp',
commit-bot@chromium.orgad854bf2014-05-29 18:46:38 +0000115 '../tests/GpuRectanizerTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000116 '../tests/GrContextFactoryTest.cpp',
117 '../tests/GrDrawTargetTest.cpp',
bsalomona1ae66d2014-09-05 06:13:43 -0700118 '../tests/GrAllocatorTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000119 '../tests/GrMemoryPoolTest.cpp',
commit-bot@chromium.org4fcc3ca2014-02-27 20:23:22 +0000120 '../tests/GrOrderedSetTest.cpp',
joshualittbab82ed2014-08-08 09:41:42 -0700121 '../tests/GrGLSLPrettyPrintTest.cpp',
tfarina0a65e382014-07-08 10:33:28 -0700122 '../tests/GrRedBlackTreeTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000123 '../tests/GrSurfaceTest.cpp',
124 '../tests/GrTBSearchTest.cpp',
cdalton6819df32014-10-15 13:43:48 -0700125 '../tests/GrTRecorderTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000126 '../tests/GradientTest.cpp',
mtklein979e0ea2015-02-12 13:20:08 -0800127 '../tests/HashTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000128 '../tests/ImageCacheTest.cpp',
129 '../tests/ImageDecodingTest.cpp',
130 '../tests/ImageFilterTest.cpp',
sugoi518d83d2014-07-21 11:37:39 -0700131 '../tests/ImageGeneratorTest.cpp',
piotaixrd2a35222014-08-19 14:29:02 -0700132 '../tests/ImageIsOpaqueTest.cpp',
piotaixrcef04f82014-07-14 07:48:04 -0700133 '../tests/ImageNewShaderTest.cpp',
dml78acf962015-03-18 06:03:29 -0700134 '../tests/IndexedPngOverflowTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000135 '../tests/InfRectTest.cpp',
tfarina11a005e2014-06-26 13:07:05 -0700136 '../tests/InterpolatorTest.cpp',
dmlf45796e2015-03-11 11:12:54 -0700137 '../tests/InvalidIndexedPngTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000138 '../tests/JpegTest.cpp',
krajcevskic250d2e2014-06-06 06:16:28 -0700139 '../tests/KtxTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000140 '../tests/LListTest.cpp',
141 '../tests/LayerDrawLooperTest.cpp',
commit-bot@chromium.org6573ce72014-04-10 20:42:53 +0000142 '../tests/LayerRasterizerTest.cpp',
mtkleine9e0dea2014-10-21 12:20:04 -0700143 '../tests/LazyPtrTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000144 '../tests/MD5Test.cpp',
145 '../tests/MallocPixelRefTest.cpp',
qiankun.miaod9aac342014-10-23 07:58:17 -0700146 '../tests/MaskCacheTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000147 '../tests/MathTest.cpp',
148 '../tests/Matrix44Test.cpp',
149 '../tests/MatrixClipCollapseTest.cpp',
150 '../tests/MatrixTest.cpp',
151 '../tests/MemoryTest.cpp',
152 '../tests/MemsetTest.cpp',
153 '../tests/MessageBusTest.cpp',
154 '../tests/MetaDataTest.cpp',
155 '../tests/MipMapTest.cpp',
cdalton51192342014-06-09 11:16:58 -0700156 '../tests/NameAllocatorTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000157 '../tests/OSPathTest.cpp',
158 '../tests/OnceTest.cpp',
jbroman16071562014-12-12 11:28:16 -0800159 '../tests/PDFInvalidBitmapTest.cpp',
halcanarydaefa5b2014-08-27 13:00:54 -0700160 '../tests/PDFJpegEmbedTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000161 '../tests/PDFPrimitivesTest.cpp',
mtkleina2f4be72015-02-23 10:04:34 -0800162 '../tests/PMFloatTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000163 '../tests/PackBitsTest.cpp',
164 '../tests/PaintTest.cpp',
165 '../tests/ParsePathTest.cpp',
166 '../tests/PathCoverageTest.cpp',
167 '../tests/PathMeasureTest.cpp',
168 '../tests/PathTest.cpp',
169 '../tests/PathUtilsTest.cpp',
junova41d3c32014-10-30 11:44:19 -0700170 '../tests/PictureBBHTest.cpp',
commit-bot@chromium.org855e88e2014-04-21 19:33:12 +0000171 '../tests/PictureShaderTest.cpp',
tfarina0a65e382014-07-08 10:33:28 -0700172 '../tests/PictureTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000173 '../tests/PixelRefTest.cpp',
174 '../tests/PointTest.cpp',
175 '../tests/PremulAlphaRoundTripTest.cpp',
176 '../tests/QuickRejectTest.cpp',
tfarina0a65e382014-07-08 10:33:28 -0700177 '../tests/RTConfRegistryTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000178 '../tests/RTreeTest.cpp',
179 '../tests/RandomTest.cpp',
180 '../tests/ReadPixelsTest.cpp',
181 '../tests/ReadWriteAlphaTest.cpp',
182 '../tests/Reader32Test.cpp',
commit-bot@chromium.orgd9ce2be2014-04-09 23:30:28 +0000183 '../tests/RecordDrawTest.cpp',
robertphillipsd982eb22014-09-03 11:04:30 -0700184 '../tests/RecordReplaceDrawTest.cpp',
commit-bot@chromium.org8dac8b12014-04-30 13:18:12 +0000185 '../tests/RecordOptsTest.cpp',
commit-bot@chromium.org73fffeb2014-05-05 21:59:52 +0000186 '../tests/RecordPatternTest.cpp',
commit-bot@chromium.org066a28d2014-04-08 17:31:08 +0000187 '../tests/RecordTest.cpp',
commit-bot@chromium.orgb7369622014-04-08 20:17:26 +0000188 '../tests/RecorderTest.cpp',
dneto327f9052014-09-15 10:53:16 -0700189 '../tests/RecordingXfermodeTest.cpp',
fmalita1a178ca2015-01-15 06:01:23 -0800190 '../tests/RectTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000191 '../tests/RefCntTest.cpp',
192 '../tests/RefDictTest.cpp',
193 '../tests/RegionTest.cpp',
194 '../tests/ResourceCacheTest.cpp',
195 '../tests/RoundRectTest.cpp',
196 '../tests/RuntimeConfigTest.cpp',
197 '../tests/SHA1Test.cpp',
198 '../tests/ScalarTest.cpp',
199 '../tests/SerializationTest.cpp',
200 '../tests/ShaderImageFilterTest.cpp',
201 '../tests/ShaderOpacityTest.cpp',
tfarina12345ae2014-06-25 10:39:00 -0700202 '../tests/SizeTest.cpp',
mtkleinc9adb052015-03-30 10:50:27 -0700203 '../tests/SkNxTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000204 '../tests/SkBase64Test.cpp',
kkinnunen73953e72015-02-23 22:12:12 -0800205 '../tests/SkImageTest.cpp',
piotaixraca21d62014-09-02 11:50:59 -0700206 '../tests/SkResourceCacheTest.cpp',
commit-bot@chromium.orga5572e52014-03-07 03:24:41 +0000207 '../tests/SmallAllocatorTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000208 '../tests/SortTest.cpp',
209 '../tests/SrcOverTest.cpp',
210 '../tests/StreamTest.cpp',
211 '../tests/StringTest.cpp',
212 '../tests/StrokeTest.cpp',
caryclarkfeff7d22014-10-09 05:36:03 -0700213 '../tests/StrokerTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000214 '../tests/SurfaceTest.cpp',
fmalita7a048692015-02-20 13:54:40 -0800215 '../tests/SVGDeviceTest.cpp',
senorblancod6ed19c2015-02-26 06:58:17 -0800216 '../tests/TessellatingPathRendererTests.cpp',
bungeman@google.com95ebd172014-03-21 19:39:02 +0000217 '../tests/TArrayTest.cpp',
bsalomon3555bd82015-02-13 11:08:21 -0800218 '../tests/TDPQueueTest.cpp',
halcanary8e74b152014-11-10 09:20:22 -0800219 '../tests/Time.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000220 '../tests/TLSTest.cpp',
fmalitac6765d62014-08-21 15:03:04 -0700221 '../tests/TextBlobTest.cpp',
krajcevski2b310e42014-06-11 12:26:49 -0700222 '../tests/TextureCompressionTest.cpp',
commit-bot@chromium.org085a6e42014-03-03 19:23:28 +0000223 '../tests/ToUnicodeTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000224 '../tests/TracingTest.cpp',
commit-bot@chromium.org085a6e42014-03-03 19:23:28 +0000225 '../tests/TypefaceTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000226 '../tests/UnicodeTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000227 '../tests/UtilsTest.cpp',
mtklein0bd57b22014-11-18 09:32:36 -0800228 '../tests/VarAllocTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000229 '../tests/WArrayTest.cpp',
230 '../tests/WritePixelsTest.cpp',
231 '../tests/Writer32Test.cpp',
232 '../tests/XfermodeTest.cpp',
sugoi692135f2015-01-19 10:10:27 -0800233 '../tests/YUVCacheTest.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000234
235 '../tests/MatrixClipCollapseTest.cpp',
236 '../src/utils/debugger/SkDrawCommand.h',
237 '../src/utils/debugger/SkDrawCommand.cpp',
238 '../src/utils/debugger/SkDebugCanvas.h',
239 '../src/utils/debugger/SkDebugCanvas.cpp',
240 '../src/utils/debugger/SkObjectParser.h',
241 '../src/utils/debugger/SkObjectParser.cpp',
242
243 '../tests/PipeTest.cpp',
244 '../src/pipe/utils/SamplePipeControllers.cpp',
245
246 '../tests/TDStackNesterTest.cpp',
247 '../experimental/PdfViewer/src/SkTDStackNester.h',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +0000248 ],
249}