blob: 2fee440f91a6401ee165baa95c5c62f5d7967f7d [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': [
mtkleincd1f2da2015-07-28 08:55:14 -07008 '../include/private',
msarett438b2ad2015-04-09 12:43:10 -07009 '../src/codec',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000010 '../src/core',
11 '../src/effects',
12 '../src/image',
13 '../src/lazy',
14 '../src/images',
15 '../src/pathops',
16 '../src/pdf',
bungeman786ece12015-07-15 10:58:47 -070017 '../src/ports',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000018 '../src/pipe/utils',
19 '../src/utils',
20 '../src/utils/debugger',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000021
22 # Needed for TDStackNesterTest.
23 '../experimental/PdfViewer',
24 '../experimental/PdfViewer/src',
25 ],
26 'dependencies': [
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000027 'experimental.gyp:experimental',
caryclark17f0b6d2014-07-22 10:15:34 -070028 'flags.gyp:flags_common',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000029 'pdf.gyp:pdf',
tfarinabcbc1782014-06-18 14:32:48 -070030 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000031 'tools.gyp:picture_utils',
mtklein9ac68ee2014-06-20 11:29:20 -070032 'tools.gyp:resources',
tfarina20108912014-06-21 10:54:17 -070033 'tools.gyp:sk_tool_utils',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000034 ],
djsollen85d36522014-07-22 13:56:34 -070035 'conditions': [
bungeman786ece12015-07-15 10:58:47 -070036 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "android"]', {
bungemanc5308542015-06-23 13:25:46 -070037 'sources!': [ '../tests/FontMgrAndroidParserTest.cpp', ],
bungeman786ece12015-07-15 10:58:47 -070038 }],
djsollen85d36522014-07-22 13:56:34 -070039 [ 'skia_android_framework == 1', {
40 'libraries': [
41 '-ldl',
42 ],
43 }],
44 ],
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000045 'sources': [
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000046 '../tests/Test.h',
halcanary2e0303f2015-05-17 06:47:49 -070047 '<!@(python find.py ../tests "*.c*")',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000048 '../src/utils/debugger/SkDrawCommand.h',
49 '../src/utils/debugger/SkDrawCommand.cpp',
50 '../src/utils/debugger/SkDebugCanvas.h',
51 '../src/utils/debugger/SkDebugCanvas.cpp',
52 '../src/utils/debugger/SkObjectParser.h',
53 '../src/utils/debugger/SkObjectParser.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000054 '../src/pipe/utils/SamplePipeControllers.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000055 '../experimental/PdfViewer/src/SkTDStackNester.h',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000056 ],
halcanary2e0303f2015-05-17 06:47:49 -070057 'sources!': [
58 '../tests/SkpSkGrTest.cpp',
59 '../tests/skia_test.cpp',
60 '../tests/PathOpsAngleIdeas.cpp',
61 '../tests/PathOpsBattles.cpp',
62 '../tests/PathOpsCubicLineIntersectionIdeas.cpp',
63 '../tests/PathOpsDebug.cpp',
64 '../tests/PathOpsOpLoopThreadedTest.cpp',
65 '../tests/PathOpsSkpClipTest.cpp',
66 ],
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000067}