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/.
|
|
|
|
|
2015-03-05 14:04:03 +03:00
|
|
|
with Files('apz/**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Panning and Zooming')
|
|
|
|
|
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',
|
2014-09-26 21:06:08 +04:00
|
|
|
'basic/BasicPaintedLayer.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'client/ClientCanvasLayer.h',
|
|
|
|
'client/ClientContainerLayer.h',
|
|
|
|
'client/ClientLayerManager.h',
|
2014-09-26 21:06:08 +04:00
|
|
|
'client/ClientPaintedLayer.h',
|
|
|
|
'client/ClientTiledPaintedLayer.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'composite/CompositableHost.h',
|
|
|
|
'composite/ImageHost.h',
|
2014-10-08 08:11:54 +04:00
|
|
|
'CompositorTypes.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'CopyableCanvasLayer.h',
|
|
|
|
'D3D9SurfaceImage.h',
|
|
|
|
'FrameMetrics.h',
|
2014-09-17 17:13:29 +04:00
|
|
|
'GLImages.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'GrallocImages.h',
|
|
|
|
'ImageContainer.h',
|
|
|
|
'ImageLayers.h',
|
|
|
|
'ImageTypes.h',
|
2015-03-19 00:16:23 +03:00
|
|
|
'IMFYCbCrImage.h',
|
2014-07-04 22:04:12 +04:00
|
|
|
'ipc/ThreadSafeRefcountingWithMainThreadDestruction.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'Layers.h',
|
2013-11-29 08:11:49 +04:00
|
|
|
'LayerScope.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'LayersLogging.h',
|
|
|
|
'LayerSorter.h',
|
2014-10-08 08:11:54 +04:00
|
|
|
'LayersTypes.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'LayerTreeInvalidation.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'opengl/Composer2D.h',
|
2013-11-27 02:15:17 +04:00
|
|
|
'opengl/OGLShaderProgram.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'opengl/TexturePoolOGL.h',
|
2014-07-28 00:32:00 +04:00
|
|
|
'protobuf/LayerScopePacket.pb.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'ReadbackLayer.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':
|
2015-03-31 08:21:15 +03:00
|
|
|
SOURCES += [
|
|
|
|
'D3D11ShareHandleImage.cpp',
|
|
|
|
]
|
2013-11-18 06:07:08 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'D3D9SurfaceImage.cpp',
|
2015-03-19 00:17:13 +03:00
|
|
|
'IMFYCbCrImage.cpp',
|
2014-07-11 01:29:40 +04:00
|
|
|
'TextureDIB.cpp',
|
|
|
|
]
|
|
|
|
EXPORTS.mozilla.layers += [
|
|
|
|
'TextureDIB.h',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
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',
|
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/TextureD3D9.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-11-18 06:07:08 +04:00
|
|
|
SOURCES += [
|
|
|
|
'd3d9/CompositorD3D9.cpp',
|
|
|
|
'd3d9/DeviceManagerD3D9.cpp',
|
2014-02-12 13:59:05 +04:00
|
|
|
'd3d9/Nv3DVUtils.cpp',
|
2013-11-18 06:07:08 +04:00
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
|
|
|
|
EXPORTS.mozilla.layers += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'd3d11/CompositorD3D11.h',
|
2014-07-30 17:38:46 +04:00
|
|
|
'd3d11/ReadbackManagerD3D11.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'd3d11/TextureD3D11.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
2013-11-18 06:07:08 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-24 03:00:23 +04:00
|
|
|
'd3d11/TextureD3D11.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-11-18 06:07:08 +04:00
|
|
|
SOURCES += [
|
|
|
|
'd3d11/CompositorD3D11.cpp',
|
2014-07-30 17:38:46 +04:00
|
|
|
'd3d11/ReadbackManagerD3D11.cpp',
|
2014-10-08 08:11:54 +04:00
|
|
|
]
|
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 += [
|
2014-04-17 15:54:25 +04:00
|
|
|
'apz/public/GeckoContentController.h',
|
|
|
|
# exporting things from apz/src is temporary until we extract a
|
|
|
|
# proper interface for the code there
|
|
|
|
'apz/src/APZCTreeManager.h',
|
2015-01-08 17:40:01 +03:00
|
|
|
'apz/src/APZUtils.h',
|
2015-04-02 09:17:08 +03:00
|
|
|
'apz/src/AsyncPanZoomAnimation.h',
|
2014-05-08 04:39:35 +04:00
|
|
|
'apz/testutil/APZTestData.h',
|
2014-04-17 15:54:25 +04:00
|
|
|
'apz/util/ActiveElementManager.h',
|
|
|
|
'apz/util/APZCCallbackHelper.h',
|
2015-02-09 22:05:18 +03:00
|
|
|
'apz/util/APZEventState.h',
|
2015-02-10 16:24:23 +03:00
|
|
|
'apz/util/APZThreadUtils.h',
|
2014-12-15 12:49:48 +03:00
|
|
|
'apz/util/ChromeProcessController.h',
|
2014-12-16 10:28:19 +03:00
|
|
|
'apz/util/InputAPZContext.h',
|
2013-12-12 05:45:11 +04:00
|
|
|
'AtomicRefCountedWithFinalize.h',
|
2014-07-09 21:02:29 +04:00
|
|
|
'AxisPhysicsModel.h',
|
|
|
|
'AxisPhysicsMSDModel.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'basic/BasicCompositor.h',
|
2013-12-04 04:20:04 +04:00
|
|
|
'basic/MacIOSurfaceTextureHostBasic.h',
|
|
|
|
'basic/TextureHostBasic.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'client/CanvasClient.h',
|
|
|
|
'client/CompositableClient.h',
|
|
|
|
'client/ContentClient.h',
|
|
|
|
'client/ImageClient.h',
|
|
|
|
'client/TextureClient.h',
|
2014-03-08 01:34:04 +04:00
|
|
|
'client/TextureClientPool.h',
|
2014-11-13 18:53:49 +03:00
|
|
|
'client/TextureClientRecycleAllocator.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'client/TiledContentClient.h',
|
|
|
|
'composite/AsyncCompositionManager.h',
|
|
|
|
'composite/CanvasLayerComposite.h',
|
|
|
|
'composite/ColorLayerComposite.h',
|
|
|
|
'composite/ContainerLayerComposite.h',
|
|
|
|
'composite/ContentHost.h',
|
|
|
|
'composite/ImageHost.h',
|
|
|
|
'composite/ImageLayerComposite.h',
|
|
|
|
'composite/LayerManagerComposite.h',
|
2014-09-26 21:06:08 +04:00
|
|
|
'composite/PaintedLayerComposite.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'composite/TextureHost.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'Compositor.h',
|
|
|
|
'CompositorTypes.h',
|
2015-03-31 08:21:15 +03:00
|
|
|
'D3D11ShareHandleImage.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'D3D9SurfaceImage.h',
|
|
|
|
'Effects.h',
|
|
|
|
'ImageDataSerializer.h',
|
2014-05-06 05:56:40 +04:00
|
|
|
'ipc/AsyncTransactionTracker.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'ipc/CompositableForwarder.h',
|
|
|
|
'ipc/CompositableTransactionParent.h',
|
|
|
|
'ipc/CompositorChild.h',
|
|
|
|
'ipc/CompositorParent.h',
|
2014-02-25 08:23:41 +04:00
|
|
|
'ipc/FenceUtils.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'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',
|
2014-05-01 05:52:00 +04:00
|
|
|
'ipc/SharedBufferManagerChild.h',
|
|
|
|
'ipc/SharedBufferManagerParent.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'ipc/SharedPlanarYCbCrImage.h',
|
|
|
|
'ipc/SharedRGBImage.h',
|
2014-08-28 06:13:41 +04:00
|
|
|
'LayerMetricsWrapper.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',
|
2014-05-29 01:42:17 +04:00
|
|
|
'TransactionIdAllocator.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'YCbCrImageDataSerializer.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
EXPORTS.mozilla.layers += [
|
2014-02-05 20:39:02 +04:00
|
|
|
'basic/TextureClientX11.h',
|
2014-02-18 04:30:05 +04:00
|
|
|
'basic/X11TextureSourceBasic.h',
|
|
|
|
'composite/X11TextureHost.h',
|
2013-06-26 22:51:06 +04:00
|
|
|
'ipc/ShadowLayerUtilsX11.h',
|
2014-02-18 04:30:05 +04:00
|
|
|
'opengl/X11TextureSourceOGL.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2014-02-05 20:39:02 +04:00
|
|
|
'basic/TextureClientX11.cpp',
|
2014-07-23 03:02:25 +04:00
|
|
|
'basic/X11BasicCompositor.cpp',
|
2014-02-18 04:30:05 +04:00
|
|
|
'basic/X11TextureSourceBasic.cpp',
|
|
|
|
'composite/X11TextureHost.cpp',
|
|
|
|
'ipc/ShadowLayerUtilsX11.cpp',
|
2014-02-18 04:30:05 +04:00
|
|
|
'opengl/X11TextureSourceOGL.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-12-10 09:47:19 +04:00
|
|
|
'opengl/EGLImageHelpers.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'opengl/GrallocTextureClient.cpp',
|
|
|
|
'opengl/GrallocTextureHost.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2014-03-18 05:36:56 +04:00
|
|
|
LOCAL_INCLUDES += ['/widget/gonk']
|
2015-05-17 08:21:00 +03:00
|
|
|
CXXFLAGS += [
|
|
|
|
'-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
|
|
|
|
'system/core/libsync/include'
|
|
|
|
]
|
|
|
|
]
|
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 += [
|
2014-04-17 15:54:25 +04:00
|
|
|
'apz/src/APZCTreeManager.cpp',
|
|
|
|
'apz/src/AsyncPanZoomController.cpp',
|
|
|
|
'apz/src/Axis.cpp',
|
|
|
|
'apz/src/GestureEventListener.cpp',
|
2015-01-08 17:40:01 +03:00
|
|
|
'apz/src/HitTestingTreeNode.cpp',
|
2014-08-19 00:12:11 +04:00
|
|
|
'apz/src/InputBlockState.cpp',
|
2014-10-24 21:29:03 +04:00
|
|
|
'apz/src/InputQueue.cpp',
|
2014-09-23 19:38:05 +04:00
|
|
|
'apz/src/OverscrollHandoffState.cpp',
|
2014-04-17 15:54:25 +04:00
|
|
|
'apz/src/TaskThrottler.cpp',
|
2015-04-02 09:42:40 +03:00
|
|
|
'apz/src/WheelScrollAnimation.cpp',
|
2014-05-10 01:16:03 +04:00
|
|
|
'apz/testutil/APZTestData.cpp',
|
2014-04-17 15:54:25 +04:00
|
|
|
'apz/util/ActiveElementManager.cpp',
|
|
|
|
'apz/util/APZCCallbackHelper.cpp',
|
2015-02-09 22:05:18 +03:00
|
|
|
'apz/util/APZEventState.cpp',
|
2015-02-10 16:24:23 +03:00
|
|
|
'apz/util/APZThreadUtils.cpp',
|
2014-12-15 12:49:48 +03:00
|
|
|
'apz/util/ChromeProcessController.cpp',
|
2014-12-16 10:28:19 +03:00
|
|
|
'apz/util/InputAPZContext.cpp',
|
2014-07-09 21:02:29 +04:00
|
|
|
'AxisPhysicsModel.cpp',
|
|
|
|
'AxisPhysicsMSDModel.cpp',
|
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',
|
2014-09-26 21:06:08 +04:00
|
|
|
'basic/BasicPaintedLayer.cpp',
|
2013-12-04 04:20:04 +04:00
|
|
|
'basic/TextureHostBasic.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',
|
2014-09-26 21:06:08 +04:00
|
|
|
'client/ClientPaintedLayer.cpp',
|
|
|
|
'client/ClientTiledPaintedLayer.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'client/CompositableClient.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'client/ContentClient.cpp',
|
|
|
|
'client/ImageClient.cpp',
|
|
|
|
'client/TextureClient.cpp',
|
2014-03-08 01:34:04 +04:00
|
|
|
'client/TextureClientPool.cpp',
|
2014-11-13 18:53:49 +03:00
|
|
|
'client/TextureClientRecycleAllocator.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'client/TiledContentClient.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',
|
2014-05-09 17:50:00 +04:00
|
|
|
'composite/FPSCounter.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'composite/ImageHost.cpp',
|
|
|
|
'composite/ImageLayerComposite.cpp',
|
|
|
|
'composite/LayerManagerComposite.cpp',
|
2014-09-26 21:07:06 +04:00
|
|
|
'composite/PaintedLayerComposite.cpp',
|
2014-03-12 06:27:30 +04:00
|
|
|
'composite/TextRenderer.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'composite/TextureHost.cpp',
|
|
|
|
'composite/TiledContentHost.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'Compositor.cpp',
|
|
|
|
'CopyableCanvasLayer.cpp',
|
|
|
|
'Effects.cpp',
|
2014-10-21 17:53:02 +04:00
|
|
|
'GLImages.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'ImageDataSerializer.cpp',
|
|
|
|
'ImageLayers.cpp',
|
2014-05-06 05:56:40 +04:00
|
|
|
'ipc/AsyncTransactionTracker.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'ipc/CompositableTransactionParent.cpp',
|
2014-05-21 21:29:49 +04:00
|
|
|
'ipc/CompositorBench.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'ipc/CompositorChild.cpp',
|
|
|
|
'ipc/CompositorParent.cpp',
|
2015-05-17 08:21:00 +03:00
|
|
|
'ipc/FenceUtils.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'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',
|
2014-05-01 05:52:00 +04:00
|
|
|
'ipc/SharedBufferManagerChild.cpp',
|
|
|
|
'ipc/SharedBufferManagerParent.cpp',
|
2013-10-03 11:10:01 +04:00
|
|
|
'ipc/SharedPlanarYCbCrImage.cpp',
|
|
|
|
'ipc/SharedRGBImage.cpp',
|
2013-11-29 08:11:49 +04:00
|
|
|
'LayerScope.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'LayersLogging.cpp',
|
|
|
|
'LayerSorter.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'opengl/CompositingRenderTargetOGL.cpp',
|
|
|
|
'opengl/CompositorOGL.cpp',
|
2014-07-09 23:28:27 +04:00
|
|
|
'opengl/CompositorOGLVR.cpp',
|
2014-11-10 22:49:05 +03:00
|
|
|
'opengl/GLBlitTextureImageHelper.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',
|
2014-07-10 07:16:00 +04:00
|
|
|
'protobuf/LayerScopePacket.pb.cc',
|
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-12-09 08:39:26 +04:00
|
|
|
'Layers.cpp',
|
|
|
|
'LayerTreeInvalidation.cpp',
|
2013-11-18 06:07:08 +04:00
|
|
|
]
|
|
|
|
|
2014-07-10 07:16:00 +04:00
|
|
|
# Disable RTTI in google protocol buffer
|
|
|
|
DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True
|
|
|
|
|
2013-12-09 08:39:26 +04:00
|
|
|
# Workaround compiler bug (Bug 795594)
|
|
|
|
if CONFIG['_MSC_VER'] and CONFIG['CPU_ARCH'] == 'x86_64':
|
|
|
|
for src in [
|
|
|
|
'Layers.cpp',
|
|
|
|
'LayerTreeInvalidation.cpp',
|
|
|
|
]:
|
|
|
|
SOURCES[src].no_pgo = True
|
|
|
|
|
2013-11-18 06:04:38 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
SOURCES += [
|
2013-12-04 04:20:04 +04:00
|
|
|
'basic/MacIOSurfaceTextureHostBasic.cpp',
|
2013-11-18 06:04:38 +04:00
|
|
|
'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/PImageBridge.ipdl',
|
|
|
|
'ipc/PLayer.ipdl',
|
|
|
|
'ipc/PLayerTransaction.ipdl',
|
2014-05-01 05:52:00 +04:00
|
|
|
'ipc/PSharedBufferManager.ipdl',
|
2013-12-12 05:44:44 +04:00
|
|
|
'ipc/PTexture.ipdl',
|
2013-07-01 17:56:28 +04:00
|
|
|
]
|
2013-08-22 10:56:00 +04:00
|
|
|
|
2014-01-09 18:26:28 +04:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2015-02-09 22:05:18 +03:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/docshell/base', # for nsDocShell.h
|
2015-02-25 06:20:00 +03:00
|
|
|
'/layout/base', # for TouchManager.h
|
2015-02-09 22:05:18 +03:00
|
|
|
]
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
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
|
2014-02-12 19:07:46 +04:00
|
|
|
|
2014-03-14 03:31:18 +04:00
|
|
|
CXXFLAGS += [
|
|
|
|
'-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
|
|
|
|
'frameworks/base/include/media/stagefright',
|
|
|
|
'frameworks/base/include/media/stagefright/openmax',
|
|
|
|
'frameworks/av/include/media/stagefright',
|
|
|
|
'frameworks/native/include/media/openmax',
|
|
|
|
]
|
|
|
|
]
|
2014-05-12 20:24:57 +04:00
|
|
|
|
|
|
|
MOCHITEST_MANIFESTS += ['apz/test/mochitest.ini']
|
2014-07-24 19:55:33 +04:00
|
|
|
|
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|