2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:21 -08: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 03:04:03 -08:00
|
|
|
with Files('apz/**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Panning and Zooming')
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
2013-06-26 11:51:06 -07:00
|
|
|
'basic/BasicCanvasLayer.h',
|
|
|
|
'basic/BasicImplData.h',
|
|
|
|
'basic/BasicLayers.h',
|
|
|
|
'basic/BasicLayersImpl.h',
|
2014-09-26 10:06:08 -07:00
|
|
|
'basic/BasicPaintedLayer.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'client/ClientCanvasLayer.h',
|
|
|
|
'client/ClientContainerLayer.h',
|
|
|
|
'client/ClientLayerManager.h',
|
2014-09-26 10:06:08 -07:00
|
|
|
'client/ClientPaintedLayer.h',
|
|
|
|
'client/ClientTiledPaintedLayer.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'composite/CompositableHost.h',
|
|
|
|
'composite/ImageHost.h',
|
2014-10-07 21:11:54 -07:00
|
|
|
'CompositorTypes.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'CopyableCanvasLayer.h',
|
|
|
|
'D3D9SurfaceImage.h',
|
|
|
|
'FrameMetrics.h',
|
2014-09-17 06:13:29 -07:00
|
|
|
'GLImages.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'GrallocImages.h',
|
|
|
|
'ImageContainer.h',
|
|
|
|
'ImageLayers.h',
|
|
|
|
'ImageTypes.h',
|
2015-03-18 14:16:23 -07:00
|
|
|
'IMFYCbCrImage.h',
|
2014-07-04 11:04:12 -07:00
|
|
|
'ipc/ThreadSafeRefcountingWithMainThreadDestruction.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'Layers.h',
|
2013-11-28 20:11:49 -08:00
|
|
|
'LayerScope.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'LayersLogging.h',
|
|
|
|
'LayerSorter.h',
|
2014-10-07 21:11:54 -07:00
|
|
|
'LayersTypes.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'LayerTreeInvalidation.h',
|
2015-10-22 13:04:35 -07:00
|
|
|
'LayerUserData.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'opengl/Composer2D.h',
|
2013-11-26 14:15:17 -08:00
|
|
|
'opengl/OGLShaderProgram.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'opengl/TexturePoolOGL.h',
|
2014-07-27 13:32:00 -07:00
|
|
|
'protobuf/LayerScopePacket.pb.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'ReadbackLayer.h',
|
2013-09-10 15:21:04 -07:00
|
|
|
'TiledLayerBuffer.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2015-03-30 22:21:15 -07:00
|
|
|
SOURCES += [
|
2015-05-04 05:20:33 -07:00
|
|
|
'D3D11ShareHandleImage.cpp',
|
2015-03-30 22:21:15 -07:00
|
|
|
]
|
2013-11-17 18:07:08 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'D3D9SurfaceImage.cpp',
|
2015-03-18 14:17:13 -07:00
|
|
|
'IMFYCbCrImage.cpp',
|
2014-07-10 14:29:40 -07:00
|
|
|
'TextureDIB.cpp',
|
|
|
|
]
|
|
|
|
EXPORTS.mozilla.layers += [
|
|
|
|
'TextureDIB.h',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
if CONFIG['MOZ_ENABLE_D3D9_LAYER']:
|
|
|
|
EXPORTS += [
|
2013-06-26 11:51:06 -07:00
|
|
|
'd3d9/DeviceManagerD3D9.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
2013-08-04 00:46:17 -07:00
|
|
|
EXPORTS.mozilla.layers += [
|
2013-09-03 20:28:05 -07:00
|
|
|
'd3d9/CompositorD3D9.h',
|
|
|
|
'd3d9/TextureD3D9.h',
|
2013-08-04 00:46:17 -07:00
|
|
|
]
|
2013-11-17 18:07:08 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-23 16:00:23 -07:00
|
|
|
'd3d9/TextureD3D9.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-11-17 18:07:08 -08:00
|
|
|
SOURCES += [
|
|
|
|
'd3d9/CompositorD3D9.cpp',
|
|
|
|
'd3d9/DeviceManagerD3D9.cpp',
|
2014-02-12 01:59:05 -08:00
|
|
|
'd3d9/Nv3DVUtils.cpp',
|
2013-11-17 18:07:08 -08:00
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
|
|
|
|
EXPORTS.mozilla.layers += [
|
2013-06-26 11:51:06 -07:00
|
|
|
'd3d11/CompositorD3D11.h',
|
2014-07-30 06:38:46 -07:00
|
|
|
'd3d11/ReadbackManagerD3D11.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'd3d11/TextureD3D11.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
2013-11-17 18:07:08 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-23 16:00:23 -07:00
|
|
|
'd3d11/TextureD3D11.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-11-17 18:07:08 -08:00
|
|
|
SOURCES += [
|
|
|
|
'd3d11/CompositorD3D11.cpp',
|
2014-07-30 06:38:46 -07:00
|
|
|
'd3d11/ReadbackManagerD3D11.cpp',
|
2014-10-07 21:11:54 -07:00
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
|
|
|
|
EXPORTS.gfxipc += [
|
2013-06-26 11:51:06 -07:00
|
|
|
'ipc/ShadowLayerUtils.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.layers += [
|
2014-04-17 04:54:25 -07: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 06:40:01 -08:00
|
|
|
'apz/src/APZUtils.h',
|
2015-09-28 11:43:50 -07:00
|
|
|
'apz/src/AsyncDragMetrics.h',
|
2015-04-01 23:17:08 -07:00
|
|
|
'apz/src/AsyncPanZoomAnimation.h',
|
2015-08-25 04:50:01 -07:00
|
|
|
'apz/src/TouchCounter.h',
|
2014-05-07 17:39:35 -07:00
|
|
|
'apz/testutil/APZTestData.h',
|
2014-04-17 04:54:25 -07:00
|
|
|
'apz/util/ActiveElementManager.h',
|
|
|
|
'apz/util/APZCCallbackHelper.h',
|
2015-02-09 11:05:18 -08:00
|
|
|
'apz/util/APZEventState.h',
|
2015-02-10 05:24:23 -08:00
|
|
|
'apz/util/APZThreadUtils.h',
|
2014-12-15 01:49:48 -08:00
|
|
|
'apz/util/ChromeProcessController.h',
|
2015-07-27 11:07:58 -07:00
|
|
|
'apz/util/DoubleTapToZoom.h',
|
2014-12-15 23:28:19 -08:00
|
|
|
'apz/util/InputAPZContext.h',
|
2015-12-14 11:47:24 -08:00
|
|
|
'apz/util/ScrollLinkedEffectDetector.h',
|
2015-10-11 20:21:02 -07:00
|
|
|
'AsyncCanvasRenderer.h',
|
2013-12-11 17:45:11 -08:00
|
|
|
'AtomicRefCountedWithFinalize.h',
|
2014-07-09 10:02:29 -07:00
|
|
|
'AxisPhysicsModel.h',
|
|
|
|
'AxisPhysicsMSDModel.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'basic/BasicCompositor.h',
|
2013-12-03 16:20:04 -08:00
|
|
|
'basic/MacIOSurfaceTextureHostBasic.h',
|
|
|
|
'basic/TextureHostBasic.h',
|
2015-10-15 08:53:33 -07:00
|
|
|
'BufferTexture.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'client/CanvasClient.h',
|
|
|
|
'client/CompositableClient.h',
|
|
|
|
'client/ContentClient.h',
|
|
|
|
'client/ImageClient.h',
|
2015-07-29 09:02:40 -07:00
|
|
|
'client/SingleTiledContentClient.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'client/TextureClient.h',
|
2014-03-07 13:34:04 -08:00
|
|
|
'client/TextureClientPool.h',
|
2014-11-13 07:53:49 -08:00
|
|
|
'client/TextureClientRecycleAllocator.h',
|
2015-06-04 17:15:38 -07:00
|
|
|
'client/TextureClientSharedSurface.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'client/TiledContentClient.h',
|
|
|
|
'composite/AsyncCompositionManager.h',
|
|
|
|
'composite/CanvasLayerComposite.h',
|
|
|
|
'composite/ColorLayerComposite.h',
|
|
|
|
'composite/ContainerLayerComposite.h',
|
|
|
|
'composite/ContentHost.h',
|
2015-06-08 09:53:41 -07:00
|
|
|
'composite/FrameUniformityData.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'composite/ImageHost.h',
|
|
|
|
'composite/ImageLayerComposite.h',
|
|
|
|
'composite/LayerManagerComposite.h',
|
2014-09-26 10:06:08 -07:00
|
|
|
'composite/PaintedLayerComposite.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'composite/TextureHost.h',
|
2015-07-01 04:51:03 -07:00
|
|
|
'composite/TiledContentHost.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'Compositor.h',
|
|
|
|
'CompositorTypes.h',
|
2015-03-30 22:21:15 -07:00
|
|
|
'D3D11ShareHandleImage.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'D3D9SurfaceImage.h',
|
|
|
|
'Effects.h',
|
|
|
|
'ImageDataSerializer.h',
|
2014-05-05 18:56:40 -07:00
|
|
|
'ipc/AsyncTransactionTracker.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'ipc/CompositableForwarder.h',
|
|
|
|
'ipc/CompositableTransactionParent.h',
|
|
|
|
'ipc/CompositorChild.h',
|
2015-05-04 23:32:47 -07:00
|
|
|
'ipc/CompositorLRU.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'ipc/CompositorParent.h',
|
2014-02-24 20:23:41 -08:00
|
|
|
'ipc/FenceUtils.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'ipc/ImageBridgeChild.h',
|
|
|
|
'ipc/ImageBridgeParent.h',
|
2015-07-05 20:02:26 -07:00
|
|
|
'ipc/ImageContainerParent.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'ipc/ISurfaceAllocator.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'ipc/LayerTransactionChild.h',
|
|
|
|
'ipc/LayerTransactionParent.h',
|
2015-07-05 20:02:26 -07:00
|
|
|
'ipc/ShadowLayerChild.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'ipc/ShadowLayers.h',
|
|
|
|
'ipc/ShadowLayersManager.h',
|
2014-04-30 18:52:00 -07:00
|
|
|
'ipc/SharedBufferManagerChild.h',
|
|
|
|
'ipc/SharedBufferManagerParent.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'ipc/SharedPlanarYCbCrImage.h',
|
|
|
|
'ipc/SharedRGBImage.h',
|
2014-08-27 19:13:41 -07:00
|
|
|
'LayerMetricsWrapper.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'LayersTypes.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'opengl/CompositingRenderTargetOGL.h',
|
|
|
|
'opengl/CompositorOGL.h',
|
2013-09-03 20:28:05 -07:00
|
|
|
'opengl/GrallocTextureClient.h',
|
|
|
|
'opengl/GrallocTextureHost.h',
|
2013-11-17 18:04:38 -08:00
|
|
|
'opengl/MacIOSurfaceTextureClientOGL.h',
|
|
|
|
'opengl/MacIOSurfaceTextureHostOGL.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'opengl/TextureClientOGL.h',
|
|
|
|
'opengl/TextureHostOGL.h',
|
2015-06-18 16:07:21 -07:00
|
|
|
'PersistentBufferProvider.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'RenderTrace.h',
|
2015-12-02 11:31:17 -08:00
|
|
|
'TextureWrapperImage.h',
|
2014-05-28 14:42:17 -07:00
|
|
|
'TransactionIdAllocator.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
EXPORTS.mozilla.layers += [
|
2014-02-05 08:39:02 -08:00
|
|
|
'basic/TextureClientX11.h',
|
2014-02-17 16:30:05 -08:00
|
|
|
'basic/X11TextureSourceBasic.h',
|
|
|
|
'composite/X11TextureHost.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'ipc/ShadowLayerUtilsX11.h',
|
2014-02-17 16:30:05 -08:00
|
|
|
'opengl/X11TextureSourceOGL.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2014-02-05 08:39:02 -08:00
|
|
|
'basic/TextureClientX11.cpp',
|
2014-07-22 16:02:25 -07:00
|
|
|
'basic/X11BasicCompositor.cpp',
|
2014-02-17 16:30:05 -08:00
|
|
|
'basic/X11TextureSourceBasic.cpp',
|
|
|
|
'composite/X11TextureHost.cpp',
|
|
|
|
'ipc/ShadowLayerUtilsX11.cpp',
|
2014-02-17 16:30:05 -08:00
|
|
|
'opengl/X11TextureSourceOGL.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
|
2013-04-20 23:41:06 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS.mozilla.layers += [
|
2013-06-26 11:51:06 -07:00
|
|
|
'opengl/GLManager.h',
|
2013-04-20 23:41:06 -07:00
|
|
|
]
|
2013-10-31 18:54:14 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'MacIOSurfaceImage.h',
|
|
|
|
]
|
2013-11-17 18:07:08 -08:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'opengl/GLManager.cpp',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-10-03 00:10:01 -07:00
|
|
|
'ipc/ShadowLayerUtilsMac.cpp',
|
2013-10-31 18:54:14 -07:00
|
|
|
'MacIOSurfaceImage.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-04-20 23:41:06 -07:00
|
|
|
|
2013-04-23 14:54:15 -07: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 12:24:43 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
EXPORTS.mozilla.layers += [
|
2015-10-26 22:43:07 -07:00
|
|
|
'basic/GrallocTextureHostBasic.h',
|
2013-06-26 11:51:06 -07:00
|
|
|
'ipc/ShadowLayerUtilsGralloc.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
2013-11-17 18:07:08 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2015-10-26 22:43:07 -07:00
|
|
|
'basic/GrallocTextureHostBasic.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'GrallocImages.cpp',
|
2013-12-09 21:47:19 -08:00
|
|
|
'opengl/EGLImageHelpers.cpp',
|
2013-10-03 00:10:01 -07:00
|
|
|
'opengl/GrallocTextureClient.cpp',
|
|
|
|
'opengl/GrallocTextureHost.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2014-03-17 18:36:56 -07:00
|
|
|
LOCAL_INCLUDES += ['/widget/gonk']
|
2015-11-03 21:28:42 -08:00
|
|
|
if CONFIG['ANDROID_VERSION'] >= '21':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'%' + '%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
|
|
|
|
'system/core/libsync/include'
|
|
|
|
]
|
|
|
|
]
|
2013-11-17 18:07:08 -08:00
|
|
|
SOURCES += [
|
|
|
|
'ipc/ShadowLayerUtilsGralloc.cpp',
|
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
|
2013-11-17 18:07:08 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2014-04-17 04:54:25 -07:00
|
|
|
'apz/src/APZCTreeManager.cpp',
|
|
|
|
'apz/src/AsyncPanZoomController.cpp',
|
|
|
|
'apz/src/Axis.cpp',
|
|
|
|
'apz/src/GestureEventListener.cpp',
|
2015-01-08 06:40:01 -08:00
|
|
|
'apz/src/HitTestingTreeNode.cpp',
|
2014-08-18 13:12:11 -07:00
|
|
|
'apz/src/InputBlockState.cpp',
|
2014-10-24 10:29:03 -07:00
|
|
|
'apz/src/InputQueue.cpp',
|
2014-09-23 08:38:05 -07:00
|
|
|
'apz/src/OverscrollHandoffState.cpp',
|
2015-08-25 04:50:01 -07:00
|
|
|
'apz/src/TouchCounter.cpp',
|
2015-04-01 23:42:40 -07:00
|
|
|
'apz/src/WheelScrollAnimation.cpp',
|
2014-05-09 14:16:03 -07:00
|
|
|
'apz/testutil/APZTestData.cpp',
|
2014-04-17 04:54:25 -07:00
|
|
|
'apz/util/ActiveElementManager.cpp',
|
|
|
|
'apz/util/APZCCallbackHelper.cpp',
|
2015-02-09 11:05:18 -08:00
|
|
|
'apz/util/APZEventState.cpp',
|
2015-02-10 05:24:23 -08:00
|
|
|
'apz/util/APZThreadUtils.cpp',
|
2014-12-15 01:49:48 -08:00
|
|
|
'apz/util/ChromeProcessController.cpp',
|
2015-07-27 11:07:58 -07:00
|
|
|
'apz/util/DoubleTapToZoom.cpp',
|
2014-12-15 23:28:19 -08:00
|
|
|
'apz/util/InputAPZContext.cpp',
|
2015-12-14 11:47:24 -08:00
|
|
|
'apz/util/ScrollLinkedEffectDetector.cpp',
|
2015-10-11 20:21:02 -07:00
|
|
|
'AsyncCanvasRenderer.cpp',
|
2014-07-09 10:02:29 -07:00
|
|
|
'AxisPhysicsModel.cpp',
|
|
|
|
'AxisPhysicsMSDModel.cpp',
|
2013-10-03 00:10:01 -07: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 10:06:08 -07:00
|
|
|
'basic/BasicPaintedLayer.cpp',
|
2013-12-03 16:20:04 -08:00
|
|
|
'basic/TextureHostBasic.cpp',
|
2015-10-15 08:53:33 -07:00
|
|
|
'BufferTexture.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'BufferUnrotate.cpp',
|
2013-10-03 00:10:01 -07:00
|
|
|
'client/CanvasClient.cpp',
|
|
|
|
'client/ClientCanvasLayer.cpp',
|
|
|
|
'client/ClientColorLayer.cpp',
|
|
|
|
'client/ClientContainerLayer.cpp',
|
|
|
|
'client/ClientImageLayer.cpp',
|
|
|
|
'client/ClientLayerManager.cpp',
|
2014-09-26 10:06:08 -07:00
|
|
|
'client/ClientPaintedLayer.cpp',
|
|
|
|
'client/ClientTiledPaintedLayer.cpp',
|
2013-10-03 00:10:01 -07:00
|
|
|
'client/CompositableClient.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'client/ContentClient.cpp',
|
|
|
|
'client/ImageClient.cpp',
|
2015-07-29 09:02:40 -07:00
|
|
|
'client/SingleTiledContentClient.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'client/TextureClient.cpp',
|
2014-03-07 13:34:04 -08:00
|
|
|
'client/TextureClientPool.cpp',
|
2014-11-13 07:53:49 -08:00
|
|
|
'client/TextureClientRecycleAllocator.cpp',
|
2015-06-04 17:15:38 -07:00
|
|
|
'client/TextureClientSharedSurface.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'client/TiledContentClient.cpp',
|
|
|
|
'composite/AsyncCompositionManager.cpp',
|
|
|
|
'composite/CanvasLayerComposite.cpp',
|
|
|
|
'composite/ColorLayerComposite.cpp',
|
2013-10-03 00:10:01 -07:00
|
|
|
'composite/CompositableHost.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'composite/ContainerLayerComposite.cpp',
|
|
|
|
'composite/ContentHost.cpp',
|
2014-05-09 06:50:00 -07:00
|
|
|
'composite/FPSCounter.cpp',
|
2015-06-08 09:53:41 -07:00
|
|
|
'composite/FrameUniformityData.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'composite/ImageHost.cpp',
|
|
|
|
'composite/ImageLayerComposite.cpp',
|
|
|
|
'composite/LayerManagerComposite.cpp',
|
2014-09-26 10:07:06 -07:00
|
|
|
'composite/PaintedLayerComposite.cpp',
|
2014-03-11 19:27:30 -07:00
|
|
|
'composite/TextRenderer.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'composite/TextureHost.cpp',
|
|
|
|
'composite/TiledContentHost.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'Compositor.cpp',
|
|
|
|
'CopyableCanvasLayer.cpp',
|
|
|
|
'Effects.cpp',
|
2015-07-13 08:53:10 -07:00
|
|
|
'FrameMetrics.cpp',
|
2014-10-21 06:53:02 -07:00
|
|
|
'GLImages.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'ImageDataSerializer.cpp',
|
|
|
|
'ImageLayers.cpp',
|
2014-05-05 18:56:40 -07:00
|
|
|
'ipc/AsyncTransactionTracker.cpp',
|
2013-10-03 00:10:01 -07:00
|
|
|
'ipc/CompositableTransactionParent.cpp',
|
2014-05-21 10:29:49 -07:00
|
|
|
'ipc/CompositorBench.cpp',
|
2013-10-03 00:10:01 -07:00
|
|
|
'ipc/CompositorChild.cpp',
|
2015-05-04 23:32:47 -07:00
|
|
|
'ipc/CompositorLRU.cpp',
|
2013-10-03 00:10:01 -07:00
|
|
|
'ipc/CompositorParent.cpp',
|
2015-05-16 22:21:00 -07:00
|
|
|
'ipc/FenceUtils.cpp',
|
2013-10-03 00:10:01 -07:00
|
|
|
'ipc/ImageBridgeChild.cpp',
|
|
|
|
'ipc/ImageBridgeParent.cpp',
|
2015-07-05 20:02:26 -07:00
|
|
|
'ipc/ImageContainerParent.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'ipc/ISurfaceAllocator.cpp',
|
2013-10-03 00:10:01 -07:00
|
|
|
'ipc/LayerTransactionChild.cpp',
|
|
|
|
'ipc/LayerTransactionParent.cpp',
|
|
|
|
'ipc/ShadowLayerChild.cpp',
|
|
|
|
'ipc/ShadowLayerParent.cpp',
|
|
|
|
'ipc/ShadowLayers.cpp',
|
2014-04-30 18:52:00 -07:00
|
|
|
'ipc/SharedBufferManagerChild.cpp',
|
|
|
|
'ipc/SharedBufferManagerParent.cpp',
|
2013-10-03 00:10:01 -07:00
|
|
|
'ipc/SharedPlanarYCbCrImage.cpp',
|
|
|
|
'ipc/SharedRGBImage.cpp',
|
2013-11-28 20:11:49 -08:00
|
|
|
'LayerScope.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'LayersLogging.cpp',
|
|
|
|
'LayerSorter.cpp',
|
2015-06-08 02:27:23 -07:00
|
|
|
'LayersTypes.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'opengl/CompositingRenderTargetOGL.cpp',
|
|
|
|
'opengl/CompositorOGL.cpp',
|
2014-07-09 12:28:27 -07:00
|
|
|
'opengl/CompositorOGLVR.cpp',
|
2014-11-10 11:49:05 -08:00
|
|
|
'opengl/GLBlitTextureImageHelper.cpp',
|
2013-11-26 14:15:17 -08:00
|
|
|
'opengl/OGLShaderProgram.cpp',
|
2013-10-03 00:10:01 -07:00
|
|
|
'opengl/TextureClientOGL.cpp',
|
|
|
|
'opengl/TextureHostOGL.cpp',
|
|
|
|
'opengl/TexturePoolOGL.cpp',
|
2014-07-09 20:16:00 -07:00
|
|
|
'protobuf/LayerScopePacket.pb.cc',
|
2013-10-23 16:05:43 -07:00
|
|
|
'ReadbackProcessor.cpp',
|
|
|
|
'RenderTrace.cpp',
|
2013-11-26 16:29:46 -08:00
|
|
|
'RotatedBuffer.cpp',
|
2015-12-02 11:31:17 -08:00
|
|
|
'TextureWrapperImage.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-11-17 18:07:08 -08:00
|
|
|
SOURCES += [
|
|
|
|
'basic/BasicImageLayer.cpp',
|
|
|
|
'ImageContainer.cpp',
|
2013-12-08 20:39:26 -08:00
|
|
|
'Layers.cpp',
|
|
|
|
'LayerTreeInvalidation.cpp',
|
2015-06-18 16:07:21 -07:00
|
|
|
'PersistentBufferProvider.cpp',
|
2013-11-17 18:07:08 -08:00
|
|
|
]
|
|
|
|
|
2014-07-09 20:16:00 -07:00
|
|
|
# Disable RTTI in google protocol buffer
|
|
|
|
DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True
|
|
|
|
|
2013-12-08 20:39:26 -08: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-17 18:04:38 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
SOURCES += [
|
2013-12-03 16:20:04 -08:00
|
|
|
'basic/MacIOSurfaceTextureHostBasic.cpp',
|
2013-11-17 18:04:38 -08:00
|
|
|
'opengl/MacIOSurfaceTextureClientOGL.cpp',
|
|
|
|
'opengl/MacIOSurfaceTextureHostOGL.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-01 06:56:28 -07:00
|
|
|
IPDL_SOURCES = [
|
2013-09-06 08:41:00 -07:00
|
|
|
'ipc/LayersMessages.ipdlh',
|
2013-07-01 06:56:28 -07:00
|
|
|
'ipc/LayersSurfaces.ipdlh',
|
|
|
|
'ipc/PCompositable.ipdl',
|
|
|
|
'ipc/PCompositor.ipdl',
|
|
|
|
'ipc/PImageBridge.ipdl',
|
2015-07-05 20:02:26 -07:00
|
|
|
'ipc/PImageContainer.ipdl',
|
2013-07-01 06:56:28 -07:00
|
|
|
'ipc/PLayer.ipdl',
|
|
|
|
'ipc/PLayerTransaction.ipdl',
|
2014-04-30 18:52:00 -07:00
|
|
|
'ipc/PSharedBufferManager.ipdl',
|
2013-12-11 17:44:44 -08:00
|
|
|
'ipc/PTexture.ipdl',
|
2013-07-01 06:56:28 -07:00
|
|
|
]
|
2013-08-21 23:56:00 -07:00
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2015-02-09 11:05:18 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/docshell/base', # for nsDocShell.h
|
2015-02-24 19:20:00 -08:00
|
|
|
'/layout/base', # for TouchManager.h
|
2015-07-27 11:07:58 -07:00
|
|
|
'/layout/generic', # for nsTextFrame.h
|
2015-02-09 11:05:18 -08:00
|
|
|
]
|
|
|
|
|
2014-07-22 16:37:51 -07:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 05:55:07 -08: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 07:07:46 -08:00
|
|
|
|
2015-11-03 21:28:42 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2015-11-19 01:42:31 -08:00
|
|
|
if CONFIG['ANDROID_VERSION'] >= '17':
|
2015-11-03 21:28:42 -08:00
|
|
|
includes = [
|
|
|
|
'frameworks/av/include/media/stagefright',
|
|
|
|
'frameworks/native/include/media/openmax',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
includes = [
|
|
|
|
'frameworks/base/include/media/stagefright',
|
|
|
|
'frameworks/base/include/media/stagefright/openmax',
|
|
|
|
]
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'%' + '%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in includes
|
2014-03-13 16:31:18 -07:00
|
|
|
]
|
2014-05-12 09:24:57 -07:00
|
|
|
|
2015-09-18 10:19:05 -07:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
DIRS += ['apz/test/gtest']
|
|
|
|
|
2015-09-16 16:26:04 -07:00
|
|
|
MOCHITEST_MANIFESTS += ['apz/test/mochitest/mochitest.ini']
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['apz/test/mochitest/chrome.ini']
|
2014-07-24 08:55:33 -07:00
|
|
|
|
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
2015-07-30 09:05:22 -07:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
|