merge the formfield patch from ooo-build
[ooovba.git] / canvas / source / cairo / makefile.mk
blob95ad047ea43411e808a8fd9bf7161508fd16fa1a
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.8 $
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=cairocanvas
36 TARGETTYPE=GUI
37 ENABLE_EXCEPTIONS=TRUE
39 # --- Settings -----------------------------------------------------------
41 .INCLUDE : settings.mk
42 DLLPRE =
44 # --- Nothing to do if we're compiling with --disable-cairo -----------
45 .IF "$(ENABLE_CAIRO)" != "TRUE"
46 @all:
47 @echo "Building without cairo support..."
48 .ELSE
49 # --- X11 Mac build currently doesn't work with cairo -----------
50 .IF "$(OS)" == "MACOSX" && "$(GUIBASE)" == "unx"
51 @all:
52 @echo "Cannot build cairocanvas with X11..."
53 .ENDIF
54 .ENDIF
56 # --- Common ----------------------------------------------------------
59 .IF "$(SYSTEM_CAIRO)" == "YES"
60 CFLAGS+=$(CAIRO_CFLAGS)
61 .ELSE
62 CFLAGS+=-I$(SOLARINCDIR)/cairo
63 .ENDIF
65 .IF "$(verbose)"!="" || "$(VERBOSE)"!=""
66 CDEFS+= -DVERBOSE
67 .ENDIF
68 .IF "$(L10N_framework)"==""
69 SLOFILES = $(SLO)$/cairo_cachedbitmap.obj \
70 $(SLO)$/cairo_cairo.obj \
71 $(SLO)$/cairo_canvas.obj \
72 $(SLO)$/cairo_canvasbitmap.obj \
73 $(SLO)$/cairo_canvascustomsprite.obj \
74 $(SLO)$/cairo_canvasfont.obj \
75 $(SLO)$/cairo_canvashelper.obj \
76 $(SLO)$/cairo_canvashelper_text.obj \
77 $(SLO)$/cairo_devicehelper.obj \
78 $(SLO)$/cairo_services.obj \
79 $(SLO)$/cairo_spritecanvas.obj \
80 $(SLO)$/cairo_spritecanvashelper.obj \
81 $(SLO)$/cairo_spritedevicehelper.obj \
82 $(SLO)$/cairo_spritehelper.obj \
83 $(SLO)$/cairo_textlayout.obj
85 SHL1TARGET=$(TARGET).uno
87 SHL1STDLIBS= $(CPPULIB) $(TKLIB) $(SALLIB) $(VCLLIB) $(COMPHELPERLIB) $(CPPUHELPERLIB) $(BASEGFXLIB) $(CANVASTOOLSLIB) $(TOOLSLIB) $(I18NISOLANGLIB)
89 .IF "$(GUI)"=="UNX"
91 .IF "$(SYSTEM_CAIRO)" == "YES"
92 SHL1STDLIBS+= $(CAIRO_LIBS)
93 .ELSE
94 SHL1STDLIBS+= -lcairo -lpixman-1
95 .ENDIF
97 .IF "$(GUIBASE)"=="aqua"
98 # native Mac OS X (Quartz)
99 SLOFILES+= $(SLO)$/cairo_quartz_cairo.obj
100 CFLAGSCXX+=$(OBJCXXFLAGS)
101 .ELSE # "$(GUIBASE)"=="aqua"
103 # Xlib
104 SLOFILES+= $(SLO)$/cairo_xlib_cairo.obj
105 SHL1STDLIBS+= -lfontconfig -lX11 -lXrender $(FREETYPE_LIBS)
106 CFLAGS+=$(FREETYPE_CFLAGS)
108 .ENDIF # "$(GUIBASE)"=="aqua"
110 .ELSE # "$(GUI)"=="UNX"
112 .IF "$(GUI)"=="WNT"
113 SLOFILES+= $(SLO)$/cairo_win32_cairo.obj
114 .IF "$(COM)"=="GCC"
115 SHL1STDLIBS+= -lcairo
116 .ELSE
117 SHL1STDLIBS+= cairo.lib
118 .ENDIF
119 SHL1STDLIBS+= $(GDI32LIB) $(MSIMG32LIB)
120 .ENDIF
122 .ENDIF # "$(GUI)"=="UNX"
124 SHL1IMPLIB=i$(TARGET)
125 SHL1LIBS=$(SLB)$/$(TARGET).lib
126 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
128 SHL1VERSIONMAP=exports.map
130 DEF1NAME=$(SHL1TARGET)
131 DEF1EXPORTFILE=exports.dxp
133 .ENDIF
134 # ==========================================================================
136 .INCLUDE : target.mk