2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:19 +00: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/.
|
|
|
|
|
2014-07-28 23:55:55 +00:00
|
|
|
TEST_DIRS += ['compiledtest']
|
2014-07-25 21:15:35 +00:00
|
|
|
|
2015-12-17 03:11:45 +00:00
|
|
|
# Number changes to this file to avoid bug 1081323 (clobber after changing a manifest):
|
2016-04-06 20:47:25 +00:00
|
|
|
# 12
|
2015-12-17 03:11:45 +00:00
|
|
|
|
2015-02-10 16:47:10 +00:00
|
|
|
MOCHITEST_MANIFESTS += [
|
2016-05-05 14:22:33 +00:00
|
|
|
'test/crash/mochitest.ini',
|
2015-02-10 16:47:10 +00:00
|
|
|
'test/crossorigin/mochitest.ini',
|
|
|
|
'test/mochitest.ini',
|
2016-04-27 03:55:42 +00:00
|
|
|
'test/webgl-conf/generated-mochitest.ini',
|
|
|
|
'test/webgl-mochitest/mochitest.ini',
|
2015-02-10 16:47:10 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['test/chrome/chrome.ini']
|
|
|
|
|
2014-07-25 21:15:35 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'nsICanvasRenderingContextInternal.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.ipc += [
|
|
|
|
'DocumentRendererChild.h',
|
|
|
|
'DocumentRendererParent.h',
|
|
|
|
]
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS.mozilla.dom += [
|
2013-04-26 14:55:37 +00:00
|
|
|
'CanvasGradient.h',
|
2015-03-03 15:57:51 +00:00
|
|
|
'CanvasPath.h',
|
2013-04-19 08:49:22 +00:00
|
|
|
'CanvasPattern.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'CanvasRenderingContext2D.h',
|
2015-10-12 03:21:03 +00:00
|
|
|
'CanvasRenderingContextHelper.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'CanvasUtils.h',
|
2015-07-30 18:47:00 +00:00
|
|
|
'ImageBitmap.h',
|
2015-12-18 06:52:17 +00:00
|
|
|
'ImageBitmapRenderingContext.h',
|
2015-07-30 18:47:00 +00:00
|
|
|
'ImageBitmapSource.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'ImageData.h',
|
2015-10-12 03:21:03 +00:00
|
|
|
'OffscreenCanvas.h',
|
2013-04-19 08:49:21 +00:00
|
|
|
'TextMetrics.h',
|
2015-06-01 06:49:47 +00:00
|
|
|
'WebGLVertexArrayObject.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
2014-08-12 16:04:36 +00:00
|
|
|
# Canvas 2D and common sources
|
2013-11-18 13:08:24 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'CanvasImageCache.cpp',
|
|
|
|
'CanvasRenderingContext2D.cpp',
|
2015-10-12 03:21:03 +00:00
|
|
|
'CanvasRenderingContextHelper.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'CanvasUtils.cpp',
|
|
|
|
'DocumentRendererChild.cpp',
|
|
|
|
'DocumentRendererParent.cpp',
|
2015-07-30 18:47:00 +00:00
|
|
|
'ImageBitmap.cpp',
|
2015-12-18 06:52:17 +00:00
|
|
|
'ImageBitmapRenderingContext.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'ImageData.cpp',
|
2015-10-12 03:21:03 +00:00
|
|
|
'OffscreenCanvas.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2014-08-12 16:04:36 +00:00
|
|
|
# WebGL Sources
|
|
|
|
UNIFIED_SOURCES += [
|
2015-11-25 04:15:29 +00:00
|
|
|
'TexUnpackBlob.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGL1Context.cpp',
|
2014-11-26 02:00:06 +00:00
|
|
|
'WebGL1ContextBuffers.cpp',
|
2014-06-24 00:56:21 +00:00
|
|
|
'WebGL1ContextUniforms.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGL2Context.cpp',
|
2014-09-17 22:08:41 +00:00
|
|
|
'WebGL2ContextBuffers.cpp',
|
|
|
|
'WebGL2ContextDraw.cpp',
|
|
|
|
'WebGL2ContextFramebuffers.cpp',
|
|
|
|
'WebGL2ContextMRTs.cpp',
|
|
|
|
'WebGL2ContextPrograms.cpp',
|
|
|
|
'WebGL2ContextQueries.cpp',
|
2015-07-03 01:54:07 +00:00
|
|
|
'WebGL2ContextRenderbuffers.cpp',
|
2014-09-17 22:08:41 +00:00
|
|
|
'WebGL2ContextSamplers.cpp',
|
2015-06-05 03:26:34 +00:00
|
|
|
'WebGL2ContextState.cpp',
|
2014-09-17 22:08:41 +00:00
|
|
|
'WebGL2ContextSync.cpp',
|
|
|
|
'WebGL2ContextTextures.cpp',
|
|
|
|
'WebGL2ContextTransformFeedback.cpp',
|
|
|
|
'WebGL2ContextUniforms.cpp',
|
|
|
|
'WebGL2ContextVAOs.cpp',
|
2015-07-20 03:51:59 +00:00
|
|
|
'WebGL2ContextVertices.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGLActiveInfo.cpp',
|
|
|
|
'WebGLBuffer.cpp',
|
|
|
|
'WebGLContext.cpp',
|
|
|
|
'WebGLContextBuffers.cpp',
|
|
|
|
'WebGLContextDraw.cpp',
|
|
|
|
'WebGLContextExtensions.cpp',
|
|
|
|
'WebGLContextFramebufferOperations.cpp',
|
|
|
|
'WebGLContextGL.cpp',
|
2014-08-22 16:55:00 +00:00
|
|
|
'WebGLContextLossHandler.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGLContextState.cpp',
|
2015-08-03 21:34:46 +00:00
|
|
|
'WebGLContextTextures.cpp',
|
2014-10-26 23:40:37 +00:00
|
|
|
'WebGLContextUnchecked.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGLContextUtils.cpp',
|
|
|
|
'WebGLContextValidate.cpp',
|
|
|
|
'WebGLContextVertexArray.cpp',
|
|
|
|
'WebGLContextVertices.cpp',
|
|
|
|
'WebGLElementArrayCache.cpp',
|
|
|
|
'WebGLExtensionBase.cpp',
|
|
|
|
'WebGLExtensionBlendMinMax.cpp',
|
|
|
|
'WebGLExtensionColorBufferFloat.cpp',
|
|
|
|
'WebGLExtensionColorBufferHalfFloat.cpp',
|
|
|
|
'WebGLExtensionCompressedTextureATC.cpp',
|
2016-01-08 02:12:22 +00:00
|
|
|
'WebGLExtensionCompressedTextureES3.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGLExtensionCompressedTextureETC1.cpp',
|
|
|
|
'WebGLExtensionCompressedTexturePVRTC.cpp',
|
|
|
|
'WebGLExtensionCompressedTextureS3TC.cpp',
|
|
|
|
'WebGLExtensionDebugRendererInfo.cpp',
|
|
|
|
'WebGLExtensionDebugShaders.cpp',
|
|
|
|
'WebGLExtensionDepthTexture.cpp',
|
2015-05-27 11:12:00 +00:00
|
|
|
'WebGLExtensionDisjointTimerQuery.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGLExtensionDrawBuffers.cpp',
|
|
|
|
'WebGLExtensionElementIndexUint.cpp',
|
2016-05-04 23:39:02 +00:00
|
|
|
'WebGLExtensionEXTColorBufferFloat.cpp',
|
2014-08-12 16:04:36 +00: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-10 23:34:45 +00:00
|
|
|
'WebGLFormats.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGLFramebuffer.cpp',
|
|
|
|
'WebGLFramebufferAttachable.cpp',
|
2015-07-15 00:37:28 +00:00
|
|
|
'WebGLMemoryTracker.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGLObjectModel.cpp',
|
|
|
|
'WebGLProgram.cpp',
|
|
|
|
'WebGLQuery.cpp',
|
|
|
|
'WebGLRenderbuffer.cpp',
|
2014-09-17 22:08:41 +00:00
|
|
|
'WebGLSampler.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGLShader.cpp',
|
|
|
|
'WebGLShaderPrecisionFormat.cpp',
|
2015-01-15 23:40:39 +00:00
|
|
|
'WebGLShaderValidator.cpp',
|
2014-09-17 22:08:41 +00:00
|
|
|
'WebGLSync.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGLTexelConversions.cpp',
|
|
|
|
'WebGLTexture.cpp',
|
2015-08-03 21:34:46 +00:00
|
|
|
'WebGLTextureUpload.cpp',
|
2015-05-27 11:12:00 +00:00
|
|
|
'WebGLTimerQuery.cpp',
|
2014-09-17 22:08:41 +00:00
|
|
|
'WebGLTransformFeedback.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGLUniformLocation.cpp',
|
2015-01-15 23:40:39 +00:00
|
|
|
'WebGLValidateStrings.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
'WebGLVertexArray.cpp',
|
|
|
|
'WebGLVertexArrayFake.cpp',
|
|
|
|
'WebGLVertexArrayGL.cpp',
|
2015-06-01 06:49:47 +00:00
|
|
|
'WebGLVertexArrayObject.cpp',
|
2014-08-12 16:04:36 +00:00
|
|
|
]
|
2015-07-15 00:37:28 +00:00
|
|
|
|
2016-01-14 09:34:56 +00:00
|
|
|
SOURCES += [
|
|
|
|
'MurmurHash3.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Suppress warnings from third-party code.
|
|
|
|
if CONFIG['CLANG_CXX']:
|
|
|
|
SOURCES['MurmurHash3.cpp'].flags += ['-Wno-implicit-fallthrough']
|
|
|
|
|
2014-08-12 16:04:36 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/js/xpconnect/wrappers',
|
|
|
|
]
|
2013-08-22 06:55:59 +00:00
|
|
|
|
2013-10-02 17:17:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-11 08:04:06 +00:00
|
|
|
LOCAL_INCLUDES += [
|
2015-07-30 18:47:00 +00:00
|
|
|
'../workers',
|
2013-11-11 08:04:06 +00:00
|
|
|
'/dom/base',
|
2014-10-25 17:24:55 +00:00
|
|
|
'/dom/html',
|
2014-10-25 17:21:12 +00:00
|
|
|
'/dom/svg',
|
2015-10-12 03:21:03 +00:00
|
|
|
'/dom/workers',
|
2014-10-25 17:21:03 +00:00
|
|
|
'/dom/xul',
|
2014-10-12 07:58:00 +00:00
|
|
|
'/gfx/gl',
|
2015-05-15 03:52:05 +00:00
|
|
|
'/image',
|
2013-11-11 08:04:06 +00:00
|
|
|
'/js/xpconnect/src',
|
|
|
|
'/layout/generic',
|
|
|
|
'/layout/style',
|
2013-12-04 01:06:16 +00:00
|
|
|
'/layout/xul',
|
2015-07-30 18:47:00 +00:00
|
|
|
'/media/libyuv/include',
|
2013-11-11 08:04:06 +00:00
|
|
|
]
|
2014-07-24 15:55:33 +00:00
|
|
|
|
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
2015-07-30 16:05:22 +00:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
|
2016-03-24 00:19:20 +00:00
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
# This is intended as a temporary workaround to unblock compilation
|
|
|
|
# on VS2015 in warnings as errors mode.
|
|
|
|
CXXFLAGS += ['-wd4312']
|