Bug 1704628 Part 1: Make selectContextMenuItem use .activateItem() semantics. r=ochameau
[gecko.git] / image / moz.build
blobeffddb03089a53c443a952554adc4e34c7438c41
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", "ImageLib")
17 BROWSER_CHROME_MANIFESTS += ["test/browser/browser.ini"]
19 MOCHITEST_MANIFESTS += ["test/mochitest/mochitest.ini"]
21 MOCHITEST_CHROME_MANIFESTS += ["test/mochitest/chrome.ini"]
23 XPCSHELL_TESTS_MANIFESTS += ["test/unit/xpcshell.ini"]
25 XPIDL_SOURCES += [
26     "imgICache.idl",
27     "imgIContainer.idl",
28     "imgIContainerDebug.idl",
29     "imgIEncoder.idl",
30     "imgILoader.idl",
31     "imgINotificationObserver.idl",
32     "imgIRequest.idl",
33     "imgIScriptedNotificationObserver.idl",
34     "imgITools.idl",
35     "nsIIconURI.idl",
38 XPIDL_MODULE = "imglib2"
40 EXPORTS += [
41     "FrameTimeout.h",
42     "ImageBlocker.h",
43     "ImageCacheKey.h",
44     "ImageLogging.h",
45     "ImageMetadata.h",
46     "ImageOps.h",
47     "ImageRegion.h",
48     "ImgDrawResult.h",
49     "imgLoader.h",
50     "imgRequest.h",
51     "imgRequestProxy.h",
52     "IProgressObserver.h",
53     "Orientation.h",
54     "SurfaceCacheUtils.h",
57 EXPORTS.mozilla.image += [
58     "encoders/bmp/nsBMPEncoder.h",
59     "encoders/ico/nsICOEncoder.h",
60     "encoders/jpeg/nsJPEGEncoder.h",
61     "encoders/png/nsPNGEncoder.h",
62     "ICOFileHeaders.h",
63     "ImageMemoryReporter.h",
66 UNIFIED_SOURCES += [
67     "AnimationFrameBuffer.cpp",
68     "AnimationSurfaceProvider.cpp",
69     "ClippedImage.cpp",
70     "DecodedSurfaceProvider.cpp",
71     "Decoder.cpp",
72     "DecoderFactory.cpp",
73     "DynamicImage.cpp",
74     "FrameAnimator.cpp",
75     "FrozenImage.cpp",
76     "IDecodingTask.cpp",
77     "Image.cpp",
78     "ImageBlocker.cpp",
79     "ImageCacheKey.cpp",
80     "ImageFactory.cpp",
81     "ImageMemoryReporter.cpp",
82     "ImageOps.cpp",
83     "ImageWrapper.cpp",
84     "imgFrame.cpp",
85     "imgLoader.cpp",
86     "imgRequest.cpp",
87     "imgRequestProxy.cpp",
88     "imgTools.cpp",
89     "MultipartImage.cpp",
90     "OrientedImage.cpp",
91     "ProgressTracker.cpp",
92     "RasterImage.cpp",
93     "ScriptedNotificationObserver.cpp",
94     "ShutdownTracker.cpp",
95     "SourceBuffer.cpp",
96     "SurfaceCache.cpp",
97     "SurfaceCacheUtils.cpp",
98     "SurfacePipe.cpp",
99     "SVGDocumentWrapper.cpp",
100     "VectorImage.cpp",
102 if CONFIG["MOZ_ENABLE_SKIA"]:
103     UNIFIED_SOURCES += ["Downscaler.cpp"]
105 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
106     SOURCES += ["DecodePool.cpp"]
107 else:
108     UNIFIED_SOURCES += ["DecodePool.cpp"]
110 include("/ipc/chromium/chromium-config.mozbuild")
112 FINAL_LIBRARY = "xul"
114 LOCAL_INCLUDES += [
115     # Because SVGDocumentWrapper.cpp includes "mozilla/dom/SVGSVGElement.h"
116     "/dom/base",
117     "/dom/svg",
118     # We need to instantiate the decoders
119     "/image/decoders",
120     # For URI-related functionality
121     "/netwerk/base",
122     # For nsHttpChannel.h
123     "/netwerk/protocol/http",
124     # DecodePool uses thread-related facilities.
125     "/xpcom/threads",
128 # Because imgFrame.cpp includes "cairo.h"
129 CXXFLAGS += CONFIG["MOZ_CAIRO_CFLAGS"]
131 LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
133 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
134     CXXFLAGS += ["-Wno-error=shadow"]
136 # Add libFuzzer configuration directives
137 include("/tools/fuzzing/libfuzzer-config.mozbuild")