2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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/.
|
|
|
|
|
2016-05-30 10:48:02 +03:00
|
|
|
TEST_DIRS += [
|
|
|
|
'compiledtest',
|
|
|
|
'gtest'
|
|
|
|
]
|
2014-07-26 01:15:35 +04:00
|
|
|
|
2016-05-21 02:56:21 +03:00
|
|
|
# Change the following line to avoid bug 1081323 (clobber after changing a manifest):
|
|
|
|
# Add test for webglcontextcreationerror.
|
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',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.ipc += [
|
|
|
|
'DocumentRendererChild.h',
|
|
|
|
'DocumentRendererParent.h',
|
|
|
|
]
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.mozilla.dom += [
|
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',
|
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',
|
|
|
|
'DocumentRendererChild.cpp',
|
|
|
|
'DocumentRendererParent.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 += [
|
2015-11-25 07:15:29 +03:00
|
|
|
'TexUnpackBlob.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGL1Context.cpp',
|
2014-11-26 05:00:06 +03:00
|
|
|
'WebGL1ContextBuffers.cpp',
|
2014-06-24 04:56:21 +04:00
|
|
|
'WebGL1ContextUniforms.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGL2Context.cpp',
|
2014-09-18 02:08:41 +04:00
|
|
|
'WebGL2ContextBuffers.cpp',
|
|
|
|
'WebGL2ContextDraw.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',
|
2015-07-20 06:51:59 +03:00
|
|
|
'WebGL2ContextVertices.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',
|
|
|
|
'WebGLElementArrayCache.cpp',
|
|
|
|
'WebGLExtensionBase.cpp',
|
|
|
|
'WebGLExtensionBlendMinMax.cpp',
|
|
|
|
'WebGLExtensionColorBufferFloat.cpp',
|
|
|
|
'WebGLExtensionColorBufferHalfFloat.cpp',
|
|
|
|
'WebGLExtensionCompressedTextureATC.cpp',
|
2016-01-08 05:12:22 +03:00
|
|
|
'WebGLExtensionCompressedTextureES3.cpp',
|
2014-08-12 20:04:36 +04:00
|
|
|
'WebGLExtensionCompressedTextureETC1.cpp',
|
|
|
|
'WebGLExtensionCompressedTexturePVRTC.cpp',
|
|
|
|
'WebGLExtensionCompressedTextureS3TC.cpp',
|
|
|
|
'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',
|
|
|
|
'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',
|
2015-05-27 14:12:00 +03:00
|
|
|
'WebGLTimerQuery.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',
|
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.
|
|
|
|
if CONFIG['CLANG_CXX']:
|
|
|
|
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')
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-11 12:04:06 +04:00
|
|
|
LOCAL_INCLUDES += [
|
2015-07-30 21:47:00 +03:00
|
|
|
'../workers',
|
2013-11-11 12:04:06 +04:00
|
|
|
'/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',
|
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',
|
2015-07-30 21:47:00 +03:00
|
|
|
'/media/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
|
|
|
|
2016-05-11 10:00:01 +03:00
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|
|
|
|
|
2016-03-24 03:19:20 +03:00
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
# This is intended as a temporary workaround to unblock compilation
|
|
|
|
# on VS2015 in warnings as errors mode.
|
|
|
|
CXXFLAGS += ['-wd4312']
|