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 \
|
2010-03-14 10:30:40 -07:00
|
|
|
$(NULL)
|
2010-02-28 23:56:18 -08:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2010-07-21 14:17:33 -07:00
|
|
|
ifdef MOZ_IPC
|
|
|
|
VPATH += $(srcdir)/ipc
|
|
|
|
endif
|
|
|
|
|
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 \
|
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 \
|
|
|
|
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 \
|
2010-02-28 23:56:18 -08:00
|
|
|
$(NULL)
|
2010-03-03 13:37:04 -08:00
|
|
|
|
2011-02-12 08:02:08 -08:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
|
|
|
CMMSRCS = \
|
|
|
|
MacIOSurfaceImageOGL.mm \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
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 \
|
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 += \
|
|
|
|
LayerManagerD3D10.cpp \
|
|
|
|
ThebesLayerD3D10.cpp \
|
|
|
|
ContainerLayerD3D10.cpp \
|
|
|
|
ImageLayerD3D10.cpp \
|
|
|
|
ColorLayerD3D10.cpp \
|
|
|
|
CanvasLayerD3D10.cpp \
|
2011-02-04 18:30:00 -08:00
|
|
|
ReadbackManagerD3D10.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
|
|
|
|
2010-07-21 14:17:33 -07:00
|
|
|
ifdef MOZ_IPC #{
|
2010-09-03 13:10:45 -07:00
|
|
|
EXPORTS_NAMESPACES = IPC mozilla/layers
|
|
|
|
EXPORTS_IPC = ShadowLayerUtils.h
|
2010-07-21 14:17:33 -07:00
|
|
|
EXPORTS_mozilla/layers =\
|
|
|
|
ShadowLayers.h \
|
2010-08-20 16:24:41 -07:00
|
|
|
ShadowLayersChild.h \
|
|
|
|
ShadowLayersParent.h \
|
2010-07-21 14:17:33 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2010-07-21 14:17:33 -07:00
|
|
|
CPPSRCS += \
|
|
|
|
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 #}
|
|
|
|
|
2010-07-21 14:17:33 -07:00
|
|
|
endif #}
|
|
|
|
|
2010-05-24 23:35:35 -07:00
|
|
|
# Enable GLES2.0 under maemo
|
|
|
|
ifdef MOZ_X11
|
|
|
|
ifdef MOZ_PLATFORM_MAEMO
|
|
|
|
DEFINES += -DUSE_GLES2
|
|
|
|
endif
|
|
|
|
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
|
|
|
ifdef MOZ_IPC
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
|
|
endif
|
|
|
|
|
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
|