summaryrefslogtreecommitdiff
path: root/image/test/gtest/moz.build
blob: 3548eaecc041d39b4e5b555a1f9b2ba497ab1b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

Library('imagetest')

UNIFIED_SOURCES = [
    'Common.cpp',
    'TestADAM7InterpolatingFilter.cpp',
    'TestCopyOnWrite.cpp',
    'TestDecoders.cpp',
    'TestDecodeToSurface.cpp',
    'TestDeinterlacingFilter.cpp',
    'TestLoader.cpp',
    'TestMetadata.cpp',
    'TestRemoveFrameRectFilter.cpp',
    'TestSourceBuffer.cpp',
    'TestStreamingLexer.cpp',
    'TestSurfaceSink.cpp',
]

if CONFIG['MOZ_ENABLE_SKIA']:
    UNIFIED_SOURCES += [
        'TestDownscalingFilter.cpp',
        'TestSurfacePipeIntegration.cpp',
    ]

SOURCES += [
    # Can't be unified because it manipulates the preprocessor environment.
    'TestDownscalingFilterNoSkia.cpp',
]

TEST_HARNESS_FILES.gtest += [
    'animated-with-extra-image-sub-blocks.gif',
    'corrupt-with-bad-bmp-height.ico',
    'corrupt-with-bad-bmp-width.ico',
    'corrupt.jpg',
    'downscaled.bmp',
    'downscaled.gif',
    'downscaled.ico',
    'downscaled.icon',
    'downscaled.jpg',
    'downscaled.png',
    'first-frame-green.gif',
    'first-frame-green.png',
    'first-frame-padding.gif',
    'green-1x1-truncated.gif',
    'green.bmp',
    'green.gif',
    'green.ico',
    'green.icon',
    'green.jpg',
    'green.png',
    'invalid-truncated-metadata.bmp',
    'no-frame-delay.gif',
    'rle4.bmp',
    'rle8.bmp',
    'transparent-ico-with-and-mask.ico',
    'transparent-if-within-ico.bmp',
    'transparent.gif',
    'transparent.png',
]

include('/ipc/chromium/chromium-config.mozbuild')

LOCAL_INCLUDES += [
    '/dom/base',
    '/gfx/2d',
    '/image',
]

LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']

FINAL_LIBRARY = 'xul-gtest'

if CONFIG['GNU_CXX']:
    CXXFLAGS += ['-Wno-error=shadow']