blob: 1fd87addf9d2d9ea0a828ea6694dfca0c5c35bf6 [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 'dependencies': [
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000023 'experimental.gyp:experimental',
caryclark17f0b6d2014-07-22 10:15:34 -070024 'flags.gyp:flags_common',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000025 'pdf.gyp:pdf',
tfarinabcbc1782014-06-18 14:32:48 -070026 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000027 'tools.gyp:picture_utils',
mtklein9ac68ee2014-06-20 11:29:20 -070028 'tools.gyp:resources',
tfarina20108912014-06-21 10:54:17 -070029 'tools.gyp:sk_tool_utils',
halcanary48305e82015-08-18 13:30:25 -070030 'zlib.gyp:zlib',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000031 ],
djsollen85d36522014-07-22 13:56:34 -070032 'conditions': [
bungeman786ece12015-07-15 10:58:47 -070033 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "android"]', {
bungemanc5308542015-06-23 13:25:46 -070034 'sources!': [ '../tests/FontMgrAndroidParserTest.cpp', ],
bungeman786ece12015-07-15 10:58:47 -070035 }],
djsollen85d36522014-07-22 13:56:34 -070036 [ 'skia_android_framework == 1', {
37 'libraries': [
38 '-ldl',
39 ],
40 }],
halcanary8ee06f22015-08-11 10:30:12 -070041 [ 'not skia_pdf', {
halcanary48305e82015-08-18 13:30:25 -070042 'dependencies!': [ 'pdf.gyp:pdf', 'zlib.gyp:zlib' ],
halcanary8ee06f22015-08-11 10:30:12 -070043 'dependencies': [ 'pdf.gyp:nopdf' ],
halcanary2ccdb632015-08-11 13:35:12 -070044 'sources!': [ '<!@(python find.py ../tests "PDF*.c*")', ],
halcanary8ee06f22015-08-11 10:30:12 -070045 }],
egdaniel4b5472b2015-08-12 06:51:08 -070046 [ 'skia_gpu_extra_tests_path', {
47 'sources': [
48 '<!@(python find.py <(skia_gpu_extra_tests_path) "*.c*")',
49 ],
50 }],
djsollen85d36522014-07-22 13:56:34 -070051 ],
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000052 'sources': [
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000053 '../tests/Test.h',
halcanary2e0303f2015-05-17 06:47:49 -070054 '<!@(python find.py ../tests "*.c*")',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000055 '../src/utils/debugger/SkDrawCommand.h',
56 '../src/utils/debugger/SkDrawCommand.cpp',
57 '../src/utils/debugger/SkDebugCanvas.h',
58 '../src/utils/debugger/SkDebugCanvas.cpp',
59 '../src/utils/debugger/SkObjectParser.h',
60 '../src/utils/debugger/SkObjectParser.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000061 '../src/pipe/utils/SamplePipeControllers.cpp',
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000062 ],
halcanary2e0303f2015-05-17 06:47:49 -070063 'sources!': [
64 '../tests/SkpSkGrTest.cpp',
65 '../tests/skia_test.cpp',
66 '../tests/PathOpsAngleIdeas.cpp',
67 '../tests/PathOpsBattles.cpp',
68 '../tests/PathOpsCubicLineIntersectionIdeas.cpp',
69 '../tests/PathOpsDebug.cpp',
70 '../tests/PathOpsOpLoopThreadedTest.cpp',
71 '../tests/PathOpsSkpClipTest.cpp',
72 ],
commit-bot@chromium.org0dc5bd12014-02-26 16:31:22 +000073}