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