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*cdf0e10cSrcweir$(eval $(call gb_Library_Library,vclplug_gen)) 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir$(eval $(call gb_Library_set_include,vclplug_gen,\ 31*cdf0e10cSrcweir $$(INCLUDE) \ 32*cdf0e10cSrcweir -I$(SRCDIR)/vcl/inc \ 33*cdf0e10cSrcweir -I$(SRCDIR)/vcl/inc/pch \ 34*cdf0e10cSrcweir -I$(SRCDIR)/solenv/inc \ 35*cdf0e10cSrcweir -I$(OUTDIR)/inc/offuh \ 36*cdf0e10cSrcweir -I$(OUTDIR)/inc/stl \ 37*cdf0e10cSrcweir -I$(OUTDIR)/inc \ 38*cdf0e10cSrcweir)) 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,vclplug_gen,\ 41*cdf0e10cSrcweir vcl \ 42*cdf0e10cSrcweir tl \ 43*cdf0e10cSrcweir utl \ 44*cdf0e10cSrcweir sot \ 45*cdf0e10cSrcweir ucbhelper \ 46*cdf0e10cSrcweir basegfx \ 47*cdf0e10cSrcweir comphelper \ 48*cdf0e10cSrcweir cppuhelper \ 49*cdf0e10cSrcweir icuuc \ 50*cdf0e10cSrcweir icule \ 51*cdf0e10cSrcweir i18nisolang1 \ 52*cdf0e10cSrcweir i18npaper \ 53*cdf0e10cSrcweir i18nutil \ 54*cdf0e10cSrcweir jvmaccess \ 55*cdf0e10cSrcweir stl \ 56*cdf0e10cSrcweir cppu \ 57*cdf0e10cSrcweir sal \ 58*cdf0e10cSrcweir vos3 \ 59*cdf0e10cSrcweir X11 \ 60*cdf0e10cSrcweir Xext \ 61*cdf0e10cSrcweir SM \ 62*cdf0e10cSrcweir ICE \ 63*cdf0e10cSrcweir $(gb_STDLIBS) \ 64*cdf0e10cSrcweir)) 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,vclplug_gen,\ 67*cdf0e10cSrcweir vcl/unx/generic/app/i18n_cb \ 68*cdf0e10cSrcweir vcl/unx/generic/app/i18n_ic \ 69*cdf0e10cSrcweir vcl/unx/generic/app/i18n_im \ 70*cdf0e10cSrcweir vcl/unx/generic/app/i18n_keysym \ 71*cdf0e10cSrcweir vcl/unx/generic/app/i18n_status \ 72*cdf0e10cSrcweir vcl/unx/generic/app/i18n_wrp \ 73*cdf0e10cSrcweir vcl/unx/generic/app/i18n_xkb \ 74*cdf0e10cSrcweir vcl/unx/generic/app/keysymnames \ 75*cdf0e10cSrcweir vcl/unx/generic/app/randrwrapper \ 76*cdf0e10cSrcweir vcl/unx/generic/app/saldata \ 77*cdf0e10cSrcweir vcl/unx/generic/app/saldisp \ 78*cdf0e10cSrcweir vcl/unx/generic/app/salinst \ 79*cdf0e10cSrcweir vcl/unx/generic/app/salsys \ 80*cdf0e10cSrcweir vcl/unx/generic/app/saltimer \ 81*cdf0e10cSrcweir vcl/unx/generic/app/sm \ 82*cdf0e10cSrcweir vcl/unx/generic/app/soicon \ 83*cdf0e10cSrcweir vcl/unx/generic/app/wmadaptor \ 84*cdf0e10cSrcweir vcl/unx/generic/dtrans/bmp \ 85*cdf0e10cSrcweir vcl/unx/generic/dtrans/config \ 86*cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_clipboard \ 87*cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_dndcontext \ 88*cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_droptarget \ 89*cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_selection \ 90*cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_service \ 91*cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_transferable \ 92*cdf0e10cSrcweir vcl/unx/generic/gdi/cdeint \ 93*cdf0e10cSrcweir vcl/unx/generic/gdi/dtint \ 94*cdf0e10cSrcweir vcl/unx/generic/gdi/gcach_xpeer \ 95*cdf0e10cSrcweir vcl/unx/generic/gdi/pspgraphics \ 96*cdf0e10cSrcweir vcl/unx/generic/gdi/salbmp \ 97*cdf0e10cSrcweir vcl/unx/generic/gdi/salcvt \ 98*cdf0e10cSrcweir vcl/unx/generic/gdi/salgdi2 \ 99*cdf0e10cSrcweir vcl/unx/generic/gdi/salgdi3 \ 100*cdf0e10cSrcweir vcl/unx/generic/gdi/salgdi \ 101*cdf0e10cSrcweir vcl/unx/generic/gdi/salprnpsp \ 102*cdf0e10cSrcweir vcl/unx/generic/gdi/salvd \ 103*cdf0e10cSrcweir vcl/unx/generic/gdi/xrender_peer \ 104*cdf0e10cSrcweir vcl/unx/generic/printergfx/bitmap_gfx \ 105*cdf0e10cSrcweir vcl/unx/generic/printergfx/common_gfx \ 106*cdf0e10cSrcweir vcl/unx/generic/printergfx/glyphset \ 107*cdf0e10cSrcweir vcl/unx/generic/printergfx/printerjob \ 108*cdf0e10cSrcweir vcl/unx/generic/printergfx/psputil \ 109*cdf0e10cSrcweir vcl/unx/generic/printergfx/text_gfx \ 110*cdf0e10cSrcweir vcl/unx/generic/window/FWS \ 111*cdf0e10cSrcweir vcl/unx/generic/window/salframe \ 112*cdf0e10cSrcweir vcl/unx/generic/window/salobj \ 113*cdf0e10cSrcweir)) 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 116*cdf0e10cSrcweir $$(DEFS) \ 117*cdf0e10cSrcweir -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \ 118*cdf0e10cSrcweir -DVCLPLUG_GEN_IMPLEMENTATION \ 119*cdf0e10cSrcweir)) 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir## handle RandR 123*cdf0e10cSrcweirifneq ($(ENABLE_RANDR),) 124*cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 125*cdf0e10cSrcweir $$(DEFS) \ 126*cdf0e10cSrcweir -DUSE_RANDR \ 127*cdf0e10cSrcweir)) 128*cdf0e10cSrcweirifeq ($(XRANDR_DLOPEN),FALSE) 129*cdf0e10cSrcweir$(eval $(call gb_Library_set_cxxflags,vclplug_gen,\ 130*cdf0e10cSrcweir $$(CXXFLAGS) \ 131*cdf0e10cSrcweir $$(XRANDR_CFLAGS) \ 132*cdf0e10cSrcweir)) 133*cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 134*cdf0e10cSrcweir $$(LDFLAGS) \ 135*cdf0e10cSrcweir $(XRANDR_LIBS) \ 136*cdf0e10cSrcweir)) 137*cdf0e10cSrcweirelse 138*cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 139*cdf0e10cSrcweir $$(DEFS) \ 140*cdf0e10cSrcweir -DXRANDR_DLOPEN \ 141*cdf0e10cSrcweir)) 142*cdf0e10cSrcweirendif 143*cdf0e10cSrcweirendif 144*cdf0e10cSrcweir 145*cdf0e10cSrcweir## handle Xinerama 146*cdf0e10cSrcweirifneq ($(USE_XINERAMA),NO) 147*cdf0e10cSrcweirifneq ($(OS),SOLARIS) 148*cdf0e10cSrcweir# not Solaris 149*cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 150*cdf0e10cSrcweir $$(DEFS) \ 151*cdf0e10cSrcweir -DUSE_XINERAMA_XORG \ 152*cdf0e10cSrcweir)) 153*cdf0e10cSrcweirifeq ($(XINERAMA_LINK),dynamic) 154*cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 155*cdf0e10cSrcweir $$(LDFLAGS) \ 156*cdf0e10cSrcweir -lXinerama \ 157*cdf0e10cSrcweir)) 158*cdf0e10cSrcweirelse 159*cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 160*cdf0e10cSrcweir $$(LDFLAGS) \ 161*cdf0e10cSrcweir -Wl,-Bstatic -lXinerama -Wl,-Bdynamic \ 162*cdf0e10cSrcweir)) 163*cdf0e10cSrcweirendif 164*cdf0e10cSrcweirelse 165*cdf0e10cSrcweir# Solaris 166*cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 167*cdf0e10cSrcweir $$(DEFS) \ 168*cdf0e10cSrcweir -DUSE_XINERAMA_XSUN \ 169*cdf0e10cSrcweir)) 170*cdf0e10cSrcweirifeq ($(USE_XINERAMA_VERSION),Xorg) 171*cdf0e10cSrcweir# Solaris, Xorg 172*cdf0e10cSrcweirifeq ($(XINERAMA_LINK),dynamic) 173*cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 174*cdf0e10cSrcweir $$(LDFLAGS) \ 175*cdf0e10cSrcweir -lXinerama \ 176*cdf0e10cSrcweir)) 177*cdf0e10cSrcweirelse 178*cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 179*cdf0e10cSrcweir $$(LDFLAGS) \ 180*cdf0e10cSrcweir -Wl,-Bstatic -lXinerama -Wl,-Bdynamic \ 181*cdf0e10cSrcweir)) 182*cdf0e10cSrcweirendif 183*cdf0e10cSrcweirendif 184*cdf0e10cSrcweirendif 185*cdf0e10cSrcweirendif 186*cdf0e10cSrcweir 187*cdf0e10cSrcweir## handle Render linking 188*cdf0e10cSrcweirifeq ($(XRENDER_LINK),YES) 189*cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 190*cdf0e10cSrcweir $$(DEFS) \ 191*cdf0e10cSrcweir -DXRENDER_LINK \ 192*cdf0e10cSrcweir)) 193*cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 194*cdf0e10cSrcweir $$(LDFLAGS) \ 195*cdf0e10cSrcweir $(shell pkg-config --libs xrender) \ 196*cdf0e10cSrcweir)) 197*cdf0e10cSrcweirendif 198*cdf0e10cSrcweir 199*cdf0e10cSrcweirifeq ($(OS),LINUX) 200*cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,vclplug_gen,\ 201*cdf0e10cSrcweir dl \ 202*cdf0e10cSrcweir m \ 203*cdf0e10cSrcweir pthread \ 204*cdf0e10cSrcweir)) 205*cdf0e10cSrcweirendif 206*cdf0e10cSrcweir# vim: set noet sw=4 ts=4: 207