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