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/.
8 BUG_COMPONENT = ("Core", "Canvas: 2D")
10 with Files("TexUnpackBlob.cpp"):
11 BUG_COMPONENT = ("Core", "Canvas: WebGL")
14 BUG_COMPONENT = ("Core", "Canvas: WebGL")
16 with Files("test/webgl-conf/**"):
17 BUG_COMPONENT = ("Core", "Canvas: WebGL")
19 with Files("test/webgl-mochitest/**"):
20 BUG_COMPONENT = ("Core", "Canvas: WebGL")
22 with Files("test/reftest/webgl*"):
23 BUG_COMPONENT = ("Core", "Canvas: WebGL")
25 with Files("test/chrome/*webgl*"):
26 BUG_COMPONENT = ("Core", "Canvas: WebGL")
28 with Files("test/crossorigin/*webgl*"):
29 BUG_COMPONENT = ("Core", "Canvas: WebGL")
31 # Change the following line(s) to avoid bug 1081323 (clobber after changing a manifest):
32 # * Adjust failure errata for webgl-conf.
34 MOCHITEST_MANIFESTS += [
35 "test/crash/mochitest.ini",
36 "test/crossorigin/mochitest.ini",
38 "test/webgl-conf/generated-mochitest.ini",
39 "test/webgl-mochitest/mochitest.ini",
42 MOCHITEST_CHROME_MANIFESTS += ["test/chrome/chrome.ini"]
45 "nsICanvasRenderingContextInternal.h",
48 EXPORTS.mozilla.dom += [
49 "BasicRenderingContext2D.h",
53 "CanvasRenderingContext2D.h",
54 "CanvasRenderingContextHelper.h",
56 "GeneratePlaceholderCanvasData.h",
58 "ImageBitmapRenderingContext.h",
59 "ImageBitmapSource.h",
68 "WebGLCommandQueue.h",
74 # XRWebGLLayer.h must be exported for use by the generated WebXRBinding.h
76 # Canvas 2D and common sources
79 "CanvasImageCache.cpp",
81 "CanvasRenderingContext2D.cpp",
82 "CanvasRenderingContextHelper.cpp",
85 "ImageBitmapRenderingContext.cpp",
87 "nsICanvasRenderingContextInternal.cpp",
88 "OffscreenCanvas.cpp",
98 "CacheInvalidator.cpp",
99 "ClientWebGLContext.cpp",
100 "ClientWebGLExtensions.cpp",
101 "HostWebGLContext.cpp",
104 "WebGL2ContextBuffers.cpp",
105 "WebGL2ContextFramebuffers.cpp",
106 "WebGL2ContextMRTs.cpp",
107 "WebGL2ContextQueries.cpp",
108 "WebGL2ContextRenderbuffers.cpp",
109 "WebGL2ContextSamplers.cpp",
110 "WebGL2ContextState.cpp",
111 "WebGL2ContextSync.cpp",
112 "WebGL2ContextTransformFeedback.cpp",
113 "WebGL2ContextUniforms.cpp",
117 "WebGLContextBuffers.cpp",
118 "WebGLContextDraw.cpp",
119 "WebGLContextExtensions.cpp",
120 "WebGLContextFramebufferOperations.cpp",
121 "WebGLContextGL.cpp",
122 "WebGLContextLossHandler.cpp",
123 "WebGLContextState.cpp",
124 "WebGLContextTextures.cpp",
125 "WebGLContextUtils.cpp",
126 "WebGLContextValidate.cpp",
127 "WebGLContextVertexArray.cpp",
128 "WebGLContextVertices.cpp",
129 "WebGLExtensionColorBufferFloat.cpp",
130 "WebGLExtensionColorBufferHalfFloat.cpp",
131 "WebGLExtensionCompressedTextureASTC.cpp",
132 "WebGLExtensionCompressedTextureBPTC.cpp",
133 "WebGLExtensionCompressedTextureES3.cpp",
134 "WebGLExtensionCompressedTextureETC1.cpp",
135 "WebGLExtensionCompressedTexturePVRTC.cpp",
136 "WebGLExtensionCompressedTextureRGTC.cpp",
137 "WebGLExtensionCompressedTextureS3TC.cpp",
138 "WebGLExtensionCompressedTextureS3TC_SRGB.cpp",
139 "WebGLExtensionDepthTexture.cpp",
140 "WebGLExtensionDisjointTimerQuery.cpp",
141 "WebGLExtensionDrawBuffers.cpp",
142 "WebGLExtensionEXTColorBufferFloat.cpp",
143 "WebGLExtensionFragDepth.cpp",
144 "WebGLExtensionInstancedArrays.cpp",
145 "WebGLExtensions.cpp",
146 "WebGLExtensionShaderTextureLod.cpp",
147 "WebGLExtensionSRGB.cpp",
148 "WebGLExtensionTextureFloat.cpp",
149 "WebGLExtensionTextureFloatLinear.cpp",
150 "WebGLExtensionTextureHalfFloat.cpp",
151 "WebGLExtensionTextureHalfFloatLinear.cpp",
153 "WebGLFramebuffer.cpp",
154 "WebGLMemoryTracker.cpp",
158 "WebGLRenderbuffer.cpp",
161 "WebGLShaderValidator.cpp",
163 "WebGLTexelConversions.cpp",
165 "WebGLTextureUpload.cpp",
166 "WebGLTransformFeedback.cpp",
167 "WebGLValidateStrings.cpp",
168 "WebGLVertexArray.cpp",
169 "WebGLVertexArrayFake.cpp",
170 "WebGLVertexArrayGL.cpp",
185 # Suppress warnings from third-party code.
186 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
187 SOURCES["MurmurHash3.cpp"].flags += ["-Wno-implicit-fallthrough"]
190 "/js/xpconnect/wrappers",
193 include("/ipc/chromium/chromium-config.mozbuild")
196 USE_LIBS += ["translator"] # Grab the Angle shader translator.
198 FINAL_LIBRARY = "xul"
205 "/gfx/angle/checkout/include",
212 "/media/libyuv/libyuv/include",
215 CXXFLAGS += CONFIG["MOZ_CAIRO_CFLAGS"]
216 CXXFLAGS += CONFIG["TK_CFLAGS"]
218 LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
220 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
221 CXXFLAGS += ["-Wno-error=shadow"]
223 if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
224 CXXFLAGS += ["-Werror=implicit-int-conversion"]
225 CXXFLAGS += ["-Werror=switch"]
227 if CONFIG["CC_TYPE"] == "gcc":
228 CXXFLAGS += ["-Wno-error=unused-result"] # GCC doesn't ignore (void)MustUse();