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 #*************************************************************************
37 ENABLE_EXCEPTIONS
=TRUE
39 # --- Settings -----------------------------------------------------------
41 .INCLUDE
: settings.mk
44 # --- Nothing to do if we're compiling with --disable-cairo -----------
45 .IF
"$(ENABLE_CAIRO)" != "TRUE"
47 @echo
"Building without cairo support..."
49 # --- X11 Mac build currently doesn't work with cairo -----------
50 .IF
"$(OS)" == "MACOSX" && "$(GUIBASE)" == "unx"
52 @echo
"Cannot build cairocanvas with X11..."
56 # --- Common ----------------------------------------------------------
59 .IF
"$(SYSTEM_CAIRO)" == "YES"
60 CFLAGS
+=$(CAIRO_CFLAGS
)
62 CFLAGS
+=-I
$(SOLARINCDIR
)/cairo
65 .IF
"$(verbose)"!="" ||
"$(VERBOSE)"!=""
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
)
91 .IF
"$(SYSTEM_CAIRO)" == "YES"
92 SHL1STDLIBS
+= $(CAIRO_LIBS
)
97 .IF
"$(GUIBASE)"=="aqua"
98 # native Mac OS X (Quartz)
99 SLOFILES
+= $(SLO
)$/cairo_quartz_cairo.obj
100 OBJCXXFLAGS
=-x objective-c
++ -fobjc-exceptions
101 CFLAGSCXX
+=$(OBJCXXFLAGS
)
102 .ELSE
# "$(GUIBASE)"=="aqua"
105 SLOFILES
+= $(SLO
)$/cairo_xlib_cairo.obj
106 SHL1STDLIBS
+= -lfontconfig
-lX11
-lXrender
-lpixman-1
$(FREETYPE_LIBS
)
107 CFLAGS
+=$(FREETYPE_CFLAGS
)
109 .ENDIF
# "$(GUIBASE)"=="aqua"
111 .ELSE
# "$(GUI)"=="UNX"
114 SLOFILES
+= $(SLO
)$/cairo_win32_cairo.obj
116 SHL1STDLIBS
+= -lcairo
118 SHL1STDLIBS
+= cairo.lib
120 SHL1STDLIBS
+= $(GDI32LIB
) $(MSIMG32LIB
)
123 .ENDIF
# "$(GUI)"=="UNX"
125 SHL1IMPLIB
=i
$(TARGET
)
126 SHL1LIBS
=$(SLB
)$/$(TARGET
).lib
127 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
129 SHL1VERSIONMAP
=exports.map
131 DEF1NAME
=$(SHL1TARGET
)
132 DEF1EXPORTFILE
=exports.dxp
135 # ==========================================================================