Version 4.2.0.1, tag libreoffice-4.2.0.1
[LibreOffice.git] / vcl / Library_vclplug_gen.mk
blob64d2c017560654312a62482e2ca677535a46d3e8
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 $(eval $(call gb_Library_Library,vclplug_gen))
22 $(eval $(call gb_Library_set_include,vclplug_gen,\
23 $$(INCLUDE) \
24 -I$(SRCDIR)/vcl/inc \
27 $(eval $(call gb_Library_use_sdk_api,vclplug_gen))
29 $(eval $(call gb_Library_use_libraries,vclplug_gen,\
30 vcl \
31 tl \
32 utl \
33 sot \
34 ucbhelper \
35 basegfx \
36 comphelper \
37 cppuhelper \
38 i18nlangtag \
39 i18nutil \
40 $(if $(ENABLE_JAVA), \
41 jvmaccess) \
42 cppu \
43 sal \
46 $(eval $(call gb_Library_use_externals,vclplug_gen,\
47 boost_headers \
48 cairo \
49 graphite \
50 harfbuzz \
51 icuuc \
52 valgrind \
53 Xrender \
56 $(eval $(call gb_Library_add_libs,vclplug_gen,\
57 -lX11 \
58 -lXext \
59 -lSM \
60 -lICE \
63 $(eval $(call gb_Library_add_exception_objects,vclplug_gen,\
64 vcl/unx/generic/app/i18n_cb \
65 vcl/unx/generic/app/i18n_ic \
66 vcl/unx/generic/app/i18n_im \
67 vcl/unx/generic/app/i18n_keysym \
68 vcl/unx/generic/app/i18n_status \
69 vcl/unx/generic/app/i18n_xkb \
70 vcl/unx/generic/app/keysymnames \
71 vcl/unx/generic/app/randrwrapper \
72 vcl/unx/generic/app/saldata \
73 vcl/unx/generic/app/saldisp \
74 vcl/unx/generic/app/salinst \
75 vcl/unx/generic/app/saltimer \
76 vcl/unx/generic/app/sm \
77 vcl/unx/generic/app/wmadaptor \
78 vcl/unx/generic/dtrans/bmp \
79 vcl/unx/generic/dtrans/config \
80 vcl/unx/generic/dtrans/X11_clipboard \
81 vcl/unx/generic/dtrans/X11_dndcontext \
82 vcl/unx/generic/dtrans/X11_droptarget \
83 vcl/unx/generic/dtrans/X11_selection \
84 vcl/unx/generic/dtrans/X11_service \
85 vcl/unx/generic/dtrans/X11_transferable \
86 vcl/unx/generic/gdi/gcach_xpeer \
87 vcl/unx/generic/gdi/salbmp \
88 vcl/unx/generic/gdi/salgdi2 \
89 vcl/unx/generic/gdi/salgdi3 \
90 vcl/unx/generic/gdi/salgdi \
91 vcl/unx/generic/gdi/salvd \
92 vcl/unx/generic/gdi/xrender_peer \
93 vcl/unx/generic/window/FWS \
94 vcl/unx/generic/window/salframe \
95 vcl/unx/generic/window/salobj \
96 vcl/unx/x11/x11sys \
97 vcl/unx/x11/xlimits \
100 # ultimately we want to split the x11 dependencies out
101 # into their own library I think.
103 $(eval $(call gb_Library_add_defs,vclplug_gen,\
104 -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \
105 -DVCLPLUG_GEN_IMPLEMENTATION \
108 ## handle RandR
109 ifneq ($(ENABLE_RANDR),)
110 $(eval $(call gb_Library_use_externals,vclplug_gen,\
111 Xrandr \
113 $(eval $(call gb_Library_add_defs,vclplug_gen,\
114 -DUSE_RANDR \
116 endif
118 ## handle Xinerama
119 ifneq ($(USE_XINERAMA),NO)
120 ifneq ($(OS)$(USE_XINERAMA_VERSION),SOLARISXsun)
121 # not Solaris/Xsun
122 $(eval $(call gb_Library_add_defs,vclplug_gen,\
123 -DUSE_XINERAMA_XORG \
125 ifeq ($(XINERAMA_LINK),dynamic)
126 $(eval $(call gb_Library_add_libs,vclplug_gen,\
127 -lXinerama \
129 else
130 $(eval $(call gb_Library_add_libs,vclplug_gen,\
131 -Wl$(COMMA)-Bstatic -lXinerama -Wl$(COMMA)-Bdynamic \
133 endif
134 else # Solaris/Xsun
135 $(eval $(call gb_Library_add_defs,vclplug_gen,\
136 -DUSE_XINERAMA_XSUN \
138 endif
139 endif # USE_XINERAMA
141 ifeq ($(OS),LINUX)
142 $(eval $(call gb_Library_add_libs,vclplug_gen,\
143 -lm \
144 -ldl \
145 -lpthread \
147 endif
149 # vim: set noet sw=4 ts=4: