blob: 2756b90a73bc107a8eb24f884c3f120f4cd4ad18 [file] [log] [blame]
epoger@google.comccdbd2c2011-06-02 14:38:23 +00001# GYP file to build unit tests.
2#
3# To build and run on Linux:
4# ./gyp_skia tests.gyp && make
5# out/Debug/tests
6#
7# To build on Linux with skia_pdf_support disabled:
8# ./gyp_skia tests.gyp -Dskia_pdf_support=false && make
9#
10# Building on other platforms not tested yet.
11#
12{
13 'includes': [
14 'apptype_console.gypi',
15 'target_defaults.gypi',
16 ],
17 'variables': {
18 'skia_pdf_support%': 'true',
19 },
20 'targets': [
21 {
22 'target_name': 'tests',
23 'type': 'executable',
24 'include_dirs' : [
25 '../include/pdf',
26 '../src/core',
27 ],
28 'sources': [
29 '../tests/BitmapCopyTest.cpp',
30 '../tests/BitmapGetColorTest.cpp',
31 '../tests/BlitRowTest.cpp',
32 '../tests/ClampRangeTest.cpp',
33 '../tests/ClipCubicTest.cpp',
34 '../tests/ClipStackTest.cpp',
35 '../tests/ClipperTest.cpp',
36 '../tests/ColorFilterTest.cpp',
37 '../tests/ColorTest.cpp',
38 '../tests/DequeTest.cpp',
39 '../tests/DrawBitmapRectTest.cpp',
40 '../tests/FillPathTest.cpp',
41 '../tests/FlateTest.cpp',
42 '../tests/GeometryTest.cpp',
43 '../tests/InfRectTest.cpp',
44 '../tests/MathTest.cpp',
45 '../tests/MatrixTest.cpp',
46 '../tests/MetaDataTest.cpp',
47 '../tests/PackBitsTest.cpp',
48 '../tests/PaintTest.cpp',
49 '../tests/ParsePathTest.cpp',
50 '../tests/PathMeasureTest.cpp',
51 '../tests/PathTest.cpp',
52 '../tests/PDFPrimitivesTest.cpp',
53 '../tests/Reader32Test.cpp',
54 '../tests/RefDictTest.cpp',
55 '../tests/RegionTest.cpp',
56 '../tests/Sk64Test.cpp',
57 '../tests/skia_test.cpp',
58 '../tests/SortTest.cpp',
59 '../tests/SrcOverTest.cpp',
60 '../tests/StreamTest.cpp',
61 '../tests/StringTest.cpp',
62 '../tests/Test.cpp',
63 '../tests/TestSize.cpp',
64 '../tests/UtilsTest.cpp',
65 '../tests/Writer32Test.cpp',
66 '../tests/XfermodeTest.cpp',
67 ],
68 'dependencies': [
69 'core.gyp:core',
70 'effects.gyp:effects',
71 'images.gyp:images',
72 'utils.gyp:utils',
73 ],
74 'conditions': [
75 [ 'skia_pdf_support == "true"',
76 { # if skia_pdf_support is TRUE, depend on pdf.gyp...
77 'dependencies': [
78 'pdf.gyp:pdf',
79 ],
80 }, { # else, we don't need PDFPrimitivesTest.cpp after all.
81 'sources!': [
82 '../tests/PDFPrimitivesTest.cpp',
83 ],
84 }
85 ],
86 ],
87 },
88 ],
89}
90
91# Local Variables:
92# tab-width:2
93# indent-tabs-mode:nil
94# End:
95# vim: set expandtab tabstop=2 shiftwidth=2: