scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 1 | # 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.org | a5572e5 | 2014-03-07 03:24:41 +0000 | [diff] [blame] | 5 | # Common gypi for unit tests. |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 6 | { |
| 7 | 'include_dirs': [ |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 8 | '../include/private', |
msarett | 438b2ad | 2015-04-09 12:43:10 -0700 | [diff] [blame] | 9 | '../src/codec', |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 10 | '../src/core', |
| 11 | '../src/effects', |
| 12 | '../src/image', |
| 13 | '../src/lazy', |
| 14 | '../src/images', |
| 15 | '../src/pathops', |
| 16 | '../src/pdf', |
bungeman | 786ece1 | 2015-07-15 10:58:47 -0700 | [diff] [blame] | 17 | '../src/ports', |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 18 | '../src/pipe/utils', |
| 19 | '../src/utils', |
| 20 | '../src/utils/debugger', |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 21 | ], |
| 22 | 'dependencies': [ |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 23 | 'experimental.gyp:experimental', |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 24 | 'flags.gyp:flags_common', |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 25 | 'pdf.gyp:pdf', |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 26 | 'skia_lib.gyp:skia_lib', |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 27 | 'tools.gyp:picture_utils', |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 28 | 'tools.gyp:resources', |
tfarina | 2010891 | 2014-06-21 10:54:17 -0700 | [diff] [blame] | 29 | 'tools.gyp:sk_tool_utils', |
halcanary | 48305e8 | 2015-08-18 13:30:25 -0700 | [diff] [blame] | 30 | 'zlib.gyp:zlib', |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 31 | ], |
djsollen | 85d3652 | 2014-07-22 13:56:34 -0700 | [diff] [blame] | 32 | 'conditions': [ |
bungeman | 786ece1 | 2015-07-15 10:58:47 -0700 | [diff] [blame] | 33 | [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "android"]', { |
bungeman | c530854 | 2015-06-23 13:25:46 -0700 | [diff] [blame] | 34 | 'sources!': [ '../tests/FontMgrAndroidParserTest.cpp', ], |
bungeman | 786ece1 | 2015-07-15 10:58:47 -0700 | [diff] [blame] | 35 | }], |
djsollen | 85d3652 | 2014-07-22 13:56:34 -0700 | [diff] [blame] | 36 | [ 'skia_android_framework == 1', { |
| 37 | 'libraries': [ |
| 38 | '-ldl', |
| 39 | ], |
| 40 | }], |
halcanary | 8ee06f2 | 2015-08-11 10:30:12 -0700 | [diff] [blame] | 41 | [ 'not skia_pdf', { |
halcanary | 48305e8 | 2015-08-18 13:30:25 -0700 | [diff] [blame] | 42 | 'dependencies!': [ 'pdf.gyp:pdf', 'zlib.gyp:zlib' ], |
halcanary | 8ee06f2 | 2015-08-11 10:30:12 -0700 | [diff] [blame] | 43 | 'dependencies': [ 'pdf.gyp:nopdf' ], |
halcanary | 2ccdb63 | 2015-08-11 13:35:12 -0700 | [diff] [blame] | 44 | 'sources!': [ '<!@(python find.py ../tests "PDF*.c*")', ], |
halcanary | 8ee06f2 | 2015-08-11 10:30:12 -0700 | [diff] [blame] | 45 | }], |
egdaniel | 4b5472b | 2015-08-12 06:51:08 -0700 | [diff] [blame] | 46 | [ 'skia_gpu_extra_tests_path', { |
| 47 | 'sources': [ |
| 48 | '<!@(python find.py <(skia_gpu_extra_tests_path) "*.c*")', |
| 49 | ], |
| 50 | }], |
djsollen | 85d3652 | 2014-07-22 13:56:34 -0700 | [diff] [blame] | 51 | ], |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 52 | 'sources': [ |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 53 | '../tests/Test.h', |
halcanary | 2e0303f | 2015-05-17 06:47:49 -0700 | [diff] [blame] | 54 | '<!@(python find.py ../tests "*.c*")', |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 55 | '../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.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 61 | '../src/pipe/utils/SamplePipeControllers.cpp', |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 62 | ], |
halcanary | 2e0303f | 2015-05-17 06:47:49 -0700 | [diff] [blame] | 63 | '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.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 73 | } |