Backed out changeset d83939746c70 (bug 1880550) for causing reftests failures bug7856...
[gecko.git] / image / moz.build
blob002507132721f8a70440d443c0b3b5a5272d3207
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"]:
9     DIRS += ["test/gtest"]
11 if CONFIG["FUZZING_INTERFACES"]:
12     DIRS += ["test/fuzzing"]
14 with Files("**"):
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"]
28 XPIDL_SOURCES += [
29     "imgICache.idl",
30     "imgIContainer.idl",
31     "imgIContainerDebug.idl",
32     "imgIEncoder.idl",
33     "imgILoader.idl",
34     "imgINotificationObserver.idl",
35     "imgIRequest.idl",
36     "imgIScriptedNotificationObserver.idl",
37     "imgITools.idl",
38     "nsIIconURI.idl",
41 XPIDL_MODULE = "imglib2"
43 EXPORTS += [
44     "FrameTimeout.h",
45     "ImageBlocker.h",
46     "ImageCacheKey.h",
47     "ImageLogging.h",
48     "ImageMetadata.h",
49     "ImageOps.h",
50     "ImageRegion.h",
51     "ImgDrawResult.h",
52     "imgLoader.h",
53     "imgRequest.h",
54     "imgRequestProxy.h",
55     "IProgressObserver.h",
56     "Orientation.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",
65     "ICOFileHeaders.h",
66     "ImageMemoryReporter.h",
67     "Resolution.h",
68     "WebRenderImageProvider.h",
71 UNIFIED_SOURCES += [
72     "AnimationFrameBuffer.cpp",
73     "AnimationSurfaceProvider.cpp",
74     "BlobSurfaceProvider.cpp",
75     "ClippedImage.cpp",
76     "DecodedSurfaceProvider.cpp",
77     "Decoder.cpp",
78     "DecoderFactory.cpp",
79     "DynamicImage.cpp",
80     "FrameAnimator.cpp",
81     "FrozenImage.cpp",
82     "IDecodingTask.cpp",
83     "Image.cpp",
84     "ImageBlocker.cpp",
85     "ImageCacheKey.cpp",
86     "ImageFactory.cpp",
87     "ImageMemoryReporter.cpp",
88     "ImageOps.cpp",
89     "ImageWrapper.cpp",
90     "imgFrame.cpp",
91     "imgLoader.cpp",
92     "imgRequest.cpp",
93     "imgRequestProxy.cpp",
94     "imgTools.cpp",
95     "MultipartImage.cpp",
96     "OrientedImage.cpp",
97     "ProgressTracker.cpp",
98     "RasterImage.cpp",
99     "ScriptedNotificationObserver.cpp",
100     "ShutdownTracker.cpp",
101     "SourceBuffer.cpp",
102     "SurfaceCache.cpp",
103     "SurfaceCacheUtils.cpp",
104     "SurfacePipe.cpp",
105     "SVGDocumentWrapper.cpp",
106     "VectorImage.cpp",
109 UNIFIED_SOURCES += ["Downscaler.cpp"]
111 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
112     SOURCES += ["DecodePool.cpp"]
113 else:
114     UNIFIED_SOURCES += ["DecodePool.cpp"]
116 include("/ipc/chromium/chromium-config.mozbuild")
118 FINAL_LIBRARY = "xul"
120 LOCAL_INCLUDES += [
121     # Because SVGDocumentWrapper.cpp includes "mozilla/dom/SVGSVGElement.h"
122     "/dom/base",
123     "/dom/svg",
124     # Because imgFrame.cpp includes "cairo.h"
125     "/gfx/cairo/cairo/src",
126     # We need to instantiate the decoders
127     "/image/decoders",
128     # For URI-related functionality
129     "/netwerk/base",
130     # For nsHttpChannel.h
131     "/netwerk/protocol/http",
132     # DecodePool uses thread-related facilities.
133     "/xpcom/threads",
136 LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
138 # Add libFuzzer configuration directives
139 include("/tools/fuzzing/libfuzzer-config.mozbuild")