1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 DIRS += ["build", "decoders", "encoders"]
8 if CONFIG["ENABLE_TESTS"]:
11 if CONFIG["FUZZING_INTERFACES"]:
12 DIRS += ["test/fuzzing"]
15 BUG_COMPONENT = ("Core", "Graphics: ImageLib")
17 BROWSER_CHROME_MANIFESTS += [
18 "test/browser/browser.toml",
19 "test/browser/browser_sandbox_headless.toml",
22 MOCHITEST_MANIFESTS += ["test/mochitest/mochitest.toml"]
24 MOCHITEST_CHROME_MANIFESTS += ["test/mochitest/chrome.toml"]
26 XPCSHELL_TESTS_MANIFESTS += ["test/unit/xpcshell.toml"]
31 "imgIContainerDebug.idl",
34 "imgINotificationObserver.idl",
36 "imgIScriptedNotificationObserver.idl",
41 XPIDL_MODULE = "imglib2"
55 "IProgressObserver.h",
57 "SurfaceCacheUtils.h",
60 EXPORTS.mozilla.image += [
61 "encoders/bmp/nsBMPEncoder.h",
62 "encoders/ico/nsICOEncoder.h",
63 "encoders/jpeg/nsJPEGEncoder.h",
64 "encoders/png/nsPNGEncoder.h",
66 "ImageMemoryReporter.h",
68 "WebRenderImageProvider.h",
72 "AnimationFrameBuffer.cpp",
73 "AnimationSurfaceProvider.cpp",
74 "BlobSurfaceProvider.cpp",
76 "DecodedSurfaceProvider.cpp",
87 "ImageMemoryReporter.cpp",
93 "imgRequestProxy.cpp",
97 "ProgressTracker.cpp",
99 "ScriptedNotificationObserver.cpp",
100 "ShutdownTracker.cpp",
103 "SurfaceCacheUtils.cpp",
105 "SVGDocumentWrapper.cpp",
109 UNIFIED_SOURCES += ["Downscaler.cpp"]
111 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
112 SOURCES += ["DecodePool.cpp"]
114 UNIFIED_SOURCES += ["DecodePool.cpp"]
116 include("/ipc/chromium/chromium-config.mozbuild")
118 FINAL_LIBRARY = "xul"
121 # Because SVGDocumentWrapper.cpp includes "mozilla/dom/SVGSVGElement.h"
124 # Because imgFrame.cpp includes "cairo.h"
125 "/gfx/cairo/cairo/src",
126 # We need to instantiate the decoders
128 # For URI-related functionality
130 # For nsHttpChannel.h
131 "/netwerk/protocol/http",
132 # DecodePool uses thread-related facilities.
136 LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
138 # Add libFuzzer configuration directives
139 include("/tools/fuzzing/libfuzzer-config.mozbuild")