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 \
77 ThebesLayerBuffer.
cpp \
80 ContainerLayerOGL.
cpp \
86 ifeq ($(MOZ_WIDGET_TOOLKIT
),windows
)
87 ifdef MOZ_ENABLE_D3D9_LAYER
94 LayerManagerD3D9.
cpp \
96 ContainerLayerD3D9.
cpp \
100 DeviceManagerD3D9.
cpp \
104 ifdef MOZ_ENABLE_D3D10_LAYER
106 LayerManagerD3D10.h \
110 LayerManagerD3D10.
cpp \
111 ThebesLayerD3D10.
cpp \
112 ContainerLayerD3D10.
cpp \
113 ImageLayerD3D10.
cpp \
114 ColorLayerD3D10.
cpp \
115 CanvasLayerD3D10.
cpp \
121 EXPORTS_NAMESPACES
= IPC mozilla
/layers
122 EXPORTS_IPC
= ShadowLayerUtils.h
123 EXPORTS_mozilla
/layers
=\
125 ShadowLayersChild.h \
126 ShadowLayersParent.h \
131 ShadowLayerChild.
cpp \
132 ShadowLayersChild.
cpp \
133 ShadowLayerParent.
cpp \
134 ShadowLayersParent.
cpp \
138 EXPORTS_mozilla
/layers
+= ShadowLayerUtilsX11.h
139 CPPSRCS
+= ShadowLayerUtilsX11.
cpp
144 # Enable GLES2.0 under maemo
146 ifdef MOZ_PLATFORM_MAEMO
147 DEFINES
+= -DUSE_GLES2
151 include $(topsrcdir
)/config
/rules.mk
154 include $(topsrcdir
)/ipc
/chromium
/chromium-config.mk
157 CXXFLAGS
+= $(MOZ_CAIRO_CFLAGS
) $(TK_CFLAGS
)
159 LayerManagerOGLShaders.h
: LayerManagerOGLShaders.txt genshaders.py
$(GLOBAL_DEPS
)
160 $(PYTHON
) $(srcdir)/opengl
/genshaders.py
$< $@
162 LayerManagerOGL.
$(OBJ_SUFFIX
): LayerManagerOGLShaders.h
164 GARBAGE
+= LayerManagerOGLShaders.h