1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ=..$/.. 29*cdf0e10cSrcweir 30*cdf0e10cSrcweirPRJNAME=canvas 31*cdf0e10cSrcweirTARGET=cairocanvas 32*cdf0e10cSrcweirTARGETTYPE=GUI 33*cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir# --- Settings ----------------------------------------------------------- 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir.INCLUDE : settings.mk 38*cdf0e10cSrcweirDLLPRE = 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir# --- Nothing to do if we're compiling with --disable-cairo ----------- 41*cdf0e10cSrcweir.IF "$(ENABLE_CAIRO)" != "TRUE" 42*cdf0e10cSrcweir@all: 43*cdf0e10cSrcweir @echo "Building without cairo support..." 44*cdf0e10cSrcweir.ELSE 45*cdf0e10cSrcweir# --- X11 Mac build currently doesn't work with cairo ----------- 46*cdf0e10cSrcweir.IF "$(OS)" == "MACOSX" && "$(GUIBASE)" == "unx" 47*cdf0e10cSrcweir@all: 48*cdf0e10cSrcweir @echo "Cannot build cairocanvas with X11..." 49*cdf0e10cSrcweir.ENDIF 50*cdf0e10cSrcweir.ENDIF 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir# --- Common ---------------------------------------------------------- 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir.IF "$(SYSTEM_CAIRO)" == "YES" 56*cdf0e10cSrcweirCFLAGS+=$(CAIRO_CFLAGS) 57*cdf0e10cSrcweir.ELSE 58*cdf0e10cSrcweirCFLAGS+=-I$(SOLARINCDIR)/cairo 59*cdf0e10cSrcweir.ENDIF 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir.IF "$(verbose)"!="" || "$(VERBOSE)"!="" 62*cdf0e10cSrcweirCDEFS+= -DVERBOSE 63*cdf0e10cSrcweir.ENDIF 64*cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 65*cdf0e10cSrcweirSLOFILES = $(SLO)$/cairo_cachedbitmap.obj \ 66*cdf0e10cSrcweir $(SLO)$/cairo_cairo.obj \ 67*cdf0e10cSrcweir $(SLO)$/cairo_canvas.obj \ 68*cdf0e10cSrcweir $(SLO)$/cairo_canvasbitmap.obj \ 69*cdf0e10cSrcweir $(SLO)$/cairo_canvascustomsprite.obj \ 70*cdf0e10cSrcweir $(SLO)$/cairo_canvasfont.obj \ 71*cdf0e10cSrcweir $(SLO)$/cairo_canvashelper.obj \ 72*cdf0e10cSrcweir $(SLO)$/cairo_canvashelper_text.obj \ 73*cdf0e10cSrcweir $(SLO)$/cairo_devicehelper.obj \ 74*cdf0e10cSrcweir $(SLO)$/cairo_services.obj \ 75*cdf0e10cSrcweir $(SLO)$/cairo_spritecanvas.obj \ 76*cdf0e10cSrcweir $(SLO)$/cairo_spritecanvashelper.obj \ 77*cdf0e10cSrcweir $(SLO)$/cairo_spritedevicehelper.obj \ 78*cdf0e10cSrcweir $(SLO)$/cairo_spritehelper.obj \ 79*cdf0e10cSrcweir $(SLO)$/cairo_textlayout.obj 80*cdf0e10cSrcweir 81*cdf0e10cSrcweirSHL1TARGET=$(TARGET).uno 82*cdf0e10cSrcweir 83*cdf0e10cSrcweirSHL1STDLIBS= $(CPPULIB) $(TKLIB) $(SALLIB) $(VCLLIB) $(COMPHELPERLIB) $(CPPUHELPERLIB) $(BASEGFXLIB) $(CANVASTOOLSLIB) $(TOOLSLIB) $(I18NISOLANGLIB) 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir.IF "$(SYSTEM_CAIRO)" == "YES" 88*cdf0e10cSrcweirSHL1STDLIBS+= $(CAIRO_LIBS) 89*cdf0e10cSrcweir.ELSE 90*cdf0e10cSrcweirSHL1STDLIBS+= -lcairo -lpixman-1 91*cdf0e10cSrcweir.ENDIF 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir.IF "$(GUIBASE)"=="aqua" 94*cdf0e10cSrcweir# native Mac OS X (Quartz) 95*cdf0e10cSrcweirSLOFILES+= $(SLO)$/cairo_quartz_cairo.obj 96*cdf0e10cSrcweirCFLAGSCXX+=$(OBJCXXFLAGS) 97*cdf0e10cSrcweir.ELSE # "$(GUIBASE)"=="aqua" 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir# Xlib 100*cdf0e10cSrcweirSLOFILES+= $(SLO)$/cairo_xlib_cairo.obj 101*cdf0e10cSrcweirSHL1STDLIBS+= -lfontconfig -lX11 -lXrender $(FREETYPE_LIBS) 102*cdf0e10cSrcweirCFLAGS+=$(FREETYPE_CFLAGS) 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir.ENDIF # "$(GUIBASE)"=="aqua" 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir.ELSE # "$(GUI)"=="UNX" 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 109*cdf0e10cSrcweirSLOFILES+= $(SLO)$/cairo_win32_cairo.obj 110*cdf0e10cSrcweir.IF "$(COM)"=="GCC" 111*cdf0e10cSrcweirSHL1STDLIBS+= -lcairo 112*cdf0e10cSrcweir.ELSE 113*cdf0e10cSrcweirSHL1STDLIBS+= cairo.lib 114*cdf0e10cSrcweir.ENDIF 115*cdf0e10cSrcweirSHL1STDLIBS+= $(GDI32LIB) $(MSIMG32LIB) 116*cdf0e10cSrcweir.ENDIF 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir.ENDIF # "$(GUI)"=="UNX" 119*cdf0e10cSrcweir 120*cdf0e10cSrcweirSHL1IMPLIB=i$(TARGET) 121*cdf0e10cSrcweirSHL1LIBS=$(SLB)$/$(TARGET).lib 122*cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def 123*cdf0e10cSrcweir 124*cdf0e10cSrcweirSHL1VERSIONMAP=$(SOLARENV)/src/component.map 125*cdf0e10cSrcweir 126*cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET) 127*cdf0e10cSrcweirDEF1EXPORTFILE=exports.dxp 128*cdf0e10cSrcweir 129*cdf0e10cSrcweir.ENDIF 130*cdf0e10cSrcweir# ========================================================================== 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir.INCLUDE : target.mk 133*cdf0e10cSrcweir 134*cdf0e10cSrcweirALLTAR : $(MISC)/cairocanvas.component 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir$(MISC)/cairocanvas.component .ERRREMOVE : \ 137*cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt cairocanvas.component 138*cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 139*cdf0e10cSrcweir '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 140*cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt cairocanvas.component 141