17871dc3eSAndrew Rist#************************************************************** 27871dc3eSAndrew Rist# 37871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 47871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 57871dc3eSAndrew Rist# distributed with this work for additional information 67871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 77871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 87871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 97871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 107871dc3eSAndrew Rist# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 127871dc3eSAndrew Rist# 137871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 147871dc3eSAndrew Rist# software distributed under the License is distributed on an 157871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 167871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 177871dc3eSAndrew Rist# specific language governing permissions and limitations 187871dc3eSAndrew Rist# under the License. 197871dc3eSAndrew Rist# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 227871dc3eSAndrew 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)) 128cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 129cdf0e10cSrcweir $$(LDFLAGS) \ 130cdf0e10cSrcweir $(XRANDR_LIBS) \ 131cdf0e10cSrcweir)) 132cdf0e10cSrcweirelse 133cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 134cdf0e10cSrcweir $$(DEFS) \ 135cdf0e10cSrcweir -DXRANDR_DLOPEN \ 136cdf0e10cSrcweir)) 137cdf0e10cSrcweirendif 138cdf0e10cSrcweirendif 139cdf0e10cSrcweir 140cdf0e10cSrcweir## handle Xinerama 141cdf0e10cSrcweirifneq ($(USE_XINERAMA),NO) 142cdf0e10cSrcweirifneq ($(OS),SOLARIS) 143cdf0e10cSrcweir# not Solaris 144cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 145cdf0e10cSrcweir $$(DEFS) \ 146ca963dc9SAndre Fischer -DUSE_XINERAMA \ 147cdf0e10cSrcweir -DUSE_XINERAMA_XORG \ 148cdf0e10cSrcweir)) 149cdf0e10cSrcweirifeq ($(XINERAMA_LINK),dynamic) 150cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 151cdf0e10cSrcweir $$(LDFLAGS) \ 152cdf0e10cSrcweir)) 15344c25570SAndre Fischer 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) \ 164ca963dc9SAndre Fischer -DUSE_XINERAMA \ 165cdf0e10cSrcweir -DUSE_XINERAMA_XSUN \ 166cdf0e10cSrcweir)) 167cdf0e10cSrcweirifeq ($(USE_XINERAMA_VERSION),Xorg) 168cdf0e10cSrcweir# Solaris, Xorg 169cdf0e10cSrcweirifeq ($(XINERAMA_LINK),dynamic) 170cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 171cdf0e10cSrcweir $$(LDFLAGS) \ 172cdf0e10cSrcweir -lXinerama \ 173cdf0e10cSrcweir)) 174cdf0e10cSrcweirelse 175cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 176cdf0e10cSrcweir $$(LDFLAGS) \ 177cdf0e10cSrcweir -Wl,-Bstatic -lXinerama -Wl,-Bdynamic \ 178cdf0e10cSrcweir)) 179cdf0e10cSrcweirendif 180cdf0e10cSrcweirendif 181cdf0e10cSrcweirendif 182cdf0e10cSrcweirendif 183cdf0e10cSrcweir 184cdf0e10cSrcweir## handle Render linking 185cdf0e10cSrcweirifeq ($(XRENDER_LINK),YES) 186cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,vclplug_gen,\ 187cdf0e10cSrcweir $$(DEFS) \ 188cdf0e10cSrcweir -DXRENDER_LINK \ 189cdf0e10cSrcweir)) 190cdf0e10cSrcweir$(eval $(call gb_Library_set_ldflags,vclplug_gen,\ 191cdf0e10cSrcweir $$(LDFLAGS) \ 192cdf0e10cSrcweir $(shell pkg-config --libs xrender) \ 193cdf0e10cSrcweir)) 194cdf0e10cSrcweirendif 195cdf0e10cSrcweir 196cdf0e10cSrcweirifeq ($(OS),LINUX) 197cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,vclplug_gen,\ 198cdf0e10cSrcweir dl \ 199cdf0e10cSrcweir m \ 200cdf0e10cSrcweir pthread \ 201cdf0e10cSrcweir)) 20244c25570SAndre Fischer$(eval $(call gb_Library_add_external_libs,vclplug_gen, \ 20344c25570SAndre Fischer Xinerama Xrandr \ 20444c25570SAndre Fischer)) 205cdf0e10cSrcweirendif 206*4d69a683SMaho NAKATAifeq ($(OS),FREEBSD) 207*4d69a683SMaho NAKATA$(eval $(call gb_Library_add_external_libs,vclplug_gen, \ 208*4d69a683SMaho NAKATA Xinerama Xrandr \ 209*4d69a683SMaho NAKATA)) 210*4d69a683SMaho NAKATAendif 211cdf0e10cSrcweir# vim: set noet sw=4 ts=4: 212