2010-02-28 23:56:18 -08:00
|
|
|
#
|
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
|
|
|
# The Original Code is Mozilla Corporation code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Mozilla Foundation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2009
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Robert O'Callahan <robert@ocallahan.org>
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
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 \
|
2010-03-01 15:09:35 -08:00
|
|
|
ImageLayers.h \
|
|
|
|
Layers.h \
|
2010-03-29 21:48:52 -07:00
|
|
|
LayerManagerOGL.h \
|
2010-05-24 23:35:35 -07:00
|
|
|
LayerManagerOGLProgram.h \
|
2011-02-16 14:43:30 -08:00
|
|
|
ReadbackLayer.h \
|
2011-10-06 14:23:18 -07:00
|
|
|
LayerSorter.h \
|
2010-02-28 23:56:18 -08:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CPPSRCS = \
|
2010-03-01 15:09:35 -08:00
|
|
|
BasicImages.cpp \
|
2010-02-28 23:56:18 -08:00
|
|
|
BasicLayers.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 \
|
2011-10-06 14:23:18 -07:00
|
|
|
LayerSorter.cpp \
|
2012-01-31 18:18:30 -08:00
|
|
|
ImageLayers.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-01-19 06:45:37 -08:00
|
|
|
CompositorCocoaWidgetHelper.h \
|
|
|
|
CompositorChild.h \
|
|
|
|
CompositorParent.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 \
|
2010-07-21 14:17:33 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2010-07-21 14:17:33 -07:00
|
|
|
CPPSRCS += \
|
2012-01-19 06:45:37 -08:00
|
|
|
CompositorCocoaWidgetHelper.cpp \
|
|
|
|
CompositorChild.cpp \
|
|
|
|
CompositorParent.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
|
|
|
|
|
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
|
|
|
|
|
2010-09-13 22:23:08 -07:00
|
|
|
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(TK_CFLAGS)
|
2010-05-24 23:35:35 -07:00
|
|
|
|
2010-05-30 19:49:32 -07:00
|
|
|
LayerManagerOGLShaders.h: LayerManagerOGLShaders.txt genshaders.py $(GLOBAL_DEPS)
|
2010-05-24 23:35:35 -07:00
|
|
|
$(PYTHON) $(srcdir)/opengl/genshaders.py $< $@
|
|
|
|
|
|
|
|
LayerManagerOGL.$(OBJ_SUFFIX): LayerManagerOGLShaders.h
|
|
|
|
|
|
|
|
GARBAGE += LayerManagerOGLShaders.h
|