Merge mozilla-central and tracemonkey. (a=blockers)
[mozilla-central.git] / gfx / layers / Makefile.in
blob0eb89f1f9bf8e42f2764988e517e7088f3e9aa17
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
13 # License.
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.
21 # Contributor(s):
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 *****
38 DEPTH = ../..
39 topsrcdir = @top_srcdir@
40 srcdir = @srcdir@
41 VPATH = \
42 $(srcdir) \
43 $(srcdir)/basic \
44 $(srcdir)/opengl \
45 $(srcdir)/d3d9 \
46 $(srcdir)/d3d10 \
47 $(NULL)
49 include $(DEPTH)/config/autoconf.mk
51 ifdef MOZ_IPC
52 VPATH += $(srcdir)/ipc
53 endif
55 MODULE = thebes
56 LIBRARY_NAME = layers
57 LIBXUL_LIBRARY = 1
58 FORCE_STATIC_LIB = 1
60 DEFINES += -DIMPL_THEBES
61 ifdef MOZ_DEBUG
62 DEFINES += -DD3D_DEBUG_INFO
63 endif
65 EXPORTS = \
66 BasicLayers.h \
67 ImageLayers.h \
68 Layers.h \
69 LayerManagerOGL.h \
70 LayerManagerOGLProgram.h \
71 ReadbackLayer.h \
72 $(NULL)
74 CPPSRCS = \
75 BasicImages.cpp \
76 BasicLayers.cpp \
77 Layers.cpp \
78 ReadbackProcessor.cpp \
79 ThebesLayerBuffer.cpp \
80 CanvasLayerOGL.cpp \
81 ColorLayerOGL.cpp \
82 ContainerLayerOGL.cpp \
83 ImageLayerOGL.cpp \
84 LayerManagerOGL.cpp \
85 ThebesLayerOGL.cpp \
86 $(NULL)
88 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
89 CMMSRCS = \
90 MacIOSurfaceImageOGL.mm \
91 $(NULL)
92 endif
94 ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
95 ifdef MOZ_ENABLE_D3D9_LAYER
96 EXPORTS += \
97 LayerManagerD3D9.h \
98 DeviceManagerD3D9.h \
99 $(NULL)
101 CPPSRCS += \
102 LayerManagerD3D9.cpp \
103 ThebesLayerD3D9.cpp \
104 ContainerLayerD3D9.cpp \
105 ImageLayerD3D9.cpp \
106 ColorLayerD3D9.cpp \
107 CanvasLayerD3D9.cpp \
108 DeviceManagerD3D9.cpp \
109 Nv3DVUtils.cpp \
110 $(NULL)
111 endif
112 ifdef MOZ_ENABLE_D3D10_LAYER
113 EXPORTS += \
114 LayerManagerD3D10.h \
115 ReadbackManagerD3D10.h \
116 $(NULL)
118 CPPSRCS += \
119 LayerManagerD3D10.cpp \
120 ThebesLayerD3D10.cpp \
121 ContainerLayerD3D10.cpp \
122 ImageLayerD3D10.cpp \
123 ColorLayerD3D10.cpp \
124 CanvasLayerD3D10.cpp \
125 ReadbackManagerD3D10.cpp \
126 $(NULL)
127 endif
128 endif
130 ifdef MOZ_IPC #{
131 EXPORTS_NAMESPACES = IPC mozilla/layers
132 EXPORTS_IPC = ShadowLayerUtils.h
133 EXPORTS_mozilla/layers =\
134 ShadowLayers.h \
135 ShadowLayersChild.h \
136 ShadowLayersParent.h \
137 $(NULL)
139 CPPSRCS += \
140 ShadowLayers.cpp \
141 ShadowLayerChild.cpp \
142 ShadowLayersChild.cpp \
143 ShadowLayerParent.cpp \
144 ShadowLayersParent.cpp \
145 $(NULL)
147 ifdef MOZ_X11 #{
148 EXPORTS_mozilla/layers += ShadowLayerUtilsX11.h
149 CPPSRCS += ShadowLayerUtilsX11.cpp
150 endif #}
152 endif #}
154 # Enable GLES2.0 under maemo
155 ifdef MOZ_X11
156 ifdef MOZ_PLATFORM_MAEMO
157 DEFINES += -DUSE_GLES2
158 endif
159 endif
161 include $(topsrcdir)/config/rules.mk
163 ifdef MOZ_IPC
164 include $(topsrcdir)/ipc/chromium/chromium-config.mk
165 endif
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