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. 5# Common gypi for unit tests. 6{ 7 'include_dirs': [ 8 '../include/private', 9 '../src/codec', 10 '../src/core', 11 '../src/effects', 12 '../src/image', 13 '../src/lazy', 14 '../src/images', 15 '../src/pathops', 16 '../src/pdf', 17 '../src/ports', 18 '../src/utils', 19 '../tools/debugger', 20 ], 21 'dependencies': [ 22 'experimental.gyp:experimental', 23 'flags.gyp:flags_common', 24 'pdf.gyp:pdf', 25 'skia_lib.gyp:skia_lib', 26 'tools.gyp:picture_utils', 27 'tools.gyp:resources', 28 'tools.gyp:sk_tool_utils', 29 'zlib.gyp:zlib', 30 ], 31 'conditions': [ 32 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "android"]', { 33 'sources!': [ '../tests/FontMgrAndroidParserTest.cpp', ], 34 }], 35 [ 'not skia_pdf', { 36 'dependencies!': [ 'pdf.gyp:pdf', 'zlib.gyp:zlib' ], 37 'dependencies': [ 'pdf.gyp:nopdf' ], 38 'sources!': [ '<!@(python find.py ../tests "PDF*.c*")', ], 39 }], 40 [ 'skia_gpu_extra_tests_path', { 41 'sources': [ 42 '<!@(python find.py <(skia_gpu_extra_tests_path) "*.c*")', 43 ], 44 }], 45 ], 46 'sources': [ 47 '../tests/Test.h', 48 '<!@(python find.py ../tests "*.c*")', 49 '../tools/debugger/SkDrawCommand.h', 50 '../tools/debugger/SkDrawCommand.cpp', 51 '../tools/debugger/SkDebugCanvas.h', 52 '../tools/debugger/SkDebugCanvas.cpp', 53 '../tools/debugger/SkObjectParser.h', 54 '../tools/debugger/SkObjectParser.cpp', 55 '../tools/debugger/SkOverdrawMode.h', 56 '../tools/debugger/SkOverdrawMode.cpp', 57 ], 58 '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', 66 '../tests/PathOpsSkpClipTest.cpp', 67 ], 68} 69