OLD | NEW |
1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # Common gypi for unit tests. | 5 # Common gypi for unit tests. |
6 { | 6 { |
7 'include_dirs': [ | 7 'include_dirs': [ |
8 '../src/codec', | 8 '../src/codec', |
9 '../src/core', | 9 '../src/core', |
10 '../src/effects', | 10 '../src/effects', |
11 '../src/image', | 11 '../src/image', |
12 '../src/lazy', | 12 '../src/lazy', |
13 '../src/images', | 13 '../src/images', |
14 '../src/pathops', | 14 '../src/pathops', |
15 '../src/pdf', | 15 '../src/pdf', |
| 16 '../src/ports', |
16 '../src/pipe/utils', | 17 '../src/pipe/utils', |
17 '../src/utils', | 18 '../src/utils', |
18 '../src/utils/debugger', | 19 '../src/utils/debugger', |
19 | 20 |
20 # Needed for TDStackNesterTest. | 21 # Needed for TDStackNesterTest. |
21 '../experimental/PdfViewer', | 22 '../experimental/PdfViewer', |
22 '../experimental/PdfViewer/src', | 23 '../experimental/PdfViewer/src', |
23 ], | 24 ], |
24 'dependencies': [ | 25 'dependencies': [ |
25 'experimental.gyp:experimental', | 26 'experimental.gyp:experimental', |
26 'flags.gyp:flags_common', | 27 'flags.gyp:flags_common', |
27 'pdf.gyp:pdf', | 28 'pdf.gyp:pdf', |
28 'skia_lib.gyp:skia_lib', | 29 'skia_lib.gyp:skia_lib', |
29 'tools.gyp:picture_utils', | 30 'tools.gyp:picture_utils', |
30 'tools.gyp:resources', | 31 'tools.gyp:resources', |
31 'tools.gyp:sk_tool_utils', | 32 'tools.gyp:sk_tool_utils', |
32 ], | 33 ], |
33 'conditions': [ | 34 'conditions': [ |
34 [ 'skia_os == "android"', | 35 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "an
droid"]', { |
35 { | |
36 'include_dirs': [ '../src/ports', ], | |
37 }, { | |
38 'sources!': [ '../tests/FontMgrAndroidParserTest.cpp', ], | 36 'sources!': [ '../tests/FontMgrAndroidParserTest.cpp', ], |
39 } | 37 }], |
40 ], | |
41 [ 'skia_android_framework == 1', { | 38 [ 'skia_android_framework == 1', { |
42 'libraries': [ | 39 'libraries': [ |
43 '-ldl', | 40 '-ldl', |
44 ], | 41 ], |
45 }], | 42 }], |
46 ], | 43 ], |
47 'sources': [ | 44 'sources': [ |
48 '../tests/Test.h', | 45 '../tests/Test.h', |
49 '<!@(python find.py ../tests "*.c*")', | 46 '<!@(python find.py ../tests "*.c*")', |
50 '../src/utils/debugger/SkDrawCommand.h', | 47 '../src/utils/debugger/SkDrawCommand.h', |
51 '../src/utils/debugger/SkDrawCommand.cpp', | 48 '../src/utils/debugger/SkDrawCommand.cpp', |
52 '../src/utils/debugger/SkDebugCanvas.h', | 49 '../src/utils/debugger/SkDebugCanvas.h', |
53 '../src/utils/debugger/SkDebugCanvas.cpp', | 50 '../src/utils/debugger/SkDebugCanvas.cpp', |
54 '../src/utils/debugger/SkObjectParser.h', | 51 '../src/utils/debugger/SkObjectParser.h', |
55 '../src/utils/debugger/SkObjectParser.cpp', | 52 '../src/utils/debugger/SkObjectParser.cpp', |
56 '../src/pipe/utils/SamplePipeControllers.cpp', | 53 '../src/pipe/utils/SamplePipeControllers.cpp', |
57 '../experimental/PdfViewer/src/SkTDStackNester.h', | 54 '../experimental/PdfViewer/src/SkTDStackNester.h', |
58 ], | 55 ], |
59 'sources!': [ | 56 'sources!': [ |
60 '../tests/SkpSkGrTest.cpp', | 57 '../tests/SkpSkGrTest.cpp', |
61 '../tests/skia_test.cpp', | 58 '../tests/skia_test.cpp', |
62 '../tests/PathOpsAngleIdeas.cpp', | 59 '../tests/PathOpsAngleIdeas.cpp', |
63 '../tests/PathOpsBattles.cpp', | 60 '../tests/PathOpsBattles.cpp', |
64 '../tests/PathOpsCubicLineIntersectionIdeas.cpp', | 61 '../tests/PathOpsCubicLineIntersectionIdeas.cpp', |
65 '../tests/PathOpsDebug.cpp', | 62 '../tests/PathOpsDebug.cpp', |
66 '../tests/PathOpsOpLoopThreadedTest.cpp', | 63 '../tests/PathOpsOpLoopThreadedTest.cpp', |
67 '../tests/PathOpsSkpClipTest.cpp', | 64 '../tests/PathOpsSkpClipTest.cpp', |
68 ], | 65 ], |
69 } | 66 } |
OLD | NEW |