Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / vcl / Library_vclplug_gen.mk
blob007a75a8da0d76101f739d2508959446bdef01ac
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 i18nisolang1 \
39 i18nutil \
40 jvmaccess \
41 cppu \
42 sal \
45 $(eval $(call gb_Library_use_externals,vclplug_gen,\
46 cairo \
47 graphite \
48 icule \
49 icuuc \
50 valgrind \
51 Xrender \
54 $(eval $(call gb_Library_add_libs,vclplug_gen,\
55 -lX11 \
56 -lXext \
57 -lSM \
58 -lICE \
61 $(eval $(call gb_Library_add_exception_objects,vclplug_gen,\
62 vcl/unx/generic/app/i18n_cb \
63 vcl/unx/generic/app/i18n_ic \
64 vcl/unx/generic/app/i18n_im \
65 vcl/unx/generic/app/i18n_keysym \
66 vcl/unx/generic/app/i18n_status \
67 vcl/unx/generic/app/i18n_xkb \
68 vcl/unx/generic/app/keysymnames \
69 vcl/unx/generic/app/randrwrapper \
70 vcl/unx/generic/app/saldata \
71 vcl/unx/generic/app/saldisp \
72 vcl/unx/generic/app/salinst \
73 vcl/unx/generic/app/saltimer \
74 vcl/unx/generic/app/sm \
75 vcl/unx/generic/app/soicon \
76 vcl/unx/generic/app/wmadaptor \
77 vcl/unx/generic/dtrans/bmp \
78 vcl/unx/generic/dtrans/config \
79 vcl/unx/generic/dtrans/X11_clipboard \
80 vcl/unx/generic/dtrans/X11_dndcontext \
81 vcl/unx/generic/dtrans/X11_droptarget \
82 vcl/unx/generic/dtrans/X11_selection \
83 vcl/unx/generic/dtrans/X11_service \
84 vcl/unx/generic/dtrans/X11_transferable \
85 vcl/unx/generic/gdi/gcach_xpeer \
86 vcl/unx/generic/gdi/salbmp \
87 vcl/unx/generic/gdi/salgdi2 \
88 vcl/unx/generic/gdi/salgdi3 \
89 vcl/unx/generic/gdi/salgdi \
90 vcl/unx/generic/gdi/salvd \
91 vcl/unx/generic/gdi/xrender_peer \
92 vcl/unx/generic/window/FWS \
93 vcl/unx/generic/window/salframe \
94 vcl/unx/generic/window/salobj \
95 vcl/unx/x11/x11sys \
96 vcl/unx/x11/xlimits \
99 # ultimately we want to split the x11 dependencies out
100 # into their own library I think.
102 $(eval $(call gb_Library_add_defs,vclplug_gen,\
103 -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \
104 -DVCLPLUG_GEN_IMPLEMENTATION \
107 ## handle RandR
108 ifneq ($(ENABLE_RANDR),)
109 $(eval $(call gb_Library_use_externals,vclplug_gen,\
110 Xrandr \
112 $(eval $(call gb_Library_add_defs,vclplug_gen,\
113 -DUSE_RANDR \
115 endif
117 ## handle Xinerama
118 ifneq ($(USE_XINERAMA),NO)
119 ifneq ($(OS)$(USE_XINERAMA_VERSION),SOLARISXsun)
120 # not Solaris/Xsun
121 $(eval $(call gb_Library_add_defs,vclplug_gen,\
122 -DUSE_XINERAMA_XORG \
124 ifeq ($(XINERAMA_LINK),dynamic)
125 $(eval $(call gb_Library_add_libs,vclplug_gen,\
126 -lXinerama \
128 else
129 $(eval $(call gb_Library_add_libs,vclplug_gen,\
130 -Wl,-Bstatic -lXinerama -Wl,-Bdynamic \
132 endif
133 else # Solaris/Xsun
134 $(eval $(call gb_Library_add_defs,vclplug_gen,\
135 -DUSE_XINERAMA_XSUN \
137 endif
138 endif # USE_XINERAMA
140 ifeq ($(OS),LINUX)
141 $(eval $(call gb_Library_add_libs,vclplug_gen,\
142 -lm \
143 -ldl \
144 -lpthread \
146 endif
148 # vim: set noet sw=4 ts=4: