1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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 #*************************************************************************
36 TARGET2
=directx5canvas
38 ENABLE_EXCEPTIONS
=TRUE
41 # --- Settings -----------------------------------------------------------
43 .INCLUDE
: settings.mk
46 # --- Nothing to do if we're compiling with --disable-directx -----------
47 .IF
"$(ENABLE_DIRECTX)" == ""
49 @echo
"Building without DirectX support..."
53 # --- Common ----------------------------------------------------------
55 .IF
"$(verbose)"!="" ||
"$(VERBOSE)"!=""
59 .IF
"$(dx_debug_images)"!="" ||
"$(DX_DEBUG_IMAGES)"!=""
60 CDEFS
+= -DDX_DEBUG_IMAGES
63 # --- This is Windows only! { ----------------------------------------------------------------
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
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
)
97 GDIPLUS_SLOFILES
+= $(SHARED_SLOFILES
)
99 STDLIBS
= $(CPPULIB
) $(TKLIB
) $(SALLIB
) $(COMPHELPERLIB
) $(CPPUHELPERLIB
) $(BASEGFXLIB
) $(CANVASTOOLSLIB
) $(VCLLIB
) $(TOOLSLIB
) $(UNOTOOLSLIB
) $(I18NISOLANGLIB
)
102 ########################################################
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
133 SHL1STDLIBS
+= d3d9.lib
135 SHL1STDLIBS
+= $(GDIPLUSLIB
)
137 .IF
"$(dx_debug_images)"!="" ||
"$(DX_DEBUG_IMAGES)"!=""
138 SHL1STDLIBS
+= imdebug.lib
142 ########################################################
144 ########################################################
146 .IF
"$(USE_DIRECTX5)" != ""
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
177 SHL2STDLIBS
+= d3dx.lib
180 .IF
"$(dx_debug_images)"!="" ||
"$(DX_DEBUG_IMAGES)"!=""
181 SHL2STDLIBS
+= imdebug.lib
183 .ENDIF
# IF "$(USE_DIRECTX5)" != ""
186 ########################################################
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
216 .ENDIF
# IF "$(GUI)" == "WNT"
218 # --- This is Windows only! } ----------------------------------------------------------------
220 # ==========================================================================