blob: 10a4ba45e7dfb7fdd820d6c9d1c6ad0272b5ee83 [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',
scroggo@google.comf8d7d272013-02-22 21:38:35 +000013 '../src/lazy',
caryclark@google.com45a75fb2013-04-25 13:34:40 +000014 '../src/pathops',
vandebo@chromium.org7d6c8f92012-03-22 20:45:15 +000015 '../src/pdf',
scroggo@google.com10dccde2012-08-08 20:43:22 +000016 '../src/pipe/utils',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000017 '../src/utils',
keyar@chromium.orgd1dc9202012-07-09 18:32:08 +000018 '../tools/',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000019 ],
caryclark@google.comf685a222013-04-19 11:45:56 +000020 'includes': [
caryclark@google.comf685a222013-04-19 11:45:56 +000021 'pathops_unittest.gypi',
22 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000023 'sources': [
reed@google.com209c4152011-10-26 15:03:48 +000024 '../tests/AAClipTest.cpp',
reed@google.comb0a34d82012-07-11 19:57:55 +000025 '../tests/AnnotationTest.cpp',
bungeman@google.com8c6a4f22013-04-23 18:06:23 +000026 '../tests/ARGBImageEncoderTest.cpp',
scroggo@google.com50ccb0a2012-07-16 16:51:28 +000027 '../tests/AtomicTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000028 '../tests/BitmapCopyTest.cpp',
scroggo@google.com9f686f32012-11-29 21:05:37 +000029 '../tests/BitmapFactoryTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000030 '../tests/BitmapGetColorTest.cpp',
epoger@google.com908f5832013-04-12 02:23:55 +000031 '../tests/BitmapHasherTest.cpp',
scroggo@google.com013c5d92012-11-16 20:34:37 +000032 '../tests/BitmapHeapTest.cpp',
reed@google.com2b75f422011-07-07 13:43:38 +000033 '../tests/BitSetTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000034 '../tests/BlitRowTest.cpp',
reed@google.com2b75f422011-07-07 13:43:38 +000035 '../tests/BlurTest.cpp',
reed@google.com37f3ae02011-11-28 16:06:04 +000036 '../tests/CanvasTest.cpp',
epoger@google.com4adfab82012-11-02 18:35:04 +000037 '../tests/ChecksumTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000038 '../tests/ClampRangeTest.cpp',
robertphillips@google.combeeb97c2012-05-09 21:15:28 +000039 '../tests/ClipCacheTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000040 '../tests/ClipCubicTest.cpp',
41 '../tests/ClipStackTest.cpp',
42 '../tests/ClipperTest.cpp',
43 '../tests/ColorFilterTest.cpp',
44 '../tests/ColorTest.cpp',
reed@google.com35ae8ea2011-06-14 19:18:26 +000045 '../tests/DataRefTest.cpp',
junov@chromium.org1f9767c2012-02-07 16:27:57 +000046 '../tests/DeferredCanvasTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000047 '../tests/DequeTest.cpp',
48 '../tests/DrawBitmapRectTest.cpp',
mike@reedtribe.org6093e652012-04-14 12:55:17 +000049 '../tests/DrawPathTest.cpp',
bungeman@google.com2211b622012-01-13 15:02:58 +000050 '../tests/DrawTextTest.cpp',
reed@google.comee068aa2011-12-21 19:36:21 +000051 '../tests/EmptyPathTest.cpp',
humper@google.com75e3ca12013-04-08 21:44:11 +000052 '../tests/ErrorTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000053 '../tests/FillPathTest.cpp',
scroggo@google.com0c3e5fe2012-08-01 19:34:20 +000054 '../tests/FlatDataTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000055 '../tests/FlateTest.cpp',
bungeman@google.coma5501992012-05-18 19:06:41 +000056 '../tests/FontHostStreamTest.cpp',
reed@google.com17aa07d2012-02-23 14:51:10 +000057 '../tests/FontHostTest.cpp',
reed@google.com83165a52013-04-11 18:31:25 +000058 '../tests/FontMgrTest.cpp',
bungeman@google.com07a69f82013-04-02 14:12:38 +000059 '../tests/FontNamesTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000060 '../tests/GeometryTest.cpp',
bsalomon@google.com57f5d982011-10-24 21:17:53 +000061 '../tests/GLInterfaceValidation.cpp',
bsalomon@google.coma8e686e2011-08-16 15:45:58 +000062 '../tests/GLProgramsTest.cpp',
scroggo@google.comd5764e82012-08-22 15:00:05 +000063 '../tests/GpuBitmapCopyTest.cpp',
keyar@chromium.org5bdef292012-08-14 22:02:48 +000064 '../tests/GrContextFactoryTest.cpp',
reed@google.com83226972012-06-07 20:26:47 +000065 '../tests/GradientTest.cpp',
bsalomon@google.com4da34e32012-06-19 15:40:27 +000066 '../tests/GrMemoryPoolTest.cpp',
bsalomon@google.com686bcb82013-04-09 15:04:12 +000067 '../tests/GrSurfaceTest.cpp',
robertphillips@google.com3b57ded2012-09-18 17:16:33 +000068 '../tests/HashCacheTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000069 '../tests/InfRectTest.cpp',
bsalomon@google.combbe52902012-12-03 18:01:45 +000070 '../tests/LListTest.cpp',
commit-bot@chromium.org8f838252013-05-22 12:35:50 +000071 '../tests/LayerDrawLooperTest.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000072 '../tests/MD5Test.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000073 '../tests/MathTest.cpp',
74 '../tests/MatrixTest.cpp',
reed@google.com125002a2011-06-09 19:13:41 +000075 '../tests/Matrix44Test.cpp',
mike@reedtribe.orgc52b1922012-01-07 03:49:13 +000076 '../tests/MemsetTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000077 '../tests/MetaDataTest.cpp',
scroggo@google.comccd7afb2013-05-28 16:45:07 +000078 '../tests/OSPathTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000079 '../tests/PackBitsTest.cpp',
80 '../tests/PaintTest.cpp',
81 '../tests/ParsePathTest.cpp',
tomhudson@google.comfc1539a2011-06-24 15:43:24 +000082 '../tests/PathCoverageTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000083 '../tests/PathMeasureTest.cpp',
84 '../tests/PathTest.cpp',
85 '../tests/PDFPrimitivesTest.cpp',
scroggo@google.comd614c6a2012-09-14 17:26:37 +000086 '../tests/PictureTest.cpp',
keyar@chromium.orgd1dc9202012-07-09 18:32:08 +000087 '../tests/PictureUtilsTest.cpp',
scroggo@google.comd614c6a2012-09-14 17:26:37 +000088 '../tests/PipeTest.cpp',
epoger@google.comd33f75c2011-06-15 18:49:21 +000089 '../tests/PointTest.cpp',
bsalomon@google.coma91e9232012-02-23 15:39:54 +000090 '../tests/PremulAlphaRoundTripTest.cpp',
reed@google.com3d608122011-11-21 15:16:16 +000091 '../tests/QuickRejectTest.cpp',
jvanverth@google.com5a90ada2013-02-08 17:13:09 +000092 '../tests/RandomTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000093 '../tests/Reader32Test.cpp',
bsalomon@google.comc6980972011-11-02 19:57:21 +000094 '../tests/ReadPixelsTest.cpp',
robertphillips@google.com443e5a52012-04-30 20:01:21 +000095 '../tests/ReadWriteAlphaTest.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000096 '../tests/RefCntTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000097 '../tests/RefDictTest.cpp',
98 '../tests/RegionTest.cpp',
robertphillips@google.com5985e7c2012-11-29 13:24:55 +000099 '../tests/RoundRectTest.cpp',
rileya@google.com1f45e932012-09-05 16:10:59 +0000100 '../tests/RTreeTest.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +0000101 '../tests/SHA1Test.cpp',
reed@google.comd230e3e2011-12-05 20:49:37 +0000102 '../tests/ScalarTest.cpp',
sugoi@google.coma1c511b2013-02-21 15:02:28 +0000103 '../tests/ShaderImageFilterTest.cpp',
junov@chromium.orgb6e16192011-12-09 15:48:03 +0000104 '../tests/ShaderOpacityTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000105 '../tests/Sk64Test.cpp',
106 '../tests/skia_test.cpp',
107 '../tests/SortTest.cpp',
108 '../tests/SrcOverTest.cpp',
109 '../tests/StreamTest.cpp',
110 '../tests/StringTest.cpp',
reed@google.com603dbed2012-11-20 19:00:28 +0000111 '../tests/StrokeTest.cpp',
junov@chromium.org995beb62013-03-28 13:49:22 +0000112 '../tests/SurfaceTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000113 '../tests/Test.cpp',
bsalomon@google.coma8e686e2011-08-16 15:45:58 +0000114 '../tests/Test.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000115 '../tests/TestSize.cpp',
junov@chromium.orgadc58e42012-11-07 17:38:38 +0000116 '../tests/TileGridTest.cpp',
reed@google.com7b578922012-05-21 15:29:27 +0000117 '../tests/TLSTest.cpp',
edisonn@google.com04115a12013-02-25 20:07:24 +0000118 '../tests/TSetTest.cpp',
bsalomon@google.coma8e686e2011-08-16 15:45:58 +0000119 '../tests/ToUnicode.cpp',
reed@google.com419f4332011-12-21 15:21:32 +0000120 '../tests/UnicodeTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000121 '../tests/UtilsTest.cpp',
vandebo@chromium.orgbeb7fe12011-11-11 19:38:54 +0000122 '../tests/WArrayTest.cpp',
bsalomon@google.comd58a1cd2011-11-10 20:57:43 +0000123 '../tests/WritePixelsTest.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000124 '../tests/Writer32Test.cpp',
125 '../tests/XfermodeTest.cpp',
scroggo@google.com10dccde2012-08-08 20:43:22 +0000126
127 # Needed for PipeTest.
128 '../src/pipe/utils/SamplePipeControllers.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000129 ],
130 'dependencies': [
djsollen@google.coma96627f2013-05-31 20:09:47 +0000131 'skia_base_libs.gyp:skia_base_libs',
132 'effects.gyp:effects',
commit-bot@chromium.orgba59d642013-04-11 16:54:09 +0000133 'flags.gyp:flags',
reed@google.com125002a2011-06-09 19:13:41 +0000134 'experimental.gyp:experimental',
djsollen@google.coma96627f2013-05-31 20:09:47 +0000135 'images.gyp:images',
epoger@google.comdcab3a12011-06-24 19:09:09 +0000136 'pdf.gyp:pdf',
keyar@chromium.orgd1dc9202012-07-09 18:32:08 +0000137 'tools.gyp:picture_utils',
djsollen@google.coma96627f2013-05-31 20:09:47 +0000138 'utils.gyp:utils',
139 'sfnt.gyp:sfnt',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000140 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000141 'conditions': [
142 [ 'skia_gpu == 1', {
143 'include_dirs': [
144 '../src/gpu',
145 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000146 }],
borenet@google.com327b9b22013-03-07 15:33:28 +0000147 [ 'skia_os == "nacl"', {
148 # CityHash is not supported on NaCl because the NaCl toolchain is
149 # missing byteswap.h which is needed by CityHash.
150 # TODO(borenet): Find a way to either provide this dependency or
151 # replace it.
152 'sources!': [
epoger@google.com908f5832013-04-12 02:23:55 +0000153 '../tests/BitmapHasherTest.cpp',
borenet@google.com327b9b22013-03-07 15:33:28 +0000154 '../tests/ChecksumTest.cpp',
155 ],
156 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000157 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000158 },
159 ],
160}
161
162# Local Variables:
163# tab-width:2
164# indent-tabs-mode:nil
165# End:
166# vim: set expandtab tabstop=2 shiftwidth=2: