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