merge the formfield patch from ooo-build
[ooovba.git] / canvas / source / directx / makefile.mk
blob1a9db2ec51c0b62d65d7db98dd8f6eb79c95406b
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.9 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..$/..
34 PRJNAME=canvas
35 TARGET=directx9canvas
36 TARGET2=directx5canvas
37 TARGET3=gdipluscanvas
38 ENABLE_EXCEPTIONS=TRUE
41 # --- Settings -----------------------------------------------------------
43 .INCLUDE : settings.mk
44 DLLPRE =
46 # --- Nothing to do if we're compiling with --disable-directx -----------
47 .IF "$(ENABLE_DIRECTX)" == ""
48 @all:
49 @echo "Building without DirectX support..."
50 .ENDIF
53 # --- Common ----------------------------------------------------------
55 .IF "$(verbose)"!="" || "$(VERBOSE)"!=""
56 CDEFS+= -DVERBOSE
57 .ENDIF
59 .IF "$(dx_debug_images)"!="" || "$(DX_DEBUG_IMAGES)"!=""
60 CDEFS+= -DDX_DEBUG_IMAGES
61 .ENDIF
63 # --- This is Windows only! { ----------------------------------------------------------------
65 .IF "$(GUI)" == "WNT"
67 SHARED_SLOFILES = \
68 $(SLO)$/dx_bitmap.obj \
69 $(SLO)$/dx_bitmapcanvashelper.obj \
70 $(SLO)$/dx_canvasbitmap.obj \
71 $(SLO)$/dx_canvasfont.obj \
72 $(SLO)$/dx_canvashelper.obj \
73 $(SLO)$/dx_canvashelper_texturefill.obj \
74 $(SLO)$/dx_devicehelper.obj \
75 $(SLO)$/dx_gdiplususer.obj \
76 $(SLO)$/dx_impltools.obj \
77 $(SLO)$/dx_linepolypolygon.obj \
78 $(SLO)$/dx_textlayout.obj \
79 $(SLO)$/dx_textlayout_drawhelper.obj \
80 $(SLO)$/dx_vcltools.obj
82 DX_SLOFILES = \
83 $(SLO)$/dx_5rm.obj \
84 $(SLO)$/dx_9rm.obj \
85 $(SLO)$/dx_canvascustomsprite.obj \
86 $(SLO)$/dx_config.obj \
87 $(SLO)$/dx_spritecanvas.obj \
88 $(SLO)$/dx_spritecanvashelper.obj \
89 $(SLO)$/dx_spritedevicehelper.obj \
90 $(SLO)$/dx_spritehelper.obj \
91 $(SLO)$/dx_surfacebitmap.obj \
92 $(SLO)$/dx_surfacegraphics.obj
93 DX_SLOFILES += $(SHARED_SLOFILES)
95 GDIPLUS_SLOFILES = \
96 $(SLO)$/dx_canvas.obj
97 GDIPLUS_SLOFILES += $(SHARED_SLOFILES)
99 STDLIBS= $(CPPULIB) $(TKLIB) $(SALLIB) $(COMPHELPERLIB) $(CPPUHELPERLIB) $(BASEGFXLIB) $(CANVASTOOLSLIB) $(VCLLIB) $(TOOLSLIB) $(UNOTOOLSLIB) $(I18NISOLANGLIB)
102 ########################################################
103 # DX9
104 ########################################################
106 # Indicates the source obj files for the dx5 lib
107 LIB1TARGET= $(SLB)$/$(TARGET).lib
108 LIB1OBJFILES = $(DX_SLOFILES)
110 # Indicates the filename of the shared library.
111 SHL1TARGET=$(TARGET).uno
113 # Links import libraries.
114 SHL1STDLIBS= $(STDLIBS)
116 # Specifies an import library to create. For Win32 only.
117 SHL1IMPLIB=i$(TARGET)
119 # Specifies libraries from the same module to put into the shared library.
120 SHL1LIBS=$(SLB)$/$(TARGET).lib
122 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
124 DEF1NAME=$(SHL1TARGET)
125 DEF1EXPORTFILE=exports.dxp
127 CDEFS+=-DDIRECTX_VERSION=0x0900
129 SHL1STDLIBS += $(GDI32LIB)
130 .IF "$(COM)" == "GCC"
131 SHL1STDLIBS += $(DIRECTXSDK_LIB)/d3d9.lib
132 .ELSE
133 SHL1STDLIBS += d3d9.lib
134 .ENDIF
135 SHL1STDLIBS += $(GDIPLUSLIB)
137 .IF "$(dx_debug_images)"!="" || "$(DX_DEBUG_IMAGES)"!=""
138 SHL1STDLIBS += imdebug.lib
139 .ENDIF
142 ########################################################
143 # DX5
144 ########################################################
146 .IF "$(USE_DIRECTX5)" != ""
147 SECOND_BUILD=DX5
148 DX5_SLOFILES=$(DX_SLOFILES)
149 DX5CDEFS += -DDIRECTX_VERSION=0x0500
151 LIB2TARGET= $(SLB)$/$(TARGET2).lib
152 LIB2OBJFILES = $(REAL_DX5_SLOFILES)
154 # Indicates the filename of the shared library.
155 SHL2TARGET=$(TARGET2).uno
157 # Links import libraries.
158 SHL2STDLIBS= $(STDLIBS)
160 # Specifies an import library to create. For Win32 only.
161 SHL2IMPLIB=i$(TARGET2).lib
163 # Specifies libraries from the same module to put into the shared library.
164 SHL2LIBS=$(SLB)$/$(TARGET2).lib
165 SHL2DEF=$(MISC)$/$(SHL2TARGET).def
167 DEF2NAME=$(SHL2TARGET)
168 DEF2EXPORTFILE=exports.dxp
170 SHL2STDLIBS += $(GDI32LIB)
171 SHL2STDLIBS += $(DDRAWLIB)
172 SHL2STDLIBS += $(GDIPLUSLIB)
174 .IF "$(COM)" == "GCC"
175 SHL2STDLIBS += $(DIRECTXSDK_LIB)/d3dx.lib
176 .ELSE
177 SHL2STDLIBS += d3dx.lib
178 .ENDIF
180 .IF "$(dx_debug_images)"!="" || "$(DX_DEBUG_IMAGES)"!=""
181 SHL2STDLIBS += imdebug.lib
182 .ENDIF
183 .ENDIF # IF "$(USE_DIRECTX5)" != ""
186 ########################################################
187 # GDI+
188 ########################################################
190 LIB3TARGET= $(SLB)$/$(TARGET3).lib
191 LIB3OBJFILES = $(GDIPLUS_SLOFILES)
193 # Indicates the filename of the shared library.
194 SHL3TARGET=$(TARGET3).uno
196 # Links import libraries.
197 SHL3STDLIBS= $(CPPULIB) $(TKLIB) $(SALLIB) $(COMPHELPERLIB) $(CPPUHELPERLIB) $(BASEGFXLIB) $(CANVASTOOLSLIB) $(VCLLIB) $(TOOLSLIB) $(UNOTOOLSLIB) $(I18NISOLANGLIB)
199 # Specifies an import library to create. For Win32 only.
200 SHL3IMPLIB=i$(TARGET3).lib
202 # Specifies libraries from the same module to put into the shared library.
203 SHL3LIBS=$(SLB)$/$(TARGET3).lib
204 SHL3DEF=$(MISC)$/$(SHL3TARGET).def
206 DEF3NAME=$(SHL3TARGET)
207 DEF3EXPORTFILE=exports.dxp
209 SHL3STDLIBS += $(GDI32LIB)
210 SHL3STDLIBS += $(GDIPLUSLIB)
212 .IF "$(dx_debug_images)"!="" || "$(DX_DEBUG_IMAGES)"!=""
213 SHL3STDLIBS += imdebug.lib
214 .ENDIF
216 .ENDIF # IF "$(GUI)" == "WNT"
218 # --- This is Windows only! } ----------------------------------------------------------------
220 # ==========================================================================
222 .INCLUDE : target.mk