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:21 +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/.
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'basic/BasicCanvasLayer.h',
|
|
|
|
'basic/BasicImplData.h',
|
|
|
|
'basic/BasicLayers.h',
|
|
|
|
'basic/BasicLayersImpl.h',
|
|
|
|
'basic/BasicThebesLayer.h',
|
|
|
|
'client/ClientCanvasLayer.h',
|
|
|
|
'client/ClientContainerLayer.h',
|
|
|
|
'client/ClientLayerManager.h',
|
|
|
|
'client/ClientThebesLayer.h',
|
|
|
|
'client/ClientTiledThebesLayer.h',
|
|
|
|
'composite/CompositableHost.h',
|
|
|
|
'composite/ImageHost.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'CopyableCanvasLayer.h',
|
|
|
|
'D3D9SurfaceImage.h',
|
|
|
|
'FrameMetrics.h',
|
|
|
|
'GrallocImages.h',
|
|
|
|
'ImageContainer.h',
|
|
|
|
'ImageLayers.h',
|
|
|
|
'ImageTypes.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'ipc/CompositorChild.h',
|
|
|
|
'ipc/CompositorParent.h',
|
|
|
|
'ipc/ShadowLayersManager.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'Layers.h',
|
|
|
|
'LayersLogging.h',
|
|
|
|
'LayerSorter.h',
|
|
|
|
'LayerTreeInvalidation.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'opengl/Composer2D.h',
|
2013-11-27 02:15:17 +04:00
|
|
|
'opengl/OGLShaderProgram.h',
|
|
|
|
'opengl/OGLShaders.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'opengl/TexturePoolOGL.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'ReadbackLayer.h',
|
|
|
|
'SharedTextureImage.h',
|
2013-09-11 02:21:04 +04:00
|
|
|
'TiledLayerBuffer.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2013-11-18 06:07:08 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'D3D9SurfaceImage.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_D3D9_LAYER']:
|
|
|
|
EXPORTS += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'd3d9/DeviceManagerD3D9.h',
|
|
|
|
'd3d9/LayerManagerD3D9.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
2013-08-04 11:46:17 +04:00
|
|
|
EXPORTS.mozilla.layers += [
|
2013-09-04 07:28:05 +04:00
|
|
|
'd3d9/CompositorD3D9.h',
|
|
|
|
'd3d9/TextureD3D9.h',
|
2013-08-04 11:46:17 +04:00
|
|
|
]
|
2013-11-18 06:07:08 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-24 03:00:23 +04:00
|
|
|
'd3d9/CanvasLayerD3D9.cpp',
|
|
|
|
'd3d9/ColorLayerD3D9.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'd3d9/ContainerLayerD3D9.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'd3d9/ImageLayerD3D9.cpp',
|
|
|
|
'd3d9/LayerManagerD3D9.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'd3d9/Nv3DVUtils.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'd3d9/TextureD3D9.cpp',
|
|
|
|
'd3d9/ThebesLayerD3D9.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-11-18 06:07:08 +04:00
|
|
|
SOURCES += [
|
|
|
|
'd3d9/CompositorD3D9.cpp',
|
|
|
|
'd3d9/DeviceManagerD3D9.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
|
|
|
|
EXPORTS += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'd3d10/LayerManagerD3D10.h',
|
|
|
|
'd3d10/ReadbackManagerD3D10.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
EXPORTS.mozilla.layers += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'd3d11/CompositorD3D11.h',
|
|
|
|
'd3d11/TextureD3D11.h',
|
|
|
|
'ipc/ShadowLayerUtilsD3D10.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
2013-11-18 06:07:08 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-03 11:10:01 +04:00
|
|
|
'd3d10/CanvasLayerD3D10.cpp',
|
|
|
|
'd3d10/ColorLayerD3D10.cpp',
|
|
|
|
'd3d10/ContainerLayerD3D10.cpp',
|
|
|
|
'd3d10/ImageLayerD3D10.cpp',
|
|
|
|
'd3d10/LayerManagerD3D10.cpp',
|
|
|
|
'd3d10/ReadbackManagerD3D10.cpp',
|
|
|
|
'd3d10/ThebesLayerD3D10.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'd3d11/TextureD3D11.cpp',
|
|
|
|
'ipc/ShadowLayerUtilsD3D10.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-11-18 06:07:08 +04:00
|
|
|
SOURCES += [
|
|
|
|
'd3d11/CompositorD3D11.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
|
|
|
|
EXPORTS.gfxipc += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'ipc/ShadowLayerUtils.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.layers += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'basic/BasicCompositor.h',
|
|
|
|
'client/CanvasClient.h',
|
|
|
|
'client/CompositableClient.h',
|
|
|
|
'client/ContentClient.h',
|
|
|
|
'client/ImageClient.h',
|
|
|
|
'client/TextureClient.h',
|
|
|
|
'client/TiledContentClient.h',
|
2013-07-30 22:03:40 +04:00
|
|
|
'composite/APZCTreeManager.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'composite/AsyncCompositionManager.h',
|
|
|
|
'composite/CanvasLayerComposite.h',
|
|
|
|
'composite/ColorLayerComposite.h',
|
|
|
|
'composite/ContainerLayerComposite.h',
|
|
|
|
'composite/ContentHost.h',
|
|
|
|
'composite/ImageHost.h',
|
|
|
|
'composite/ImageLayerComposite.h',
|
|
|
|
'composite/LayerManagerComposite.h',
|
|
|
|
'composite/TextureHost.h',
|
|
|
|
'composite/ThebesLayerComposite.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'Compositor.h',
|
|
|
|
'CompositorTypes.h',
|
|
|
|
'D3D9SurfaceImage.h',
|
|
|
|
'Effects.h',
|
|
|
|
'ImageDataSerializer.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'ipc/AsyncPanZoomController.h',
|
|
|
|
'ipc/Axis.h',
|
|
|
|
'ipc/CompositableForwarder.h',
|
|
|
|
'ipc/CompositableTransactionParent.h',
|
|
|
|
'ipc/CompositorChild.h',
|
|
|
|
'ipc/CompositorCocoaWidgetHelper.h',
|
|
|
|
'ipc/CompositorParent.h',
|
|
|
|
'ipc/GeckoContentController.h',
|
|
|
|
'ipc/GestureEventListener.h',
|
|
|
|
'ipc/ImageBridgeChild.h',
|
|
|
|
'ipc/ImageBridgeParent.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'ipc/ISurfaceAllocator.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'ipc/LayerTransactionChild.h',
|
|
|
|
'ipc/LayerTransactionParent.h',
|
|
|
|
'ipc/ShadowLayers.h',
|
|
|
|
'ipc/ShadowLayersManager.h',
|
|
|
|
'ipc/SharedPlanarYCbCrImage.h',
|
|
|
|
'ipc/SharedRGBImage.h',
|
|
|
|
'ipc/TaskThrottler.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'LayersTypes.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'opengl/CompositingRenderTargetOGL.h',
|
|
|
|
'opengl/CompositorOGL.h',
|
2013-09-04 07:28:05 +04:00
|
|
|
'opengl/GrallocTextureClient.h',
|
|
|
|
'opengl/GrallocTextureHost.h',
|
2013-11-18 06:04:38 +04:00
|
|
|
'opengl/MacIOSurfaceTextureClientOGL.h',
|
|
|
|
'opengl/MacIOSurfaceTextureHostOGL.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'opengl/TextureClientOGL.h',
|
|
|
|
'opengl/TextureHostOGL.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'RenderTrace.h',
|
|
|
|
'YCbCrImageDataSerializer.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
EXPORTS.mozilla.layers += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'ipc/ShadowLayerUtilsX11.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-03 11:10:01 +04:00
|
|
|
'ipc/ShadowLayerUtilsX11.cpp'
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
|
2013-04-21 10:41:06 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS.mozilla.layers += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'opengl/GLManager.h',
|
2013-04-21 10:41:06 +04:00
|
|
|
]
|
2013-11-01 05:54:14 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'MacIOSurfaceImage.h',
|
|
|
|
]
|
2013-11-18 06:07:08 +04:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'opengl/GLManager.cpp',
|
|
|
|
]
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-03 11:10:01 +04:00
|
|
|
'ipc/ShadowLayerUtilsMac.cpp',
|
2013-11-01 05:54:14 +04:00
|
|
|
'MacIOSurfaceImage.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-04-21 10:41:06 +04:00
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
# NB: Gralloc is available on other platforms that use the android GL
|
|
|
|
# libraries, but only Gonk is able to use it reliably because Gecko
|
|
|
|
# has full system permissions there.
|
2013-04-16 23:24:43 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
EXPORTS.mozilla.layers += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'ipc/ShadowLayerUtilsGralloc.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
2013-11-18 06:07:08 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'GrallocImages.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'opengl/GrallocTextureClient.cpp',
|
|
|
|
'opengl/GrallocTextureHost.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-11-18 06:07:08 +04:00
|
|
|
SOURCES += [
|
|
|
|
'ipc/ShadowLayerUtilsGralloc.cpp',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2013-11-18 06:07:08 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-03 11:10:01 +04:00
|
|
|
'basic/BasicCanvasLayer.cpp',
|
|
|
|
'basic/BasicColorLayer.cpp',
|
|
|
|
'basic/BasicCompositor.cpp',
|
|
|
|
'basic/BasicContainerLayer.cpp',
|
|
|
|
'basic/BasicImages.cpp',
|
|
|
|
'basic/BasicLayerManager.cpp',
|
|
|
|
'basic/BasicLayersImpl.cpp',
|
|
|
|
'basic/BasicThebesLayer.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'BufferUnrotate.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'client/CanvasClient.cpp',
|
|
|
|
'client/ClientCanvasLayer.cpp',
|
|
|
|
'client/ClientColorLayer.cpp',
|
|
|
|
'client/ClientContainerLayer.cpp',
|
|
|
|
'client/ClientImageLayer.cpp',
|
|
|
|
'client/ClientLayerManager.cpp',
|
|
|
|
'client/ClientThebesLayer.cpp',
|
|
|
|
'client/ClientTiledThebesLayer.cpp',
|
|
|
|
'client/CompositableClient.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'client/ContentClient.cpp',
|
|
|
|
'client/ImageClient.cpp',
|
|
|
|
'client/TextureClient.cpp',
|
|
|
|
'client/TiledContentClient.cpp',
|
|
|
|
'composite/APZCTreeManager.cpp',
|
|
|
|
'composite/AsyncCompositionManager.cpp',
|
|
|
|
'composite/CanvasLayerComposite.cpp',
|
|
|
|
'composite/ColorLayerComposite.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'composite/CompositableHost.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'composite/ContainerLayerComposite.cpp',
|
|
|
|
'composite/ContentHost.cpp',
|
|
|
|
'composite/ImageHost.cpp',
|
|
|
|
'composite/ImageLayerComposite.cpp',
|
|
|
|
'composite/LayerManagerComposite.cpp',
|
|
|
|
'composite/TextureHost.cpp',
|
|
|
|
'composite/ThebesLayerComposite.cpp',
|
|
|
|
'composite/TiledContentHost.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'Compositor.cpp',
|
|
|
|
'CopyableCanvasLayer.cpp',
|
|
|
|
'Effects.cpp',
|
|
|
|
'ImageDataSerializer.cpp',
|
|
|
|
'ImageLayers.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'ipc/AsyncPanZoomController.cpp',
|
|
|
|
'ipc/Axis.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'ipc/CompositableTransactionParent.cpp',
|
|
|
|
'ipc/CompositorChild.cpp',
|
|
|
|
'ipc/CompositorCocoaWidgetHelper.cpp',
|
|
|
|
'ipc/CompositorParent.cpp',
|
|
|
|
'ipc/GestureEventListener.cpp',
|
|
|
|
'ipc/ImageBridgeChild.cpp',
|
|
|
|
'ipc/ImageBridgeParent.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'ipc/ISurfaceAllocator.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'ipc/LayerTransactionChild.cpp',
|
|
|
|
'ipc/LayerTransactionParent.cpp',
|
|
|
|
'ipc/ShadowLayerChild.cpp',
|
|
|
|
'ipc/ShadowLayerParent.cpp',
|
|
|
|
'ipc/ShadowLayers.cpp',
|
|
|
|
'ipc/SharedPlanarYCbCrImage.cpp',
|
|
|
|
'ipc/SharedRGBImage.cpp',
|
|
|
|
'ipc/TaskThrottler.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'Layers.cpp',
|
|
|
|
'LayersLogging.cpp',
|
|
|
|
'LayerSorter.cpp',
|
|
|
|
'LayerTreeInvalidation.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'opengl/CompositingRenderTargetOGL.cpp',
|
|
|
|
'opengl/CompositorOGL.cpp',
|
2013-11-27 02:15:17 +04:00
|
|
|
'opengl/OGLShaderProgram.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'opengl/TextureClientOGL.cpp',
|
|
|
|
'opengl/TextureHostOGL.cpp',
|
|
|
|
'opengl/TexturePoolOGL.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'ReadbackProcessor.cpp',
|
|
|
|
'RenderTrace.cpp',
|
2013-11-27 04:29:46 +04:00
|
|
|
'RotatedBuffer.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'YCbCrImageDataSerializer.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-11-18 06:07:08 +04:00
|
|
|
SOURCES += [
|
|
|
|
'basic/BasicImageLayer.cpp',
|
|
|
|
'ImageContainer.cpp',
|
|
|
|
]
|
|
|
|
|
2013-11-18 06:04:38 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
SOURCES += [
|
|
|
|
'opengl/MacIOSurfaceTextureClientOGL.cpp',
|
|
|
|
'opengl/MacIOSurfaceTextureHostOGL.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-01 17:56:28 +04:00
|
|
|
IPDL_SOURCES = [
|
2013-09-06 19:41:00 +04:00
|
|
|
'ipc/LayersMessages.ipdlh',
|
2013-07-01 17:56:28 +04:00
|
|
|
'ipc/LayersSurfaces.ipdlh',
|
|
|
|
'ipc/PCompositable.ipdl',
|
|
|
|
'ipc/PCompositor.ipdl',
|
|
|
|
'ipc/PGrallocBuffer.ipdl',
|
|
|
|
'ipc/PImageBridge.ipdl',
|
|
|
|
'ipc/PLayer.ipdl',
|
|
|
|
'ipc/PLayerTransaction.ipdl',
|
|
|
|
]
|
2013-08-22 10:56:00 +04:00
|
|
|
|
2013-08-22 10:56:01 +04:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'thebes'
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2013-11-28 18:10:38 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/content/events/src',
|
|
|
|
]
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
if CONFIG['MOZ_DEBUG']:
|
|
|
|
DEFINES['D3D_DEBUG_INFO'] = True
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
|
|
|
|
DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
|