gecko/image/test/gtest/moz.build

62 lines
1.4 KiB
Python

# -*- Mode: python; c-basic-offset: 4; 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',
'TestCopyOnWrite.cpp',
'TestDecoders.cpp',
'TestDecodeToSurface.cpp',
'TestDeinterlacingFilter.cpp',
'TestMetadata.cpp',
'TestRemoveFrameRectFilter.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 += [
'corrupt.jpg',
'first-frame-green.gif',
'first-frame-green.png',
'first-frame-padding.gif',
'green.bmp',
'green.gif',
'green.ico',
'green.icon',
'green.jpg',
'green.png',
'no-frame-delay.gif',
'rle4.bmp',
'rle8.bmp',
'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'