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