1 # GYP file to build unit tests. 2 { 3 'includes': [ 4 'apptype_console.gypi', 5 ], 6 'targets': [ 7 { 8 'target_name': 'tests', 9 'type': 'executable', 10 'include_dirs' : [ 11 '../src/core', 12 '../src/effects', 13 '../src/lazy', 14 '../src/pathops', 15 '../src/pdf', 16 '../src/pipe/utils', 17 '../src/utils', 18 '../tools/', 19 ], 20 'includes': [ 21 'pathops_unittest.gypi', 22 ], 23 'sources': [ 24 '../tests/AAClipTest.cpp', 25 '../tests/AnnotationTest.cpp', 26 '../tests/ARGBImageEncoderTest.cpp', 27 '../tests/AtomicTest.cpp', 28 '../tests/BitmapCopyTest.cpp', 29 '../tests/BitmapFactoryTest.cpp', 30 '../tests/BitmapGetColorTest.cpp', 31 '../tests/BitmapHasherTest.cpp', 32 '../tests/BitmapHeapTest.cpp', 33 '../tests/BitSetTest.cpp', 34 '../tests/BlitRowTest.cpp', 35 '../tests/BlurTest.cpp', 36 '../tests/CanvasTest.cpp', 37 # '../tests/CanvasStateTest.cpp', 38 '../tests/ChecksumTest.cpp', 39 '../tests/ClampRangeTest.cpp', 40 '../tests/ClipCacheTest.cpp', 41 '../tests/ClipCubicTest.cpp', 42 '../tests/ClipStackTest.cpp', 43 '../tests/ClipperTest.cpp', 44 '../tests/ColorFilterTest.cpp', 45 '../tests/ColorTest.cpp', 46 '../tests/DataRefTest.cpp', 47 '../tests/DeferredCanvasTest.cpp', 48 '../tests/DequeTest.cpp', 49 '../tests/DrawBitmapRectTest.cpp', 50 '../tests/DrawPathTest.cpp', 51 '../tests/DrawTextTest.cpp', 52 '../tests/DynamicHashTest.cpp', 53 '../tests/EmptyPathTest.cpp', 54 '../tests/ErrorTest.cpp', 55 '../tests/FillPathTest.cpp', 56 '../tests/FitsInTest.cpp', 57 '../tests/FlatDataTest.cpp', 58 '../tests/FlateTest.cpp', 59 '../tests/FontHostStreamTest.cpp', 60 '../tests/FontHostTest.cpp', 61 '../tests/FontMgrTest.cpp', 62 '../tests/FontNamesTest.cpp', 63 '../tests/GeometryTest.cpp', 64 '../tests/GLInterfaceValidation.cpp', 65 '../tests/GLProgramsTest.cpp', 66 '../tests/GpuBitmapCopyTest.cpp', 67 '../tests/GpuDrawPathTest.cpp', 68 '../tests/GrContextFactoryTest.cpp', 69 '../tests/GradientTest.cpp', 70 '../tests/GrMemoryPoolTest.cpp', 71 '../tests/GrSurfaceTest.cpp', 72 '../tests/HashCacheTest.cpp', 73 '../tests/ImageCacheTest.cpp', 74 '../tests/ImageDecodingTest.cpp', 75 '../tests/ImageFilterTest.cpp', 76 '../tests/InfRectTest.cpp', 77 '../tests/LListTest.cpp', 78 '../tests/LayerDrawLooperTest.cpp', 79 '../tests/MD5Test.cpp', 80 '../tests/MathTest.cpp', 81 '../tests/MatrixTest.cpp', 82 '../tests/Matrix44Test.cpp', 83 '../tests/MemsetTest.cpp', 84 '../tests/MetaDataTest.cpp', 85 '../tests/MipMapTest.cpp', 86 '../tests/OSPathTest.cpp', 87 '../tests/PackBitsTest.cpp', 88 '../tests/PaintTest.cpp', 89 '../tests/ParsePathTest.cpp', 90 '../tests/PathCoverageTest.cpp', 91 '../tests/PathMeasureTest.cpp', 92 '../tests/PathTest.cpp', 93 '../tests/PathUtilsTest.cpp', 94 '../tests/PDFPrimitivesTest.cpp', 95 '../tests/PictureTest.cpp', 96 '../tests/PictureUtilsTest.cpp', 97 '../tests/PipeTest.cpp', 98 '../tests/PointTest.cpp', 99 '../tests/PremulAlphaRoundTripTest.cpp', 100 '../tests/QuickRejectTest.cpp', 101 '../tests/RandomTest.cpp', 102 '../tests/Reader32Test.cpp', 103 '../tests/ReadPixelsTest.cpp', 104 '../tests/ReadWriteAlphaTest.cpp', 105 '../tests/RefCntTest.cpp', 106 '../tests/RefDictTest.cpp', 107 '../tests/RegionTest.cpp', 108 '../tests/ResourceCacheTest.cpp', 109 '../tests/RoundRectTest.cpp', 110 '../tests/RTreeTest.cpp', 111 '../tests/SHA1Test.cpp', 112 '../tests/ScalarTest.cpp', 113 '../tests/ShaderImageFilterTest.cpp', 114 '../tests/ShaderOpacityTest.cpp', 115 '../tests/Sk64Test.cpp', 116 '../tests/skia_test.cpp', 117 '../tests/SortTest.cpp', 118 '../tests/SrcOverTest.cpp', 119 '../tests/StreamTest.cpp', 120 '../tests/StringTest.cpp', 121 '../tests/StrokeTest.cpp', 122 '../tests/SurfaceTest.cpp', 123 '../tests/Test.cpp', 124 '../tests/Test.h', 125 '../tests/TestSize.cpp', 126 '../tests/TileGridTest.cpp', 127 '../tests/TLSTest.cpp', 128 '../tests/TSetTest.cpp', 129 '../tests/ToUnicode.cpp', 130 '../tests/UnicodeTest.cpp', 131 '../tests/UtilsTest.cpp', 132 '../tests/WArrayTest.cpp', 133 '../tests/WritePixelsTest.cpp', 134 '../tests/Writer32Test.cpp', 135 '../tests/XfermodeTest.cpp', 136 137 # Needed for PipeTest. 138 '../src/pipe/utils/SamplePipeControllers.cpp', 139 ], 140 'dependencies': [ 141 'skia_lib.gyp:skia_lib', 142 'flags.gyp:flags', 143 'experimental.gyp:experimental', 144 'pdf.gyp:pdf', 145 'tools.gyp:picture_utils', 146 ], 147 'conditions': [ 148 [ 'skia_gpu == 1', { 149 'include_dirs': [ 150 '../src/gpu', 151 ], 152 }], 153 [ 'skia_os == "nacl"', { 154 # CityHash is not supported on NaCl because the NaCl toolchain is 155 # missing byteswap.h which is needed by CityHash. 156 # TODO(borenet): Find a way to either provide this dependency or 157 # replace it. 158 'sources!': [ 159 '../tests/BitmapHasherTest.cpp', 160 '../tests/ChecksumTest.cpp', 161 ], 162 }], 163 ], 164 }, 165 ], 166 } 167 168 # Local Variables: 169 # tab-width:2 170 # indent-tabs-mode:nil 171 # End: 172 # vim: set expandtab tabstop=2 shiftwidth=2: 173