2010-03-01 10:56:18 +03:00
|
|
|
#
|
2012-05-21 15:12:37 +04:00
|
|
|
# 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/.
|
2010-03-01 10:56:18 +03:00
|
|
|
|
2012-08-04 22:26:44 +04:00
|
|
|
DEPTH = @DEPTH@
|
2010-03-01 10:56:18 +03:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
2010-03-14 20:30:40 +03:00
|
|
|
VPATH = \
|
|
|
|
$(srcdir) \
|
|
|
|
$(srcdir)/basic \
|
2010-03-30 08:48:52 +04:00
|
|
|
$(srcdir)/opengl \
|
2010-05-24 19:28:51 +04:00
|
|
|
$(srcdir)/d3d9 \
|
2010-10-01 02:53:51 +04:00
|
|
|
$(srcdir)/d3d10 \
|
2011-04-03 06:14:00 +04:00
|
|
|
$(srcdir)/ipc \
|
2010-03-14 20:30:40 +03:00
|
|
|
$(NULL)
|
2010-03-01 10:56:18 +03:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2010-04-29 00:43:52 +04:00
|
|
|
MODULE = thebes
|
2010-03-01 10:56:18 +03:00
|
|
|
LIBRARY_NAME = layers
|
|
|
|
LIBXUL_LIBRARY = 1
|
2010-04-29 00:43:52 +04:00
|
|
|
FORCE_STATIC_LIB = 1
|
2010-03-01 10:56:18 +03:00
|
|
|
|
2010-03-01 13:46:37 +03:00
|
|
|
DEFINES += -DIMPL_THEBES
|
2010-05-24 19:28:51 +04:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
DEFINES += -DD3D_DEBUG_INFO
|
|
|
|
endif
|
2010-03-01 13:46:37 +03:00
|
|
|
|
2010-03-01 10:56:18 +03:00
|
|
|
EXPORTS = \
|
2010-03-01 10:56:18 +03:00
|
|
|
BasicLayers.h \
|
2012-04-17 03:04:24 +04:00
|
|
|
BasicTiledThebesLayer.h \
|
|
|
|
BasicImplData.h \
|
2012-08-17 14:56:49 +04:00
|
|
|
GonkIOSurfaceImage.h \
|
2012-07-31 04:42:26 +04:00
|
|
|
FrameMetrics.h \
|
2012-08-26 05:27:28 +04:00
|
|
|
CompositorChild.h \
|
2012-07-31 21:28:22 +04:00
|
|
|
CompositorParent.h \
|
2012-08-19 23:33:25 +04:00
|
|
|
ImageContainer.h \
|
2010-03-02 02:09:35 +03:00
|
|
|
ImageLayers.h \
|
2012-08-19 23:33:25 +04:00
|
|
|
ImageTypes.h \
|
2010-03-02 02:09:35 +03:00
|
|
|
Layers.h \
|
2012-07-31 04:42:26 +04:00
|
|
|
LayersTypes.h \
|
2012-03-27 02:13:34 +04:00
|
|
|
LayerManagerOGLShaders.h \
|
2010-03-30 08:48:52 +04:00
|
|
|
LayerManagerOGL.h \
|
2010-05-25 10:35:35 +04:00
|
|
|
LayerManagerOGLProgram.h \
|
2012-07-30 22:36:12 +04:00
|
|
|
LayerSorter.h \
|
2012-08-29 09:47:18 +04:00
|
|
|
LayerTreeInvalidation.h \
|
2012-07-31 21:28:22 +04:00
|
|
|
ReadbackLayer.h \
|
|
|
|
ShadowLayersManager.h \
|
2012-07-30 22:36:12 +04:00
|
|
|
SharedTextureImage.h \
|
2012-07-31 21:28:22 +04:00
|
|
|
TexturePoolOGL.h \
|
2010-03-01 10:56:18 +03:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CPPSRCS = \
|
2010-03-02 02:09:35 +03:00
|
|
|
BasicImages.cpp \
|
2012-06-29 10:01:34 +04:00
|
|
|
BasicLayerManager.cpp \
|
|
|
|
BasicCanvasLayer.cpp \
|
|
|
|
BasicColorLayer.cpp \
|
|
|
|
BasicContainerLayer.cpp \
|
|
|
|
BasicImageLayer.cpp \
|
|
|
|
BasicLayersImpl.cpp \
|
|
|
|
BasicThebesLayer.cpp \
|
|
|
|
BasicBuffers.cpp \
|
2012-04-17 03:02:45 +04:00
|
|
|
BasicTiledThebesLayer.cpp \
|
2012-08-19 23:33:25 +04:00
|
|
|
ImageContainer.cpp \
|
2011-02-17 01:43:30 +03:00
|
|
|
Layers.cpp \
|
2012-02-18 02:05:03 +04:00
|
|
|
RenderTrace.cpp \
|
2011-02-17 01:43:30 +03:00
|
|
|
ReadbackProcessor.cpp \
|
2010-03-04 00:37:04 +03:00
|
|
|
ThebesLayerBuffer.cpp \
|
|
|
|
CanvasLayerOGL.cpp \
|
2010-05-13 04:56:11 +04:00
|
|
|
ColorLayerOGL.cpp \
|
2010-03-30 08:48:52 +04:00
|
|
|
ContainerLayerOGL.cpp \
|
|
|
|
ImageLayerOGL.cpp \
|
2010-03-04 00:37:04 +03:00
|
|
|
LayerManagerOGL.cpp \
|
|
|
|
ThebesLayerOGL.cpp \
|
2012-04-17 03:04:24 +04:00
|
|
|
TiledThebesLayerOGL.cpp \
|
2012-04-25 06:48:33 +04:00
|
|
|
ReusableTileStoreOGL.cpp \
|
2012-03-19 00:07:25 +04:00
|
|
|
LayerManagerOGLProgram.cpp \
|
2011-10-07 01:23:18 +04:00
|
|
|
LayerSorter.cpp \
|
2012-08-29 09:47:18 +04:00
|
|
|
LayerTreeInvalidation.cpp \
|
2012-02-01 06:18:30 +04:00
|
|
|
ImageLayers.cpp \
|
2012-07-20 23:20:51 +04:00
|
|
|
TexturePoolOGL.cpp \
|
2010-03-01 10:56:18 +03:00
|
|
|
$(NULL)
|
2010-03-04 00:37:04 +03:00
|
|
|
|
2010-05-24 19:28:51 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
2010-06-06 14:37:44 +04:00
|
|
|
ifdef MOZ_ENABLE_D3D9_LAYER
|
2010-08-11 03:32:45 +04:00
|
|
|
EXPORTS += \
|
|
|
|
LayerManagerD3D9.h \
|
|
|
|
DeviceManagerD3D9.h \
|
|
|
|
$(NULL)
|
2010-05-24 19:28:51 +04:00
|
|
|
|
|
|
|
CPPSRCS += \
|
|
|
|
LayerManagerD3D9.cpp \
|
|
|
|
ThebesLayerD3D9.cpp \
|
|
|
|
ContainerLayerD3D9.cpp \
|
|
|
|
ImageLayerD3D9.cpp \
|
|
|
|
ColorLayerD3D9.cpp \
|
|
|
|
CanvasLayerD3D9.cpp \
|
2011-07-04 17:15:05 +04:00
|
|
|
ShadowBufferD3D9.cpp \
|
2010-08-11 03:32:45 +04:00
|
|
|
DeviceManagerD3D9.cpp \
|
2010-08-27 00:44:53 +04:00
|
|
|
Nv3DVUtils.cpp \
|
2010-05-24 19:28:51 +04:00
|
|
|
$(NULL)
|
2010-10-01 02:53:51 +04:00
|
|
|
endif
|
|
|
|
ifdef MOZ_ENABLE_D3D10_LAYER
|
|
|
|
EXPORTS += \
|
|
|
|
LayerManagerD3D10.h \
|
2011-02-05 05:30:00 +03:00
|
|
|
ReadbackManagerD3D10.h \
|
2010-10-01 02:53:51 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CPPSRCS += \
|
2011-08-09 23:38:26 +04:00
|
|
|
CanvasLayerD3D10.cpp \
|
|
|
|
ColorLayerD3D10.cpp \
|
2010-10-01 02:53:51 +04:00
|
|
|
ContainerLayerD3D10.cpp \
|
|
|
|
ImageLayerD3D10.cpp \
|
2011-08-09 23:38:26 +04:00
|
|
|
LayerManagerD3D10.cpp \
|
2011-02-05 05:30:00 +03:00
|
|
|
ReadbackManagerD3D10.cpp \
|
2011-08-09 23:38:26 +04:00
|
|
|
ShadowLayerUtilsD3D10.cpp \
|
|
|
|
ThebesLayerD3D10.cpp \
|
2010-10-01 02:53:51 +04:00
|
|
|
$(NULL)
|
2010-05-24 19:28:51 +04:00
|
|
|
endif
|
|
|
|
endif
|
2010-03-01 10:56:18 +03:00
|
|
|
|
2012-01-03 23:36:00 +04:00
|
|
|
EXPORTS_NAMESPACES = gfxipc mozilla/layers
|
|
|
|
EXPORTS_gfxipc = ShadowLayerUtils.h
|
2010-07-22 01:17:33 +04:00
|
|
|
EXPORTS_mozilla/layers =\
|
2012-07-20 10:48:25 +04:00
|
|
|
AsyncPanZoomController.h \
|
|
|
|
Axis.h \
|
2012-01-19 18:45:37 +04:00
|
|
|
CompositorCocoaWidgetHelper.h \
|
|
|
|
CompositorChild.h \
|
|
|
|
CompositorParent.h \
|
2012-07-20 10:48:25 +04:00
|
|
|
GeckoContentController.h \
|
|
|
|
GestureEventListener.h \
|
2012-07-13 23:38:09 +04:00
|
|
|
ImageBridgeChild.h \
|
|
|
|
ImageBridgeParent.h \
|
|
|
|
ImageContainerChild.h \
|
|
|
|
ImageContainerParent.h \
|
2010-07-22 01:17:33 +04:00
|
|
|
ShadowLayers.h \
|
2010-08-21 03:24:41 +04:00
|
|
|
ShadowLayersChild.h \
|
|
|
|
ShadowLayersParent.h \
|
2012-01-19 18:45:37 +04:00
|
|
|
ShadowLayersManager.h \
|
2012-02-27 23:31:29 +04:00
|
|
|
RenderTrace.h \
|
2012-07-13 23:38:09 +04:00
|
|
|
SharedImageUtils.h \
|
2012-09-14 00:52:26 +04:00
|
|
|
ShmemYCbCrImage.h \
|
2010-07-22 01:17:33 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2010-07-22 01:17:33 +04:00
|
|
|
CPPSRCS += \
|
2012-07-20 10:48:25 +04:00
|
|
|
AsyncPanZoomController.cpp \
|
|
|
|
Axis.cpp \
|
2012-01-19 18:45:37 +04:00
|
|
|
CompositorCocoaWidgetHelper.cpp \
|
|
|
|
CompositorChild.cpp \
|
|
|
|
CompositorParent.cpp \
|
2012-07-20 10:48:25 +04:00
|
|
|
GestureEventListener.cpp \
|
2012-07-13 23:38:09 +04:00
|
|
|
ImageBridgeChild.cpp \
|
|
|
|
ImageBridgeParent.cpp \
|
|
|
|
ImageContainerChild.cpp \
|
|
|
|
ImageContainerParent.cpp \
|
2010-07-22 01:17:33 +04:00
|
|
|
ShadowLayers.cpp \
|
2010-08-21 03:24:41 +04:00
|
|
|
ShadowLayerChild.cpp \
|
|
|
|
ShadowLayersChild.cpp \
|
2010-07-22 01:17:33 +04:00
|
|
|
ShadowLayerParent.cpp \
|
|
|
|
ShadowLayersParent.cpp \
|
2012-09-14 00:52:26 +04:00
|
|
|
ShmemYCbCrImage.cpp \
|
2010-07-22 01:17:33 +04:00
|
|
|
$(NULL)
|
2010-09-14 09:23:08 +04:00
|
|
|
|
|
|
|
ifdef MOZ_X11 #{
|
|
|
|
EXPORTS_mozilla/layers += ShadowLayerUtilsX11.h
|
|
|
|
CPPSRCS += ShadowLayerUtilsX11.cpp
|
|
|
|
endif #}
|
|
|
|
|
2011-08-09 23:38:26 +04:00
|
|
|
ifdef MOZ_ENABLE_D3D10_LAYER
|
|
|
|
EXPORTS_mozilla/layers += ShadowLayerUtilsD3D10.h
|
|
|
|
DEFINES += -DMOZ_ENABLE_D3D10_LAYER
|
|
|
|
endif
|
|
|
|
|
2012-07-12 16:51:58 +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.
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
|
|
|
|
EXPORTS_mozilla/layers += ShadowLayerUtilsGralloc.h
|
2012-08-21 14:22:58 +04:00
|
|
|
CPPSRCS += \
|
|
|
|
ShadowLayerUtilsGralloc.cpp \
|
|
|
|
GrallocImages.cpp \
|
2012-10-09 08:06:35 +04:00
|
|
|
GonkIOSurfaceImage.cpp \
|
2012-08-21 14:22:58 +04:00
|
|
|
$(NULL)
|
2012-07-12 16:51:58 +04:00
|
|
|
endif
|
|
|
|
|
2010-03-01 10:56:18 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2010-03-02 02:09:35 +03:00
|
|
|
|
2010-07-22 01:17:33 +04:00
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
|
|
|
2012-07-20 10:48:25 +04:00
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(topsrcdir)/content/events/src \
|
2012-10-09 08:06:35 +04:00
|
|
|
-I$(ANDROID_SOURCE)/frameworks/base/include/media/stagefright \
|
|
|
|
-I$(ANDROID_SOURCE)/frameworks/base/include/media/stagefright/openmax \
|
2012-07-20 10:48:25 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2012-05-26 10:44:00 +04:00
|
|
|
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS) $(TK_CFLAGS)
|