blob: 9b976456a70ab94adfbb93d4440e763371c6ceea [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/utils',
ethannicholas3cb95422016-02-09 12:44:06 -080019 '../tools/debugger',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000020 ],
21 'dependencies': [
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000022 'experimental.gyp:experimental',
caryclark17f0b6d2014-07-22 10:15:34 -070023 'flags.gyp:flags_common',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000024 'pdf.gyp:pdf',
tfarinabcbc1782014-06-18 14:32:48 -070025 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000026 'tools.gyp:picture_utils',
mtklein9ac68ee2014-06-20 11:29:20 -070027 'tools.gyp:resources',
tfarina20108912014-06-21 10:54:17 -070028 'tools.gyp:sk_tool_utils',
halcanary48305e82015-08-18 13:30:25 -070029 'zlib.gyp:zlib',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000030 ],
djsollen85d36522014-07-22 13:56:34 -070031 'conditions': [
borenet43bf5112016-04-29 14:01:34 -070032 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android"]', {
bungemanc5308542015-06-23 13:25:46 -070033 'sources!': [ '../tests/FontMgrAndroidParserTest.cpp', ],
bungeman786ece12015-07-15 10:58:47 -070034 }],
halcanary8ee06f22015-08-11 10:30:12 -070035 [ 'not skia_pdf', {
halcanary48305e82015-08-18 13:30:25 -070036 'dependencies!': [ 'pdf.gyp:pdf', 'zlib.gyp:zlib' ],
halcanary8ee06f22015-08-11 10:30:12 -070037 'dependencies': [ 'pdf.gyp:nopdf' ],
mtkleinada5a442016-08-02 14:28:26 -070038 'sources!': [ '<!@(python find.py "PDF*.c*" ../tests)', ],
halcanary8ee06f22015-08-11 10:30:12 -070039 }],
egdaniel4b5472b2015-08-12 06:51:08 -070040 [ 'skia_gpu_extra_tests_path', {
41 'sources': [
mtkleinada5a442016-08-02 14:28:26 -070042 '<!@(python find.py "*.c*" <(skia_gpu_extra_tests_path))',
egdaniel4b5472b2015-08-12 06:51:08 -070043 ],
44 }],
djsollen85d36522014-07-22 13:56:34 -070045 ],
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000046 'sources': [
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000047 '../tests/Test.h',
mtkleinada5a442016-08-02 14:28:26 -070048 '<!@(python find.py "*.c*" ../tests)',
ethannicholas3cb95422016-02-09 12:44:06 -080049 '../tools/debugger/SkDrawCommand.h',
50 '../tools/debugger/SkDrawCommand.cpp',
51 '../tools/debugger/SkDebugCanvas.h',
52 '../tools/debugger/SkDebugCanvas.cpp',
brianosmanfad98562016-05-04 11:06:28 -070053 '../tools/debugger/SkJsonWriteBuffer.h',
54 '../tools/debugger/SkJsonWriteBuffer.cpp',
ethannicholas3cb95422016-02-09 12:44:06 -080055 '../tools/debugger/SkObjectParser.h',
56 '../tools/debugger/SkObjectParser.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000057 ],
halcanary2e0303f2015-05-17 06:47:49 -070058 'sources!': [
59 '../tests/SkpSkGrTest.cpp',
60 '../tests/skia_test.cpp',
61 '../tests/PathOpsAngleIdeas.cpp',
62 '../tests/PathOpsBattles.cpp',
63 '../tests/PathOpsCubicLineIntersectionIdeas.cpp',
64 '../tests/PathOpsDebug.cpp',
65 '../tests/PathOpsOpLoopThreadedTest.cpp',
halcanary2e0303f2015-05-17 06:47:49 -070066 ],
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000067}