2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:21 +00:00
|
|
|
# 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/.
|
|
|
|
|
2015-05-15 03:52:05 +00:00
|
|
|
DIRS += ['build', 'decoders', 'encoders']
|
2015-08-01 01:10:34 +00:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
DIRS += ['test/gtest']
|
2013-03-19 18:47:00 +00:00
|
|
|
|
2017-11-22 16:21:09 +00:00
|
|
|
if CONFIG['FUZZING_INTERFACES']:
|
2016-09-19 14:59:44 +00:00
|
|
|
DIRS += ['test/fuzzing']
|
|
|
|
|
2015-03-19 01:29:32 +00:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'ImageLib')
|
|
|
|
|
2014-09-26 04:20:23 +00:00
|
|
|
BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
|
|
|
|
|
|
|
|
MOCHITEST_MANIFESTS += ['test/mochitest/mochitest.ini']
|
|
|
|
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['test/mochitest/chrome.ini']
|
|
|
|
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
|
2015-05-06 17:57:19 +00:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'imgICache.idl',
|
|
|
|
'imgIContainer.idl',
|
|
|
|
'imgIContainerDebug.idl',
|
|
|
|
'imgIEncoder.idl',
|
|
|
|
'imgILoader.idl',
|
|
|
|
'imgINotificationObserver.idl',
|
|
|
|
'imgIRequest.idl',
|
|
|
|
'imgIScriptedNotificationObserver.idl',
|
|
|
|
'imgITools.idl',
|
|
|
|
'nsIIconURI.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'imglib2'
|
|
|
|
|
|
|
|
EXPORTS += [
|
2017-03-22 13:05:36 +00:00
|
|
|
'FrameTimeout.h',
|
2015-05-20 17:21:09 +00:00
|
|
|
'ImageCacheKey.h',
|
2015-05-06 17:57:19 +00:00
|
|
|
'ImageLogging.h',
|
2017-03-22 13:05:36 +00:00
|
|
|
'ImageMetadata.h',
|
2015-05-15 03:52:05 +00:00
|
|
|
'ImageOps.h',
|
|
|
|
'ImageRegion.h',
|
2017-12-11 15:37:59 +00:00
|
|
|
'ImgDrawResult.h',
|
2015-05-15 03:52:05 +00:00
|
|
|
'imgLoader.h',
|
|
|
|
'imgRequest.h',
|
|
|
|
'imgRequestProxy.h',
|
|
|
|
'IProgressObserver.h',
|
|
|
|
'Orientation.h',
|
2016-08-08 22:54:10 +00:00
|
|
|
'SurfaceCacheUtils.h',
|
2015-05-06 17:57:19 +00:00
|
|
|
]
|
2015-05-15 03:52:05 +00:00
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
2016-08-18 07:01:10 +00:00
|
|
|
'AnimationSurfaceProvider.cpp',
|
2015-05-15 03:52:05 +00:00
|
|
|
'ClippedImage.cpp',
|
2016-08-01 22:18:54 +00:00
|
|
|
'DecodedSurfaceProvider.cpp',
|
2015-05-15 03:52:05 +00:00
|
|
|
'DecodePool.cpp',
|
|
|
|
'Decoder.cpp',
|
2015-07-23 05:39:48 +00:00
|
|
|
'DecoderFactory.cpp',
|
2015-05-15 03:52:05 +00:00
|
|
|
'DynamicImage.cpp',
|
|
|
|
'FrameAnimator.cpp',
|
|
|
|
'FrozenImage.cpp',
|
2016-06-29 20:43:19 +00:00
|
|
|
'IDecodingTask.cpp',
|
2015-05-15 03:52:05 +00:00
|
|
|
'Image.cpp',
|
2015-05-20 17:21:09 +00:00
|
|
|
'ImageCacheKey.cpp',
|
2015-05-15 03:52:05 +00:00
|
|
|
'ImageFactory.cpp',
|
|
|
|
'ImageOps.cpp',
|
|
|
|
'ImageWrapper.cpp',
|
|
|
|
'imgFrame.cpp',
|
2017-03-21 18:09:13 +00:00
|
|
|
'imgLoader.cpp',
|
2017-03-21 18:09:14 +00:00
|
|
|
'imgRequest.cpp',
|
2017-03-21 18:09:15 +00:00
|
|
|
'imgRequestProxy.cpp',
|
2015-05-15 03:52:05 +00:00
|
|
|
'imgTools.cpp',
|
|
|
|
'MultipartImage.cpp',
|
|
|
|
'OrientedImage.cpp',
|
2017-03-21 18:09:16 +00:00
|
|
|
'ProgressTracker.cpp',
|
2017-03-21 18:09:17 +00:00
|
|
|
'RasterImage.cpp',
|
2015-05-15 03:52:05 +00:00
|
|
|
'ScriptedNotificationObserver.cpp',
|
|
|
|
'ShutdownTracker.cpp',
|
|
|
|
'SourceBuffer.cpp',
|
|
|
|
'SurfaceCache.cpp',
|
2016-08-08 22:54:10 +00:00
|
|
|
'SurfaceCacheUtils.cpp',
|
2016-02-26 00:21:29 +00:00
|
|
|
'SurfacePipe.cpp',
|
2015-05-15 03:52:05 +00:00
|
|
|
'SVGDocumentWrapper.cpp',
|
|
|
|
'VectorImage.cpp',
|
|
|
|
]
|
|
|
|
if CONFIG['MOZ_ENABLE_SKIA']:
|
|
|
|
UNIFIED_SOURCES += [ 'Downscaler.cpp']
|
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
# Because SVGDocumentWrapper.cpp includes "mozilla/dom/SVGSVGElement.h"
|
|
|
|
'/dom/base',
|
|
|
|
'/dom/svg',
|
|
|
|
# We need to instantiate the decoders
|
|
|
|
'/image/decoders',
|
2017-08-30 13:14:46 +00:00
|
|
|
# Because VectorImage.cpp includes nsSVGUtils.h and SVGObserverUtils.h
|
2015-05-15 03:52:05 +00:00
|
|
|
'/layout/svg',
|
|
|
|
# For URI-related functionality
|
|
|
|
'/netwerk/base',
|
|
|
|
# DecodePool uses thread-related facilities.
|
|
|
|
'/xpcom/threads',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Because imgFrame.cpp includes "cairo.h"
|
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
2015-07-30 16:05:22 +00:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
|
|
|
|
|
2017-12-07 21:09:15 +00:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 07:00:01 +00:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|
2016-09-19 14:59:44 +00:00
|
|
|
|
|
|
|
if CONFIG['FUZZING']:
|
|
|
|
if CONFIG['LIBFUZZER']:
|
|
|
|
# Add trace-pc coverage for libfuzzer
|
|
|
|
CFLAGS += ['-fsanitize-coverage=trace-pc-guard']
|
|
|
|
CXXFLAGS += ['-fsanitize-coverage=trace-pc-guard']
|