Bug 606160 - CSS updates for fx button after caption button padding changes. r=dao...
[mozilla-central.git] / gfx / layers / Makefile.in
blob09dca58a1ff0f5ab15a9e3122fb94ca226be2e44
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 $(NULL)
73 CPPSRCS = \
74 Layers.cpp \
75 BasicImages.cpp \
76 BasicLayers.cpp \
77 ThebesLayerBuffer.cpp \
78 CanvasLayerOGL.cpp \
79 ColorLayerOGL.cpp \
80 ContainerLayerOGL.cpp \
81 ImageLayerOGL.cpp \
82 LayerManagerOGL.cpp \
83 ThebesLayerOGL.cpp \
84 $(NULL)
86 ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
87 ifdef MOZ_ENABLE_D3D9_LAYER
88 EXPORTS += \
89 LayerManagerD3D9.h \
90 DeviceManagerD3D9.h \
91 $(NULL)
93 CPPSRCS += \
94 LayerManagerD3D9.cpp \
95 ThebesLayerD3D9.cpp \
96 ContainerLayerD3D9.cpp \
97 ImageLayerD3D9.cpp \
98 ColorLayerD3D9.cpp \
99 CanvasLayerD3D9.cpp \
100 DeviceManagerD3D9.cpp \
101 Nv3DVUtils.cpp \
102 $(NULL)
103 endif
104 ifdef MOZ_ENABLE_D3D10_LAYER
105 EXPORTS += \
106 LayerManagerD3D10.h \
107 $(NULL)
109 CPPSRCS += \
110 LayerManagerD3D10.cpp \
111 ThebesLayerD3D10.cpp \
112 ContainerLayerD3D10.cpp \
113 ImageLayerD3D10.cpp \
114 ColorLayerD3D10.cpp \
115 CanvasLayerD3D10.cpp \
116 $(NULL)
117 endif
118 endif
120 ifdef MOZ_IPC #{
121 EXPORTS_NAMESPACES = IPC mozilla/layers
122 EXPORTS_IPC = ShadowLayerUtils.h
123 EXPORTS_mozilla/layers =\
124 ShadowLayers.h \
125 ShadowLayersChild.h \
126 ShadowLayersParent.h \
127 $(NULL)
129 CPPSRCS += \
130 ShadowLayers.cpp \
131 ShadowLayerChild.cpp \
132 ShadowLayersChild.cpp \
133 ShadowLayerParent.cpp \
134 ShadowLayersParent.cpp \
135 $(NULL)
137 ifdef MOZ_X11 #{
138 EXPORTS_mozilla/layers += ShadowLayerUtilsX11.h
139 CPPSRCS += ShadowLayerUtilsX11.cpp
140 endif #}
142 endif #}
144 # Enable GLES2.0 under maemo
145 ifdef MOZ_X11
146 ifdef MOZ_PLATFORM_MAEMO
147 DEFINES += -DUSE_GLES2
148 endif
149 endif
151 include $(topsrcdir)/config/rules.mk
153 ifdef MOZ_IPC
154 include $(topsrcdir)/ipc/chromium/chromium-config.mk
155 endif
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