2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:21 -08: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-14 20:52:05 -07:00
|
|
|
DIRS += ['build', 'decoders', 'encoders']
|
2013-03-19 11:47:00 -07:00
|
|
|
|
2015-03-18 18:29:32 -07:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'ImageLib')
|
|
|
|
|
2014-09-25 21:20:23 -07: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 10:57:19 -07:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'imgICache.idl',
|
|
|
|
'imgIContainer.idl',
|
|
|
|
'imgIContainerDebug.idl',
|
|
|
|
'imgIEncoder.idl',
|
|
|
|
'imgILoader.idl',
|
|
|
|
'imgINotificationObserver.idl',
|
|
|
|
'imgIOnloadBlocker.idl',
|
|
|
|
'imgIRequest.idl',
|
|
|
|
'imgIScriptedNotificationObserver.idl',
|
|
|
|
'imgITools.idl',
|
|
|
|
'nsIIconURI.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'imglib2'
|
|
|
|
|
|
|
|
EXPORTS += [
|
2015-05-20 10:21:09 -07:00
|
|
|
'ImageCacheKey.h',
|
2015-05-06 10:57:19 -07:00
|
|
|
'ImageLogging.h',
|
2015-05-14 20:52:05 -07:00
|
|
|
'ImageOps.h',
|
|
|
|
'ImageRegion.h',
|
|
|
|
'imgLoader.h',
|
|
|
|
'imgRequest.h',
|
|
|
|
'imgRequestProxy.h',
|
|
|
|
'IProgressObserver.h',
|
|
|
|
'Orientation.h',
|
|
|
|
'SurfaceCache.h',
|
2015-05-06 10:57:19 -07:00
|
|
|
]
|
2015-05-14 20:52:05 -07:00
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'ClippedImage.cpp',
|
|
|
|
'DecodePool.cpp',
|
|
|
|
'Decoder.cpp',
|
2015-07-22 22:39:48 -07:00
|
|
|
'DecoderFactory.cpp',
|
2015-05-14 20:52:05 -07:00
|
|
|
'DynamicImage.cpp',
|
|
|
|
'FrameAnimator.cpp',
|
|
|
|
'FrozenImage.cpp',
|
|
|
|
'Image.cpp',
|
2015-05-20 10:21:09 -07:00
|
|
|
'ImageCacheKey.cpp',
|
2015-05-14 20:52:05 -07:00
|
|
|
'ImageFactory.cpp',
|
|
|
|
'ImageMetadata.cpp',
|
|
|
|
'ImageOps.cpp',
|
|
|
|
'ImageWrapper.cpp',
|
|
|
|
'imgFrame.cpp',
|
|
|
|
'imgTools.cpp',
|
|
|
|
'MultipartImage.cpp',
|
|
|
|
'OrientedImage.cpp',
|
|
|
|
'ScriptedNotificationObserver.cpp',
|
|
|
|
'ShutdownTracker.cpp',
|
|
|
|
'SourceBuffer.cpp',
|
|
|
|
'SurfaceCache.cpp',
|
|
|
|
'SVGDocumentWrapper.cpp',
|
|
|
|
'VectorImage.cpp',
|
|
|
|
]
|
|
|
|
if CONFIG['MOZ_ENABLE_SKIA']:
|
|
|
|
UNIFIED_SOURCES += [ 'Downscaler.cpp']
|
|
|
|
|
|
|
|
# These files can't be unified because of ImageLogging.h #include order issues.
|
|
|
|
SOURCES += [
|
|
|
|
'imgLoader.cpp',
|
|
|
|
'imgRequest.cpp',
|
|
|
|
'imgRequestProxy.cpp',
|
|
|
|
'ProgressTracker.cpp',
|
|
|
|
'RasterImage.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
# Because SVGDocumentWrapper.cpp includes "mozilla/dom/SVGSVGElement.h"
|
|
|
|
'/dom/base',
|
|
|
|
'/dom/svg',
|
|
|
|
# Access to Skia headers for Downscaler
|
|
|
|
'/gfx/2d',
|
|
|
|
# We need to instantiate the decoders
|
|
|
|
'/image/decoders',
|
|
|
|
# Because VectorImage.cpp includes nsSVGUtils.h and nsSVGEffects.h
|
|
|
|
'/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 09:05:22 -07:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
|
|
|
|
|