2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:21 +04: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 06:52:05 +03:00
|
|
|
DIRS += ["build", "decoders", "encoders"]
|
2015-08-01 04:10:34 +03:00
|
|
|
if CONFIG["ENABLE_TESTS"]:
|
|
|
|
DIRS += ["test/gtest"]
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2017-11-22 19:21:09 +03:00
|
|
|
if CONFIG["FUZZING_INTERFACES"]:
|
2016-09-19 17:59:44 +03:00
|
|
|
DIRS += ["test/fuzzing"]
|
|
|
|
|
2015-03-19 04:29:32 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "ImageLib")
|
|
|
|
|
2021-06-26 04:15:01 +03:00
|
|
|
BROWSER_CHROME_MANIFESTS += [
|
|
|
|
"test/browser/browser.ini",
|
|
|
|
"test/browser/browser_sandbox_headless.ini",
|
|
|
|
]
|
2014-09-26 08:20:23 +04:00
|
|
|
|
|
|
|
MOCHITEST_MANIFESTS += ["test/mochitest/mochitest.ini"]
|
|
|
|
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ["test/mochitest/chrome.ini"]
|
|
|
|
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += ["test/unit/xpcshell.ini"]
|
2015-05-06 20:57:19 +03: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 16:05:36 +03:00
|
|
|
"FrameTimeout.h",
|
2020-01-22 13:45:15 +03:00
|
|
|
"ImageBlocker.h",
|
2015-05-20 20:21:09 +03:00
|
|
|
"ImageCacheKey.h",
|
2015-05-06 20:57:19 +03:00
|
|
|
"ImageLogging.h",
|
2017-03-22 16:05:36 +03:00
|
|
|
"ImageMetadata.h",
|
2015-05-15 06:52:05 +03:00
|
|
|
"ImageOps.h",
|
|
|
|
"ImageRegion.h",
|
2017-12-11 18:37:59 +03:00
|
|
|
"ImgDrawResult.h",
|
2015-05-15 06:52:05 +03:00
|
|
|
"imgLoader.h",
|
|
|
|
"imgRequest.h",
|
|
|
|
"imgRequestProxy.h",
|
|
|
|
"IProgressObserver.h",
|
|
|
|
"Orientation.h",
|
2016-08-09 01:54:10 +03:00
|
|
|
"SurfaceCacheUtils.h",
|
2015-05-06 20:57:19 +03:00
|
|
|
]
|
2015-05-15 06:52:05 +03:00
|
|
|
|
2018-09-25 16:13:51 +03:00
|
|
|
EXPORTS.mozilla.image += [
|
2019-01-09 00:30:45 +03:00
|
|
|
"encoders/bmp/nsBMPEncoder.h",
|
2019-01-09 00:30:46 +03:00
|
|
|
"encoders/ico/nsICOEncoder.h",
|
2018-12-17 19:47:09 +03:00
|
|
|
"encoders/jpeg/nsJPEGEncoder.h",
|
2019-01-09 00:30:45 +03:00
|
|
|
"encoders/png/nsPNGEncoder.h",
|
2019-01-09 00:30:46 +03:00
|
|
|
"ICOFileHeaders.h",
|
2018-09-25 16:13:51 +03:00
|
|
|
"ImageMemoryReporter.h",
|
2021-05-05 12:41:23 +03:00
|
|
|
"Resolution.h",
|
2021-11-27 14:47:36 +03:00
|
|
|
"WebRenderImageProvider.h",
|
2018-09-25 16:13:51 +03:00
|
|
|
]
|
|
|
|
|
2015-05-15 06:52:05 +03:00
|
|
|
UNIFIED_SOURCES += [
|
2018-02-28 21:34:52 +03:00
|
|
|
"AnimationFrameBuffer.cpp",
|
2016-08-18 10:01:10 +03:00
|
|
|
"AnimationSurfaceProvider.cpp",
|
2021-11-27 14:47:38 +03:00
|
|
|
"BlobSurfaceProvider.cpp",
|
2015-05-15 06:52:05 +03:00
|
|
|
"ClippedImage.cpp",
|
2016-08-02 01:18:54 +03:00
|
|
|
"DecodedSurfaceProvider.cpp",
|
2015-05-15 06:52:05 +03:00
|
|
|
"Decoder.cpp",
|
2015-07-23 08:39:48 +03:00
|
|
|
"DecoderFactory.cpp",
|
2015-05-15 06:52:05 +03:00
|
|
|
"DynamicImage.cpp",
|
|
|
|
"FrameAnimator.cpp",
|
|
|
|
"FrozenImage.cpp",
|
2016-06-29 23:43:19 +03:00
|
|
|
"IDecodingTask.cpp",
|
2015-05-15 06:52:05 +03:00
|
|
|
"Image.cpp",
|
2020-01-22 13:45:15 +03:00
|
|
|
"ImageBlocker.cpp",
|
2015-05-20 20:21:09 +03:00
|
|
|
"ImageCacheKey.cpp",
|
2015-05-15 06:52:05 +03:00
|
|
|
"ImageFactory.cpp",
|
2018-09-25 16:13:51 +03:00
|
|
|
"ImageMemoryReporter.cpp",
|
2015-05-15 06:52:05 +03:00
|
|
|
"ImageOps.cpp",
|
|
|
|
"ImageWrapper.cpp",
|
|
|
|
"imgFrame.cpp",
|
2017-03-21 21:09:13 +03:00
|
|
|
"imgLoader.cpp",
|
2017-03-21 21:09:14 +03:00
|
|
|
"imgRequest.cpp",
|
2017-03-21 21:09:15 +03:00
|
|
|
"imgRequestProxy.cpp",
|
2015-05-15 06:52:05 +03:00
|
|
|
"imgTools.cpp",
|
|
|
|
"MultipartImage.cpp",
|
|
|
|
"OrientedImage.cpp",
|
2017-03-21 21:09:16 +03:00
|
|
|
"ProgressTracker.cpp",
|
2017-03-21 21:09:17 +03:00
|
|
|
"RasterImage.cpp",
|
2015-05-15 06:52:05 +03:00
|
|
|
"ScriptedNotificationObserver.cpp",
|
|
|
|
"ShutdownTracker.cpp",
|
|
|
|
"SourceBuffer.cpp",
|
|
|
|
"SurfaceCache.cpp",
|
2016-08-09 01:54:10 +03:00
|
|
|
"SurfaceCacheUtils.cpp",
|
2016-02-26 03:21:29 +03:00
|
|
|
"SurfacePipe.cpp",
|
2015-05-15 06:52:05 +03:00
|
|
|
"SVGDocumentWrapper.cpp",
|
|
|
|
"VectorImage.cpp",
|
|
|
|
]
|
2021-07-30 02:29:43 +03:00
|
|
|
|
|
|
|
UNIFIED_SOURCES += ["Downscaler.cpp"]
|
2015-05-15 06:52:05 +03:00
|
|
|
|
2019-04-23 01:30:40 +03:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
|
|
|
|
SOURCES += ["DecodePool.cpp"]
|
|
|
|
else:
|
|
|
|
UNIFIED_SOURCES += ["DecodePool.cpp"]
|
|
|
|
|
2015-05-15 06:52:05 +03:00
|
|
|
include("/ipc/chromium/chromium-config.mozbuild")
|
|
|
|
|
|
|
|
FINAL_LIBRARY = "xul"
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
# Because SVGDocumentWrapper.cpp includes "mozilla/dom/SVGSVGElement.h"
|
|
|
|
"/dom/base",
|
|
|
|
"/dom/svg",
|
2021-07-30 02:38:31 +03:00
|
|
|
# Because imgFrame.cpp includes "cairo.h"
|
|
|
|
"/gfx/cairo/cairo/src",
|
2015-05-15 06:52:05 +03:00
|
|
|
# We need to instantiate the decoders
|
|
|
|
"/image/decoders",
|
|
|
|
# For URI-related functionality
|
|
|
|
"/netwerk/base",
|
2021-03-30 03:52:30 +03:00
|
|
|
# For nsHttpChannel.h
|
|
|
|
"/netwerk/protocol/http",
|
2015-05-15 06:52:05 +03:00
|
|
|
# DecodePool uses thread-related facilities.
|
|
|
|
"/xpcom/threads",
|
|
|
|
]
|
|
|
|
|
2015-07-30 19:05:22 +03:00
|
|
|
LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
|
|
|
|
2018-05-24 22:11:46 +03:00
|
|
|
# Add libFuzzer configuration directives
|
|
|
|
include("/tools/fuzzing/libfuzzer-config.mozbuild")
|