blob: ec8ae43dc2398ccb8a328fbf9f8693609d502329 [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',
10 'include_dirs' : [
epoger@google.comccdbd2c2011-06-02 14:38:23 +000011 '../src/core',
tomhudson@google.com59944512012-03-20 21:18:43 +000012 '../src/effects',
commit-bot@chromium.org75854792013-10-29 19:55:00 +000013 '../src/image',
scroggo@google.comf8d7d272013-02-22 21:38:35 +000014 '../src/lazy',
halcanary@google.comad04eb42013-11-21 15:32:08 +000015 '../src/images',
caryclark@google.com45a75fb2013-04-25 13:34:40 +000016 '../src/pathops',
vandebo@chromium.org7d6c8f92012-03-22 20:45:15 +000017 '../src/pdf',
scroggo@google.com10dccde2012-08-08 20:43:22 +000018 '../src/pipe/utils',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000019 '../src/utils',
keyar@chromium.orgd1dc9202012-07-09 18:32:08 +000020 '../tools/',
scroggo@google.com7d8013f2013-11-20 21:40:57 +000021
22 # Needed for TDStackNesterTest.
23 '../experimental/PdfViewer',
24 '../experimental/PdfViewer/src',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000025 ],
caryclark@google.comf685a222013-04-19 11:45:56 +000026 'includes': [
caryclark@google.comf685a222013-04-19 11:45:56 +000027 'pathops_unittest.gypi',
28 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000029 'sources': [
reed@google.com209c4152011-10-26 15:03:48 +000030 '../tests/AAClipTest.cpp',
commit-bot@chromium.org97f81672013-09-26 15:16:12 +000031 '../tests/AndroidPaintTest.cpp',
reed@google.comb0a34d82012-07-11 19:57:55 +000032 '../tests/AnnotationTest.cpp',
bungeman@google.com8c6a4f22013-04-23 18:06:23 +000033 '../tests/ARGBImageEncoderTest.cpp',
scroggo@google.com50ccb0a2012-07-16 16:51:28 +000034 '../tests/AtomicTest.cpp',
halcanary@google.com44287342013-12-13 18:29:51 +000035 '../tests/BitmapTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000036 '../tests/BitmapCopyTest.cpp',
37 '../tests/BitmapGetColorTest.cpp',
epoger@google.com908f5832013-04-12 02:23:55 +000038 '../tests/BitmapHasherTest.cpp',
scroggo@google.com013c5d92012-11-16 20:34:37 +000039 '../tests/BitmapHeapTest.cpp',
reed@google.com2b75f422011-07-07 13:43:38 +000040 '../tests/BitSetTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000041 '../tests/BlitRowTest.cpp',
reed@google.com2b75f422011-07-07 13:43:38 +000042 '../tests/BlurTest.cpp',
commit-bot@chromium.org75854792013-10-29 19:55:00 +000043 '../tests/CachedDecodingPixelRefTest.cpp',
reed@google.com37f3ae02011-11-28 16:06:04 +000044 '../tests/CanvasTest.cpp',
djsollen@google.com5587ac02013-08-29 20:20:40 +000045 '../tests/CanvasStateTest.cpp',
epoger@google.com4adfab82012-11-02 18:35:04 +000046 '../tests/ChecksumTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000047 '../tests/ClampRangeTest.cpp',
robertphillips@google.combeeb97c2012-05-09 21:15:28 +000048 '../tests/ClipCacheTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000049 '../tests/ClipCubicTest.cpp',
50 '../tests/ClipStackTest.cpp',
51 '../tests/ClipperTest.cpp',
52 '../tests/ColorFilterTest.cpp',
commit-bot@chromium.org55ca8242013-12-03 18:53:30 +000053 '../tests/ColorPrivTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000054 '../tests/ColorTest.cpp',
reed@google.com35ae8ea2011-06-14 19:18:26 +000055 '../tests/DataRefTest.cpp',
junov@chromium.org1f9767c2012-02-07 16:27:57 +000056 '../tests/DeferredCanvasTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000057 '../tests/DequeTest.cpp',
reed@google.com636d87a2013-09-17 20:03:43 +000058 '../tests/DeviceLooperTest.cpp',
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +000059 '../tests/DiscardableMemoryPool.cpp',
halcanary@google.combc55eec2013-12-10 18:33:07 +000060 '../tests/DiscardableMemoryTest.cpp',
commit-bot@chromium.org8c908272013-10-22 14:49:03 +000061 '../tests/DocumentTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000062 '../tests/DrawBitmapRectTest.cpp',
mike@reedtribe.org6093e652012-04-14 12:55:17 +000063 '../tests/DrawPathTest.cpp',
bungeman@google.com2211b622012-01-13 15:02:58 +000064 '../tests/DrawTextTest.cpp',
commit-bot@chromium.orgf916f9e2013-08-05 22:31:20 +000065 '../tests/DynamicHashTest.cpp',
reed@google.comee068aa2011-12-21 19:36:21 +000066 '../tests/EmptyPathTest.cpp',
humper@google.com75e3ca12013-04-08 21:44:11 +000067 '../tests/ErrorTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000068 '../tests/FillPathTest.cpp',
bungeman@google.comf5cc5b12013-07-12 18:22:49 +000069 '../tests/FitsInTest.cpp',
scroggo@google.com0c3e5fe2012-08-01 19:34:20 +000070 '../tests/FlatDataTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000071 '../tests/FlateTest.cpp',
bungeman@google.coma5501992012-05-18 19:06:41 +000072 '../tests/FontHostStreamTest.cpp',
reed@google.com17aa07d2012-02-23 14:51:10 +000073 '../tests/FontHostTest.cpp',
reed@google.com83165a52013-04-11 18:31:25 +000074 '../tests/FontMgrTest.cpp',
bungeman@google.com07a69f82013-04-02 14:12:38 +000075 '../tests/FontNamesTest.cpp',
scroggo@google.com83fd2c72013-09-26 21:35:39 +000076 '../tests/FrontBufferedStreamTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000077 '../tests/GeometryTest.cpp',
halcanary@google.com29d4e632013-10-11 18:21:56 +000078 '../tests/GifTest.cpp',
bsalomon@google.com57f5d982011-10-24 21:17:53 +000079 '../tests/GLInterfaceValidation.cpp',
bsalomon@google.coma8e686e2011-08-16 15:45:58 +000080 '../tests/GLProgramsTest.cpp',
scroggo@google.comd5764e82012-08-22 15:00:05 +000081 '../tests/GpuBitmapCopyTest.cpp',
commit-bot@chromium.orga34995e2013-10-23 05:42:03 +000082 '../tests/GpuColorFilterTest.cpp',
commit-bot@chromium.org19dd0172013-08-05 13:28:55 +000083 '../tests/GpuDrawPathTest.cpp',
keyar@chromium.org5bdef292012-08-14 22:02:48 +000084 '../tests/GrContextFactoryTest.cpp',
commit-bot@chromium.org99017272013-11-08 18:45:27 +000085 '../tests/GrDrawTargetTest.cpp',
reed@google.com83226972012-06-07 20:26:47 +000086 '../tests/GradientTest.cpp',
bsalomon@google.com4da34e32012-06-19 15:40:27 +000087 '../tests/GrMemoryPoolTest.cpp',
bsalomon@google.com686bcb82013-04-09 15:04:12 +000088 '../tests/GrSurfaceTest.cpp',
rmistry@google.comd6bab022013-12-02 13:50:38 +000089 '../tests/GrUnitTests.cpp',
robertphillips@google.com3b57ded2012-09-18 17:16:33 +000090 '../tests/HashCacheTest.cpp',
reed@google.com602a1d72013-07-23 19:13:54 +000091 '../tests/ImageCacheTest.cpp',
scroggo@google.com2bbc2c92013-06-14 15:33:20 +000092 '../tests/ImageDecodingTest.cpp',
senorblanco@chromium.org194d7752013-07-24 22:19:24 +000093 '../tests/ImageFilterTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000094 '../tests/InfRectTest.cpp',
halcanary@google.comfed30372013-10-04 12:46:45 +000095 '../tests/JpegTest.cpp',
bsalomon@google.combbe52902012-12-03 18:01:45 +000096 '../tests/LListTest.cpp',
commit-bot@chromium.org8f838252013-05-22 12:35:50 +000097 '../tests/LayerDrawLooperTest.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000098 '../tests/MD5Test.cpp',
halcanary@google.com1bed6872014-01-02 17:29:28 +000099 '../tests/MallocPixelRefTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000100 '../tests/MathTest.cpp',
101 '../tests/MatrixTest.cpp',
reed@google.com125002a2011-06-09 19:13:41 +0000102 '../tests/Matrix44Test.cpp',
mtklein@google.com519f9672013-09-20 14:31:45 +0000103 '../tests/MemoryTest.cpp',
mike@reedtribe.orgc52b1922012-01-07 03:49:13 +0000104 '../tests/MemsetTest.cpp',
commit-bot@chromium.org50a30432013-10-24 17:44:27 +0000105 '../tests/MessageBusTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000106 '../tests/MetaDataTest.cpp',
reed@google.comeed6f1b2013-07-18 19:53:31 +0000107 '../tests/MipMapTest.cpp',
mtklein@google.com3a19fb52013-10-09 16:12:23 +0000108 '../tests/OnceTest.cpp',
scroggo@google.comccd7afb2013-05-28 16:45:07 +0000109 '../tests/OSPathTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000110 '../tests/PackBitsTest.cpp',
111 '../tests/PaintTest.cpp',
112 '../tests/ParsePathTest.cpp',
tomhudson@google.comfc1539a2011-06-24 15:43:24 +0000113 '../tests/PathCoverageTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000114 '../tests/PathMeasureTest.cpp',
115 '../tests/PathTest.cpp',
commit-bot@chromium.org064779a2013-07-01 17:50:29 +0000116 '../tests/PathUtilsTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000117 '../tests/PDFPrimitivesTest.cpp',
scroggo@google.comd614c6a2012-09-14 17:26:37 +0000118 '../tests/PictureTest.cpp',
keyar@chromium.orgd1dc9202012-07-09 18:32:08 +0000119 '../tests/PictureUtilsTest.cpp',
scroggo@google.comd614c6a2012-09-14 17:26:37 +0000120 '../tests/PipeTest.cpp',
commit-bot@chromium.org50a30432013-10-24 17:44:27 +0000121 '../tests/PixelRefTest.cpp',
epoger@google.comd33f75c2011-06-15 18:49:21 +0000122 '../tests/PointTest.cpp',
bsalomon@google.coma91e9232012-02-23 15:39:54 +0000123 '../tests/PremulAlphaRoundTripTest.cpp',
reed@google.com3d608122011-11-21 15:16:16 +0000124 '../tests/QuickRejectTest.cpp',
jvanverth@google.com5a90ada2013-02-08 17:13:09 +0000125 '../tests/RandomTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000126 '../tests/Reader32Test.cpp',
bsalomon@google.comc6980972011-11-02 19:57:21 +0000127 '../tests/ReadPixelsTest.cpp',
robertphillips@google.com443e5a52012-04-30 20:01:21 +0000128 '../tests/ReadWriteAlphaTest.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000129 '../tests/RefCntTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000130 '../tests/RefDictTest.cpp',
131 '../tests/RegionTest.cpp',
commit-bot@chromium.orgc28f5552013-08-08 22:55:21 +0000132 '../tests/ResourceCacheTest.cpp',
robertphillips@google.com5985e7c2012-11-29 13:24:55 +0000133 '../tests/RoundRectTest.cpp',
halcanary@google.com1f0121a2013-11-06 15:07:44 +0000134 '../tests/RuntimeConfigTest.cpp',
rileya@google.com1f45e932012-09-05 16:10:59 +0000135 '../tests/RTreeTest.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +0000136 '../tests/SHA1Test.cpp',
reed@google.comd230e3e2011-12-05 20:49:37 +0000137 '../tests/ScalarTest.cpp',
commit-bot@chromium.org02512882013-10-31 18:37:50 +0000138 '../tests/SerializationTest.cpp',
sugoi@google.coma1c511b2013-02-21 15:02:28 +0000139 '../tests/ShaderImageFilterTest.cpp',
junov@chromium.orgb6e16192011-12-09 15:48:03 +0000140 '../tests/ShaderOpacityTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000141 '../tests/Sk64Test.cpp',
142 '../tests/skia_test.cpp',
143 '../tests/SortTest.cpp',
144 '../tests/SrcOverTest.cpp',
145 '../tests/StreamTest.cpp',
146 '../tests/StringTest.cpp',
reed@google.com603dbed2012-11-20 19:00:28 +0000147 '../tests/StrokeTest.cpp',
junov@chromium.org995beb62013-03-28 13:49:22 +0000148 '../tests/SurfaceTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000149 '../tests/Test.cpp',
bsalomon@google.coma8e686e2011-08-16 15:45:58 +0000150 '../tests/Test.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000151 '../tests/TestSize.cpp',
junov@chromium.orgadc58e42012-11-07 17:38:38 +0000152 '../tests/TileGridTest.cpp',
reed@google.com7b578922012-05-21 15:29:27 +0000153 '../tests/TLSTest.cpp',
edisonn@google.com04115a12013-02-25 20:07:24 +0000154 '../tests/TSetTest.cpp',
bsalomon@google.coma8e686e2011-08-16 15:45:58 +0000155 '../tests/ToUnicode.cpp',
djsollen@google.com1f584ed2013-09-19 12:08:40 +0000156 '../tests/Typeface.cpp',
reed@google.com419f4332011-12-21 15:21:32 +0000157 '../tests/UnicodeTest.cpp',
commit-bot@chromium.orgc1bf2de2013-08-14 18:14:37 +0000158 '../tests/UnitTestTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000159 '../tests/UtilsTest.cpp',
vandebo@chromium.orgbeb7fe12011-11-11 19:38:54 +0000160 '../tests/WArrayTest.cpp',
bsalomon@google.comd58a1cd2011-11-10 20:57:43 +0000161 '../tests/WritePixelsTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000162 '../tests/Writer32Test.cpp',
163 '../tests/XfermodeTest.cpp',
scroggo@google.com10dccde2012-08-08 20:43:22 +0000164
scroggo@google.com7d8013f2013-11-20 21:40:57 +0000165 '../experimental/PdfViewer/src/SkTDStackNester.h',
166 '../tests/TDStackNesterTest.cpp',
167
scroggo@google.com10dccde2012-08-08 20:43:22 +0000168 # Needed for PipeTest.
169 '../src/pipe/utils/SamplePipeControllers.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000170 ],
171 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000172 'skia_lib.gyp:skia_lib',
commit-bot@chromium.orgba59d642013-04-11 16:54:09 +0000173 'flags.gyp:flags',
reed@google.com125002a2011-06-09 19:13:41 +0000174 'experimental.gyp:experimental',
epoger@google.comdcab3a12011-06-24 19:09:09 +0000175 'pdf.gyp:pdf',
keyar@chromium.orgd1dc9202012-07-09 18:32:08 +0000176 'tools.gyp:picture_utils',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000177 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000178 'conditions': [
179 [ 'skia_gpu == 1', {
180 'include_dirs': [
181 '../src/gpu',
182 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000183 }],
184 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000185 },
186 ],
187}