2010-03-01 07:56:18 +00: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 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 \
|
2010-03-01 23:09:35 +00:00
|
|
|
ImageLayers.h \
|
|
|
|
Layers.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 \
|
2010-03-01 07:56:18 +00:00
|
|
|
BasicLayers.cpp \
|
2011-02-16 22:43:30 +00:00
|
|
|
Layers.cpp \
|
|
|
|
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 \
|
2011-10-06 21:23:18 +00:00
|
|
|
LayerSorter.cpp \
|
2010-03-01 07:56:18 +00:00
|
|
|
$(NULL)
|
2010-03-03 21:37:04 +00:00
|
|
|
|
2011-02-12 16:02:08 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
|
|
|
CMMSRCS = \
|
|
|
|
MacIOSurfaceImageOGL.mm \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
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 =\
|
|
|
|
ShadowLayers.h \
|
2010-08-20 23:24:41 +00:00
|
|
|
ShadowLayersChild.h \
|
|
|
|
ShadowLayersParent.h \
|
2010-07-21 21:17:33 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2010-07-21 21:17:33 +00:00
|
|
|
CPPSRCS += \
|
|
|
|
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 #}
|
|
|
|
|
2010-05-25 06:35:35 +00:00
|
|
|
# Enable GLES2.0 under maemo
|
|
|
|
ifdef MOZ_X11
|
|
|
|
ifdef MOZ_PLATFORM_MAEMO
|
|
|
|
DEFINES += -DUSE_GLES2
|
|
|
|
endif
|
|
|
|
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
|
|
|
|
|
2010-09-14 05:23:08 +00:00
|
|
|
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(TK_CFLAGS)
|
2010-05-25 06:35:35 +00:00
|
|
|
|
2010-05-31 02:49:32 +00:00
|
|
|
LayerManagerOGLShaders.h: LayerManagerOGLShaders.txt genshaders.py $(GLOBAL_DEPS)
|
2010-05-25 06:35:35 +00:00
|
|
|
$(PYTHON) $(srcdir)/opengl/genshaders.py $< $@
|
|
|
|
|
|
|
|
LayerManagerOGL.$(OBJ_SUFFIX): LayerManagerOGLShaders.h
|
|
|
|
|
|
|
|
GARBAGE += LayerManagerOGLShaders.h
|