1*7871dc3eSAndrew Rist#************************************************************** 2*7871dc3eSAndrew Rist# 3*7871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*7871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 5*7871dc3eSAndrew Rist# distributed with this work for additional information 6*7871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*7871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 8*7871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 9*7871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10*7871dc3eSAndrew Rist# 11*7871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*7871dc3eSAndrew Rist# 13*7871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 14*7871dc3eSAndrew Rist# software distributed under the License is distributed on an 15*7871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*7871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 17*7871dc3eSAndrew Rist# specific language governing permissions and limitations 18*7871dc3eSAndrew Rist# under the License. 19*7871dc3eSAndrew Rist# 20*7871dc3eSAndrew Rist#************************************************************** 21*7871dc3eSAndrew Rist 22*7871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir$(eval $(call gb_Library_Library,vclplug_gen)) 25cdf0e10cSrcweir 26cdf0e10cSrcweir$(eval $(call gb_Library_set_include,vclplug_gen,\ 27cdf0e10cSrcweir $$(INCLUDE) \ 28cdf0e10cSrcweir -I$(SRCDIR)/vcl/inc \ 29cdf0e10cSrcweir -I$(SRCDIR)/vcl/inc/pch \ 30cdf0e10cSrcweir -I$(SRCDIR)/solenv/inc \ 31cdf0e10cSrcweir -I$(OUTDIR)/inc/offuh \ 32cdf0e10cSrcweir -I$(OUTDIR)/inc/stl \ 33cdf0e10cSrcweir -I$(OUTDIR)/inc \ 34cdf0e10cSrcweir)) 35cdf0e10cSrcweir 36cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,vclplug_gen,\ 37cdf0e10cSrcweir vcl \ 38cdf0e10cSrcweir tl \ 39cdf0e10cSrcweir utl \ 40cdf0e10cSrcweir sot \ 41cdf0e10cSrcweir ucbhelper \ 42cdf0e10cSrcweir basegfx \ 43cdf0e10cSrcweir comphelper \ 44cdf0e10cSrcweir cppuhelper \ 45cdf0e10cSrcweir icuuc \ 46cdf0e10cSrcweir icule \ 47cdf0e10cSrcweir i18nisolang1 \ 48cdf0e10cSrcweir i18npaper \ 49cdf0e10cSrcweir i18nutil \ 50cdf0e10cSrcweir jvmaccess \ 51cdf0e10cSrcweir stl \ 52cdf0e10cSrcweir cppu \ 53cdf0e10cSrcweir sal \ 54cdf0e10cSrcweir vos3 \ 55cdf0e10cSrcweir X11 \ 56cdf0e10cSrcweir Xext \ 57cdf0e10cSrcweir SM \ 58cdf0e10cSrcweir ICE \ 59cdf0e10cSrcweir $(gb_STDLIBS) \ 60cdf0e10cSrcweir)) 61cdf0e10cSrcweir 62cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,vclplug_gen,\ 63cdf0e10cSrcweir vcl/unx/generic/app/i18n_cb \ 64cdf0e10cSrcweir vcl/unx/generic/app/i18n_ic \ 65cdf0e10cSrcweir vcl/unx/generic/app/i18n_im \ 66cdf0e10cSrcweir vcl/unx/generic/app/i18n_keysym \ 67cdf0e10cSrcweir vcl/unx/generic/app/i18n_status \ 68cdf0e10cSrcweir vcl/unx/generic/app/i18n_wrp \ 69cdf0e10cSrcweir vcl/unx/generic/app/i18n_xkb \ 70cdf0e10cSrcweir vcl/unx/generic/app/keysymnames \ 71cdf0e10cSrcweir vcl/unx/generic/app/randrwrapper \ 72cdf0e10cSrcweir vcl/unx/generic/app/saldata \ 73cdf0e10cSrcweir vcl/unx/generic/app/saldisp \ 74cdf0e10cSrcweir vcl/unx/generic/app/salinst \ 75cdf0e10cSrcweir vcl/unx/generic/app/salsys \ 76cdf0e10cSrcweir vcl/unx/generic/app/saltimer \ 77cdf0e10cSrcweir vcl/unx/generic/app/sm \ 78cdf0e10cSrcweir vcl/unx/generic/app/soicon \ 79cdf0e10cSrcweir vcl/unx/generic/app/wmadaptor \ 80cdf0e10cSrcweir vcl/unx/generic/dtrans/bmp \ 81cdf0e10cSrcweir vcl/unx/generic/dtrans/config \ 82cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_clipboard \ 83cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_dndcontext \ 84cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_droptarget \ 85cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_selection \ 86cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_service \ 87cdf0e10cSrcweir vcl/unx/generic/dtrans/X11_transferable \ 88cdf0e10cSrcweir vcl/unx/generic/gdi/cdeint \ 89cdf0e10cSrcweir vcl/unx/generic/gdi/dtint \ 90cdf0e10cSrcweir vcl/unx/generic/gdi/gcach_xpeer \ 91cdf0e10cSrcweir vcl/unx/generic/gdi/pspgraphics \ 92cdf0e10cSrcweir vcl/unx/generic/gdi/salbmp \ 93cdf0e10cSrcweir vcl/unx/generic/gdi/salcvt \ 94cdf0e10cSrcweir vcl/unx/generic/gdi/salgdi2 \ 95cdf0e10cSrcweir vcl/unx/generic/gdi/salgdi3 \ 96cdf0e10cSrcweir vcl/unx/generic/gdi/salgdi \ 97cdf0e10cSrcweir vcl/unx/generic/gdi/salprnpsp \ 98cdf0e10cSrcweir vcl/unx/generic/gdi/salvd \ 99cdf0e10cSrcweir vcl/unx/generic/gdi/xrender_peer \ 100cdf0e10cSrcweir vcl/unx/generic/printergfx/bitmap_gfx \ 101cdf0e10cSrcweir vcl/unx/generic/printergfx/common_gfx \ 102cdf0e10cSrcweir vcl/unx/generic/printergfx/glyphset \ 103cdf0e10cSrcweir vcl/unx/generic/printergfx/printerjob \ 104cdf0e10cSrcweir vcl/unx/generic/printergfx/psputil \ 105cdf0e10cSrcweir vcl/unx/generic/printergfx/text_gfx \ 106cdf0e10cSrcweir vcl/unx/generic/window/FWS \ 107cdf0e10cSrcweir vcl/unx/generic/window/salframe \ 108cdf0e10cSrcweir vcl/unx/generic/window/salobj \ 109cdf0e10cSrcweir)) 110cdf0e10cSrcweir 111cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 112cdf0e10cSrcweir $$(DEFS) \ 113cdf0e10cSrcweir -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \ 114cdf0e10cSrcweir -DVCLPLUG_GEN_IMPLEMENTATION \ 115cdf0e10cSrcweir)) 116cdf0e10cSrcweir 117cdf0e10cSrcweir 118cdf0e10cSrcweir## handle RandR 119cdf0e10cSrcweirifneq ($(ENABLE_RANDR),) 120cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 121cdf0e10cSrcweir $$(DEFS) \ 122cdf0e10cSrcweir -DUSE_RANDR \ 123cdf0e10cSrcweir)) 124cdf0e10cSrcweirifeq ($(XRANDR_DLOPEN),FALSE) 125cdf0e10cSrcweir$(eval $(call gb_Library_set_cxxflags,vclplug_gen,\ 126cdf0e10cSrcweir $$(CXXFLAGS) \ 127cdf0e10cSrcweir $$(XRANDR_CFLAGS) \ 128cdf0e10cSrcweir)) 129cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 130cdf0e10cSrcweir $$(LDFLAGS) \ 131cdf0e10cSrcweir $(XRANDR_LIBS) \ 132cdf0e10cSrcweir)) 133cdf0e10cSrcweirelse 134cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 135cdf0e10cSrcweir $$(DEFS) \ 136cdf0e10cSrcweir -DXRANDR_DLOPEN \ 137cdf0e10cSrcweir)) 138cdf0e10cSrcweirendif 139cdf0e10cSrcweirendif 140cdf0e10cSrcweir 141cdf0e10cSrcweir## handle Xinerama 142cdf0e10cSrcweirifneq ($(USE_XINERAMA),NO) 143cdf0e10cSrcweirifneq ($(OS),SOLARIS) 144cdf0e10cSrcweir# not Solaris 145cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 146cdf0e10cSrcweir $$(DEFS) \ 147cdf0e10cSrcweir -DUSE_XINERAMA_XORG \ 148cdf0e10cSrcweir)) 149cdf0e10cSrcweirifeq ($(XINERAMA_LINK),dynamic) 150cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 151cdf0e10cSrcweir $$(LDFLAGS) \ 152cdf0e10cSrcweir -lXinerama \ 153cdf0e10cSrcweir)) 154cdf0e10cSrcweirelse 155cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 156cdf0e10cSrcweir $$(LDFLAGS) \ 157cdf0e10cSrcweir -Wl,-Bstatic -lXinerama -Wl,-Bdynamic \ 158cdf0e10cSrcweir)) 159cdf0e10cSrcweirendif 160cdf0e10cSrcweirelse 161cdf0e10cSrcweir# Solaris 162cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 163cdf0e10cSrcweir $$(DEFS) \ 164cdf0e10cSrcweir -DUSE_XINERAMA_XSUN \ 165cdf0e10cSrcweir)) 166cdf0e10cSrcweirifeq ($(USE_XINERAMA_VERSION),Xorg) 167cdf0e10cSrcweir# Solaris, Xorg 168cdf0e10cSrcweirifeq ($(XINERAMA_LINK),dynamic) 169cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 170cdf0e10cSrcweir $$(LDFLAGS) \ 171cdf0e10cSrcweir -lXinerama \ 172cdf0e10cSrcweir)) 173cdf0e10cSrcweirelse 174cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 175cdf0e10cSrcweir $$(LDFLAGS) \ 176cdf0e10cSrcweir -Wl,-Bstatic -lXinerama -Wl,-Bdynamic \ 177cdf0e10cSrcweir)) 178cdf0e10cSrcweirendif 179cdf0e10cSrcweirendif 180cdf0e10cSrcweirendif 181cdf0e10cSrcweirendif 182cdf0e10cSrcweir 183cdf0e10cSrcweir## handle Render linking 184cdf0e10cSrcweirifeq ($(XRENDER_LINK),YES) 185cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 186cdf0e10cSrcweir $$(DEFS) \ 187cdf0e10cSrcweir -DXRENDER_LINK \ 188cdf0e10cSrcweir)) 189cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 190cdf0e10cSrcweir $$(LDFLAGS) \ 191cdf0e10cSrcweir $(shell pkg-config --libs xrender) \ 192cdf0e10cSrcweir)) 193cdf0e10cSrcweirendif 194cdf0e10cSrcweir 195cdf0e10cSrcweirifeq ($(OS),LINUX) 196cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,vclplug_gen,\ 197cdf0e10cSrcweir dl \ 198cdf0e10cSrcweir m \ 199cdf0e10cSrcweir pthread \ 200cdf0e10cSrcweir)) 201cdf0e10cSrcweirendif 202cdf0e10cSrcweir# vim: set noet sw=4 ts=4: 203