blob: e2de6048ffed1685d039ae9d101f64c64e5e19cc [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
commit-bot@chromium.orga5572e52014-03-07 03:24:41 +00005# Common gypi for unit tests.
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +00006{
7 'include_dirs': [
msarett438b2ad2015-04-09 12:43:10 -07008 '../src/codec',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +00009 '../src/core',
10 '../src/effects',
11 '../src/image',
12 '../src/lazy',
13 '../src/images',
14 '../src/pathops',
15 '../src/pdf',
bungeman786ece12015-07-15 10:58:47 -070016 '../src/ports',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000017 '../src/pipe/utils',
18 '../src/utils',
19 '../src/utils/debugger',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000020
21 # Needed for TDStackNesterTest.
22 '../experimental/PdfViewer',
23 '../experimental/PdfViewer/src',
24 ],
25 'dependencies': [
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000026 'experimental.gyp:experimental',
caryclark17f0b6d2014-07-22 10:15:34 -070027 'flags.gyp:flags_common',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000028 'pdf.gyp:pdf',
tfarinabcbc1782014-06-18 14:32:48 -070029 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000030 'tools.gyp:picture_utils',
mtklein9ac68ee2014-06-20 11:29:20 -070031 'tools.gyp:resources',
tfarina20108912014-06-21 10:54:17 -070032 'tools.gyp:sk_tool_utils',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000033 ],
djsollen85d36522014-07-22 13:56:34 -070034 'conditions': [
bungeman786ece12015-07-15 10:58:47 -070035 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "android"]', {
bungemanc5308542015-06-23 13:25:46 -070036 'sources!': [ '../tests/FontMgrAndroidParserTest.cpp', ],
bungeman786ece12015-07-15 10:58:47 -070037 }],
djsollen85d36522014-07-22 13:56:34 -070038 [ 'skia_android_framework == 1', {
39 'libraries': [
40 '-ldl',
41 ],
42 }],
43 ],
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000044 'sources': [
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000045 '../tests/Test.h',
halcanary2e0303f2015-05-17 06:47:49 -070046 '<!@(python find.py ../tests "*.c*")',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000047 '../src/utils/debugger/SkDrawCommand.h',
48 '../src/utils/debugger/SkDrawCommand.cpp',
49 '../src/utils/debugger/SkDebugCanvas.h',
50 '../src/utils/debugger/SkDebugCanvas.cpp',
51 '../src/utils/debugger/SkObjectParser.h',
52 '../src/utils/debugger/SkObjectParser.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000053 '../src/pipe/utils/SamplePipeControllers.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000054 '../experimental/PdfViewer/src/SkTDStackNester.h',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000055 ],
halcanary2e0303f2015-05-17 06:47:49 -070056 'sources!': [
57 '../tests/SkpSkGrTest.cpp',
58 '../tests/skia_test.cpp',
59 '../tests/PathOpsAngleIdeas.cpp',
60 '../tests/PathOpsBattles.cpp',
61 '../tests/PathOpsCubicLineIntersectionIdeas.cpp',
62 '../tests/PathOpsDebug.cpp',
63 '../tests/PathOpsOpLoopThreadedTest.cpp',
64 '../tests/PathOpsSkpClipTest.cpp',
65 ],
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000066}