2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # The Original Code is Mozilla Corporation code.
17 # The Initial Developer of the Original Code is Mozilla Foundation.
18 # Portions created by the Initial Developer are Copyright (C) 2009
19 # the Initial Developer. All Rights Reserved.
22 # Robert O'Callahan <robert@ocallahan.org>
24 # Alternatively, the contents of this file may be used under the terms of
25 # either of the GNU General Public License Version 2 or later (the "GPL"),
26 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
39 topsrcdir
= @top_srcdir@
49 include $(DEPTH
)/config
/autoconf.mk
52 VPATH
+= $(srcdir)/ipc
60 DEFINES
+= -DIMPL_THEBES
62 DEFINES
+= -DD3D_DEBUG_INFO
70 LayerManagerOGLProgram.h \
78 ReadbackProcessor.
cpp \
79 ThebesLayerBuffer.
cpp \
82 ContainerLayerOGL.
cpp \
88 ifeq ($(MOZ_WIDGET_TOOLKIT
),cocoa
)
90 MacIOSurfaceImageOGL.mm \
94 ifeq ($(MOZ_WIDGET_TOOLKIT
),windows
)
95 ifdef MOZ_ENABLE_D3D9_LAYER
102 LayerManagerD3D9.
cpp \
103 ThebesLayerD3D9.
cpp \
104 ContainerLayerD3D9.
cpp \
107 CanvasLayerD3D9.
cpp \
108 DeviceManagerD3D9.
cpp \
112 ifdef MOZ_ENABLE_D3D10_LAYER
114 LayerManagerD3D10.h \
115 ReadbackManagerD3D10.h \
119 LayerManagerD3D10.
cpp \
120 ThebesLayerD3D10.
cpp \
121 ContainerLayerD3D10.
cpp \
122 ImageLayerD3D10.
cpp \
123 ColorLayerD3D10.
cpp \
124 CanvasLayerD3D10.
cpp \
125 ReadbackManagerD3D10.
cpp \
131 EXPORTS_NAMESPACES
= IPC mozilla
/layers
132 EXPORTS_IPC
= ShadowLayerUtils.h
133 EXPORTS_mozilla
/layers
=\
135 ShadowLayersChild.h \
136 ShadowLayersParent.h \
141 ShadowLayerChild.
cpp \
142 ShadowLayersChild.
cpp \
143 ShadowLayerParent.
cpp \
144 ShadowLayersParent.
cpp \
148 EXPORTS_mozilla
/layers
+= ShadowLayerUtilsX11.h
149 CPPSRCS
+= ShadowLayerUtilsX11.
cpp
154 # Enable GLES2.0 under maemo
156 ifdef MOZ_PLATFORM_MAEMO
157 DEFINES
+= -DUSE_GLES2
161 include $(topsrcdir
)/config
/rules.mk
164 include $(topsrcdir
)/ipc
/chromium
/chromium-config.mk
167 CXXFLAGS
+= $(MOZ_CAIRO_CFLAGS
) $(TK_CFLAGS
)
169 LayerManagerOGLShaders.h
: LayerManagerOGLShaders.txt genshaders.py
$(GLOBAL_DEPS
)
170 $(PYTHON
) $(srcdir)/opengl
/genshaders.py
$< $@
172 LayerManagerOGL.
$(OBJ_SUFFIX
): LayerManagerOGLShaders.h
174 GARBAGE
+= LayerManagerOGLShaders.h