2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:19 +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/.
|
|
|
|
|
2017-02-02 14:33:47 +03:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Canvas: 2D')
|
|
|
|
|
|
|
|
with Files('TexUnpackBlob.cpp'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Canvas: WebGL')
|
|
|
|
|
|
|
|
with Files('WebGL*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Canvas: WebGL')
|
|
|
|
|
|
|
|
with Files('test/webgl-conf/**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Canvas: WebGL')
|
|
|
|
|
|
|
|
with Files('test/webgl-mochitest/**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Canvas: WebGL')
|
|
|
|
|
|
|
|
with Files('test/reftest/webgl*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Canvas: WebGL')
|
|
|
|
|
|
|
|
with Files('test/chrome/*webgl*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Canvas: WebGL')
|
|
|
|
|
|
|
|
with Files('test/crossorigin/*webgl*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Canvas: WebGL')
|
|
|
|
|
2016-05-30 10:48:02 +03:00
|
|
|
TEST_DIRS += [
|
|
|
|
'gtest'
|
|
|
|
]
|
2014-07-26 01:15:35 +04:00
|
|
|
|
2016-06-07 00:14:06 +03:00
|
|
|
# Change the following line(s) to avoid bug 1081323 (clobber after changing a manifest):
|
2016-12-07 01:25:04 +03:00
|
|
|
# * Adjust failure errata for webgl-conf.
|
2015-12-17 06:11:45 +03:00
|
|
|
|
2015-02-10 19:47:10 +03:00
|
|
|
MOCHITEST_MANIFESTS += [
|
2016-05-05 17:22:33 +03:00
|
|
|
'test/crash/mochitest.ini',
|
2015-02-10 19:47:10 +03:00
|
|
|
'test/crossorigin/mochitest.ini',
|
|
|
|
'test/mochitest.ini',
|
2016-04-27 06:55:42 +03:00
|
|
|
'test/webgl-conf/generated-mochitest.ini',
|
|
|
|
'test/webgl-mochitest/mochitest.ini',
|
2015-02-10 19:47:10 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['test/chrome/chrome.ini']
|
|
|
|
|
2014-07-26 01:15:35 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'nsICanvasRenderingContextInternal.h',
|
|
|
|
]
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.mozilla.dom += [
|
2017-02-03 00:43:00 +03:00
|
|
|
'BasicRenderingContext2D.h',
|
2013-04-26 18:55:37 +04:00
|
|
|
'CanvasGradient.h',
|
2015-03-03 18:57:51 +03:00
|
|
|
'CanvasPath.h',
|
2013-04-19 12:49:22 +04:00
|
|
|
'CanvasPattern.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'CanvasRenderingContext2D.h',
|
2015-10-12 06:21:03 +03:00
|
|
|
'CanvasRenderingContextHelper.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'CanvasUtils.h',
|
2015-07-30 21:47:00 +03:00
|
|
|
'ImageBitmap.h',
|
2015-12-18 09:52:17 +03:00
|
|
|
'ImageBitmapRenderingContext.h',
|
2015-07-30 21:47:00 +03:00
|
|
|
'ImageBitmapSource.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'ImageData.h',
|
2017-07-23 23:59:42 +03:00
|
|
|
'ImageUtils.h',
|
2015-10-12 06:21:03 +03:00
|
|
|
'OffscreenCanvas.h',
|
2013-04-19 12:49:21 +04:00
|
|
|
'TextMetrics.h',
|
2015-06-01 09:49:47 +03:00
|
|
|
'WebGLVertexArrayObject.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2014-08-12 20:04:36 +04:00
|
|
|
# Canvas 2D and common sources
|
2013-11-18 17:08:24 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'CanvasImageCache.cpp',
|
|
|
|
'CanvasRenderingContext2D.cpp',
|
2015-10-12 06:21:03 +03:00
|
|
|
'CanvasRenderingContextHelper.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'CanvasUtils.cpp',
|
2015-07-30 21:47:00 +03:00
|
|
|
'ImageBitmap.cpp',
|
2016-05-30 10:48:02 +03:00
|
|
|
'ImageBitmapColorUtils.cpp',
|
2015-12-18 09:52:17 +03:00
|
|
|
'ImageBitmapRenderingContext.cpp',
|
2016-05-30 10:48:02 +03:00
|
|
|
'ImageBitmapUtils.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'ImageData.cpp',
|
2015-10-12 06:21:03 +03:00
|
|
|
'OffscreenCanvas.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2016-03-21 09:33:10 +03:00
|
|
|
SOURCES += [
|
|
|
|
'ImageUtils.cpp',
|
|
|
|
]
|
|
|
|
|
2014-08-12 20:04:36 +04:00
|
|
|
# WebGL Sources
|
|
|
|
UNIFIED_SOURCES += [
|
2017-10-30 23:56:18 +03:00
|
|
|
'CacheMap.cpp',
|
2015-11-25 07:15:29 +03:00
|
|
|
'TexUnpackBlob.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGL1Context.cpp',
|
|
|
|
'WebGL2Context.cpp',
|
2014-09-18 02:08:41 +04:00
|
|
|
'WebGL2ContextBuffers.cpp',
|
|
|
|
'WebGL2ContextFramebuffers.cpp',
|
|
|
|
'WebGL2ContextMRTs.cpp',
|
|
|
|
'WebGL2ContextPrograms.cpp',
|
|
|
|
'WebGL2ContextQueries.cpp',
|
2015-07-03 04:54:07 +03:00
|
|
|
'WebGL2ContextRenderbuffers.cpp',
|
2014-09-18 02:08:41 +04:00
|
|
|
'WebGL2ContextSamplers.cpp',
|
2015-06-05 06:26:34 +03:00
|
|
|
'WebGL2ContextState.cpp',
|
2014-09-18 02:08:41 +04:00
|
|
|
'WebGL2ContextSync.cpp',
|
|
|
|
'WebGL2ContextTextures.cpp',
|
|
|
|
'WebGL2ContextTransformFeedback.cpp',
|
|
|
|
'WebGL2ContextUniforms.cpp',
|
|
|
|
'WebGL2ContextVAOs.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLActiveInfo.cpp',
|
|
|
|
'WebGLBuffer.cpp',
|
|
|
|
'WebGLContext.cpp',
|
|
|
|
'WebGLContextBuffers.cpp',
|
|
|
|
'WebGLContextDraw.cpp',
|
|
|
|
'WebGLContextExtensions.cpp',
|
|
|
|
'WebGLContextFramebufferOperations.cpp',
|
|
|
|
'WebGLContextGL.cpp',
|
2014-08-22 20:55:00 +04:00
|
|
|
'WebGLContextLossHandler.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLContextState.cpp',
|
2015-08-04 00:34:46 +03:00
|
|
|
'WebGLContextTextures.cpp',
|
2014-10-27 02:40:37 +03:00
|
|
|
'WebGLContextUnchecked.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLContextUtils.cpp',
|
|
|
|
'WebGLContextValidate.cpp',
|
|
|
|
'WebGLContextVertexArray.cpp',
|
|
|
|
'WebGLContextVertices.cpp',
|
|
|
|
'WebGLExtensionBase.cpp',
|
|
|
|
'WebGLExtensionBlendMinMax.cpp',
|
|
|
|
'WebGLExtensionColorBufferFloat.cpp',
|
|
|
|
'WebGLExtensionColorBufferHalfFloat.cpp',
|
2016-11-23 05:59:35 +03:00
|
|
|
'WebGLExtensionCompressedTextureASTC.cpp',
|
2018-09-28 02:37:40 +03:00
|
|
|
'WebGLExtensionCompressedTextureBPTC.cpp',
|
2016-01-08 05:12:22 +03:00
|
|
|
'WebGLExtensionCompressedTextureES3.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLExtensionCompressedTextureETC1.cpp',
|
|
|
|
'WebGLExtensionCompressedTexturePVRTC.cpp',
|
2018-09-28 02:37:40 +03:00
|
|
|
'WebGLExtensionCompressedTextureRGTC.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLExtensionCompressedTextureS3TC.cpp',
|
2017-05-30 18:21:33 +03:00
|
|
|
'WebGLExtensionCompressedTextureS3TC_SRGB.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLExtensionDebugRendererInfo.cpp',
|
|
|
|
'WebGLExtensionDebugShaders.cpp',
|
|
|
|
'WebGLExtensionDepthTexture.cpp',
|
2015-05-27 14:12:00 +03:00
|
|
|
'WebGLExtensionDisjointTimerQuery.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLExtensionDrawBuffers.cpp',
|
|
|
|
'WebGLExtensionElementIndexUint.cpp',
|
2016-05-05 02:39:02 +03:00
|
|
|
'WebGLExtensionEXTColorBufferFloat.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLExtensionFragDepth.cpp',
|
|
|
|
'WebGLExtensionInstancedArrays.cpp',
|
|
|
|
'WebGLExtensionLoseContext.cpp',
|
2017-04-11 11:50:59 +03:00
|
|
|
'WebGLExtensionMOZDebug.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLExtensionShaderTextureLod.cpp',
|
|
|
|
'WebGLExtensionSRGB.cpp',
|
|
|
|
'WebGLExtensionStandardDerivatives.cpp',
|
|
|
|
'WebGLExtensionTextureFilterAnisotropic.cpp',
|
|
|
|
'WebGLExtensionTextureFloat.cpp',
|
|
|
|
'WebGLExtensionTextureFloatLinear.cpp',
|
|
|
|
'WebGLExtensionTextureHalfFloat.cpp',
|
|
|
|
'WebGLExtensionTextureHalfFloatLinear.cpp',
|
|
|
|
'WebGLExtensionVertexArray.cpp',
|
2015-07-11 02:34:45 +03:00
|
|
|
'WebGLFormats.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLFramebuffer.cpp',
|
|
|
|
'WebGLFramebufferAttachable.cpp',
|
2015-07-15 03:37:28 +03:00
|
|
|
'WebGLMemoryTracker.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLObjectModel.cpp',
|
|
|
|
'WebGLProgram.cpp',
|
|
|
|
'WebGLQuery.cpp',
|
|
|
|
'WebGLRenderbuffer.cpp',
|
2014-09-18 02:08:41 +04:00
|
|
|
'WebGLSampler.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLShader.cpp',
|
|
|
|
'WebGLShaderPrecisionFormat.cpp',
|
2015-01-16 02:40:39 +03:00
|
|
|
'WebGLShaderValidator.cpp',
|
2014-09-18 02:08:41 +04:00
|
|
|
'WebGLSync.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLTexelConversions.cpp',
|
|
|
|
'WebGLTexture.cpp',
|
2015-08-04 00:34:46 +03:00
|
|
|
'WebGLTextureUpload.cpp',
|
2014-09-18 02:08:41 +04:00
|
|
|
'WebGLTransformFeedback.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLUniformLocation.cpp',
|
2015-01-16 02:40:39 +03:00
|
|
|
'WebGLValidateStrings.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLVertexArray.cpp',
|
|
|
|
'WebGLVertexArrayFake.cpp',
|
|
|
|
'WebGLVertexArrayGL.cpp',
|
2015-06-01 09:49:47 +03:00
|
|
|
'WebGLVertexArrayObject.cpp',
|
2016-09-24 03:28:58 +03:00
|
|
|
'WebGLVertexAttribData.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
]
|
2015-07-15 03:37:28 +03:00
|
|
|
|
2016-01-14 12:34:56 +03:00
|
|
|
SOURCES += [
|
|
|
|
'MurmurHash3.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Suppress warnings from third-party code.
|
2017-12-08 00:10:19 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-01-14 12:34:56 +03:00
|
|
|
SOURCES['MurmurHash3.cpp'].flags += ['-Wno-implicit-fallthrough']
|
|
|
|
|
2014-08-12 20:04:36 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/js/xpconnect/wrappers',
|
|
|
|
]
|
2013-08-22 10:55:59 +04:00
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2018-02-24 02:47:41 +03:00
|
|
|
|
|
|
|
USE_LIBS += [ 'translator' ] # Grab the Angle shader translator.
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-11 12:04:06 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/base',
|
2014-10-25 21:24:55 +04:00
|
|
|
'/dom/html',
|
2014-10-25 21:21:12 +04:00
|
|
|
'/dom/svg',
|
2015-10-12 06:21:03 +03:00
|
|
|
'/dom/workers',
|
2014-10-25 21:21:03 +04:00
|
|
|
'/dom/xul',
|
2018-02-24 02:47:41 +03:00
|
|
|
'/gfx/angle/checkout/include',
|
2014-10-12 11:58:00 +04:00
|
|
|
'/gfx/gl',
|
2015-05-15 06:52:05 +03:00
|
|
|
'/image',
|
2013-11-11 12:04:06 +04:00
|
|
|
'/js/xpconnect/src',
|
|
|
|
'/layout/generic',
|
|
|
|
'/layout/style',
|
2013-12-04 05:06:16 +04:00
|
|
|
'/layout/xul',
|
2017-02-24 22:01:56 +03:00
|
|
|
'/media/libyuv/libyuv/include',
|
2013-11-11 12:04:06 +04:00
|
|
|
]
|
2014-07-24 19:55:33 +04:00
|
|
|
|
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
2015-07-30 19:05:22 +03:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
|
2016-03-24 03:19:20 +03:00
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2018-02-24 02:47:41 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow', '-Wno-missing-braces']
|