Home | History | Annotate | Download | only in gyp
      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/image',
     14         '../src/lazy',
     15         '../src/images',
     16         '../src/pathops',
     17         '../src/pdf',
     18         '../src/pipe/utils',
     19         '../src/utils',
     20         '../tools/',
     21 
     22         # Needed for TDStackNesterTest.
     23         '../experimental/PdfViewer',
     24         '../experimental/PdfViewer/src',
     25       ],
     26       'includes': [
     27         'pathops_unittest.gypi',
     28       ],
     29       'sources': [
     30         '../tests/AAClipTest.cpp',
     31         '../tests/AndroidPaintTest.cpp',
     32         '../tests/AnnotationTest.cpp',
     33         '../tests/ARGBImageEncoderTest.cpp',
     34         '../tests/AtomicTest.cpp',
     35         '../tests/BitmapTest.cpp',
     36         '../tests/BitmapCopyTest.cpp',
     37         '../tests/BitmapGetColorTest.cpp',
     38         '../tests/BitmapHasherTest.cpp',
     39         '../tests/BitmapHeapTest.cpp',
     40         '../tests/BitSetTest.cpp',
     41         '../tests/BlitRowTest.cpp',
     42         '../tests/BlurTest.cpp',
     43         '../tests/CachedDecodingPixelRefTest.cpp',
     44         '../tests/CanvasTest.cpp',
     45         '../tests/CanvasStateTest.cpp',
     46         '../tests/ChecksumTest.cpp',
     47         '../tests/ClampRangeTest.cpp',
     48         '../tests/ClipCacheTest.cpp',
     49         '../tests/ClipCubicTest.cpp',
     50         '../tests/ClipStackTest.cpp',
     51         '../tests/ClipperTest.cpp',
     52         '../tests/ColorFilterTest.cpp',
     53         '../tests/ColorPrivTest.cpp',
     54         '../tests/ColorTest.cpp',
     55         '../tests/DataRefTest.cpp',
     56         '../tests/DeferredCanvasTest.cpp',
     57         '../tests/DequeTest.cpp',
     58         '../tests/DeviceLooperTest.cpp',
     59         '../tests/DiscardableMemoryPool.cpp',
     60         '../tests/DiscardableMemoryTest.cpp',
     61         '../tests/DocumentTest.cpp',
     62         '../tests/DrawBitmapRectTest.cpp',
     63         '../tests/DrawPathTest.cpp',
     64         '../tests/DrawTextTest.cpp',
     65         '../tests/DynamicHashTest.cpp',
     66         '../tests/EmptyPathTest.cpp',
     67         '../tests/ErrorTest.cpp',
     68         '../tests/FillPathTest.cpp',
     69         '../tests/FitsInTest.cpp',
     70         '../tests/FlatDataTest.cpp',
     71         '../tests/FlateTest.cpp',
     72         '../tests/FontHostStreamTest.cpp',
     73         '../tests/FontHostTest.cpp',
     74         '../tests/FontMgrTest.cpp',
     75         '../tests/FontNamesTest.cpp',
     76         '../tests/FrontBufferedStreamTest.cpp',
     77         '../tests/GeometryTest.cpp',
     78         '../tests/GifTest.cpp',
     79         '../tests/GLInterfaceValidation.cpp',
     80         '../tests/GLProgramsTest.cpp',
     81         '../tests/GpuBitmapCopyTest.cpp',
     82         '../tests/GpuColorFilterTest.cpp',
     83         '../tests/GpuDrawPathTest.cpp',
     84         '../tests/GrContextFactoryTest.cpp',
     85         '../tests/GrDrawTargetTest.cpp',
     86         '../tests/GradientTest.cpp',
     87         '../tests/GrMemoryPoolTest.cpp',
     88         '../tests/GrSurfaceTest.cpp',
     89         '../tests/GrUnitTests.cpp',
     90         '../tests/HashCacheTest.cpp',
     91         '../tests/ImageCacheTest.cpp',
     92         '../tests/ImageDecodingTest.cpp',
     93         '../tests/ImageFilterTest.cpp',
     94         '../tests/InfRectTest.cpp',
     95         '../tests/JpegTest.cpp',
     96         '../tests/LListTest.cpp',
     97         '../tests/LayerDrawLooperTest.cpp',
     98         '../tests/MD5Test.cpp',
     99         '../tests/MathTest.cpp',
    100         '../tests/MatrixTest.cpp',
    101         '../tests/Matrix44Test.cpp',
    102         '../tests/MemoryTest.cpp',
    103         '../tests/MemsetTest.cpp',
    104         '../tests/MessageBusTest.cpp',
    105         '../tests/MetaDataTest.cpp',
    106         '../tests/MipMapTest.cpp',
    107         '../tests/OnceTest.cpp',
    108         '../tests/OSPathTest.cpp',
    109         '../tests/PackBitsTest.cpp',
    110         '../tests/PaintTest.cpp',
    111         '../tests/ParsePathTest.cpp',
    112         '../tests/PathCoverageTest.cpp',
    113         '../tests/PathMeasureTest.cpp',
    114         '../tests/PathTest.cpp',
    115         '../tests/PathUtilsTest.cpp',
    116         '../tests/PDFPrimitivesTest.cpp',
    117         '../tests/PictureTest.cpp',
    118         '../tests/PictureUtilsTest.cpp',
    119         '../tests/PipeTest.cpp',
    120         '../tests/PixelRefTest.cpp',
    121         '../tests/PointTest.cpp',
    122         '../tests/PremulAlphaRoundTripTest.cpp',
    123         '../tests/QuickRejectTest.cpp',
    124         '../tests/RandomTest.cpp',
    125         '../tests/Reader32Test.cpp',
    126         '../tests/ReadPixelsTest.cpp',
    127         '../tests/ReadWriteAlphaTest.cpp',
    128         '../tests/RefCntTest.cpp',
    129         '../tests/RefDictTest.cpp',
    130         '../tests/RegionTest.cpp',
    131         '../tests/ResourceCacheTest.cpp',
    132         '../tests/RoundRectTest.cpp',
    133         '../tests/RuntimeConfigTest.cpp',
    134         '../tests/RTreeTest.cpp',
    135         '../tests/SHA1Test.cpp',
    136         '../tests/ScalarTest.cpp',
    137         '../tests/SerializationTest.cpp',
    138         '../tests/ShaderImageFilterTest.cpp',
    139         '../tests/ShaderOpacityTest.cpp',
    140         '../tests/Sk64Test.cpp',
    141         '../tests/skia_test.cpp',
    142         '../tests/SortTest.cpp',
    143         '../tests/SrcOverTest.cpp',
    144         '../tests/StreamTest.cpp',
    145         '../tests/StringTest.cpp',
    146         '../tests/StrokeTest.cpp',
    147         '../tests/SurfaceTest.cpp',
    148         '../tests/Test.cpp',
    149         '../tests/Test.h',
    150         '../tests/TestSize.cpp',
    151         '../tests/TileGridTest.cpp',
    152         '../tests/TLSTest.cpp',
    153         '../tests/TSetTest.cpp',
    154         '../tests/ToUnicode.cpp',
    155         '../tests/Typeface.cpp',
    156         '../tests/UnicodeTest.cpp',
    157         '../tests/UnitTestTest.cpp',
    158         '../tests/UtilsTest.cpp',
    159         '../tests/WArrayTest.cpp',
    160         '../tests/WritePixelsTest.cpp',
    161         '../tests/Writer32Test.cpp',
    162         '../tests/XfermodeTest.cpp',
    163 
    164         '../experimental/PdfViewer/src/SkTDStackNester.h',
    165         '../tests/TDStackNesterTest.cpp',
    166 
    167         # Needed for PipeTest.
    168         '../src/pipe/utils/SamplePipeControllers.cpp',
    169       ],
    170       'dependencies': [
    171         'skia_lib.gyp:skia_lib',
    172         'flags.gyp:flags',
    173         'experimental.gyp:experimental',
    174         'pdf.gyp:pdf',
    175         'tools.gyp:picture_utils',
    176       ],
    177       'conditions': [
    178         [ 'skia_gpu == 1', {
    179           'include_dirs': [
    180             '../src/gpu',
    181           ],
    182         }],
    183       ],
    184     },
    185   ],
    186 }
    187