xref: /trunk/main/vcl/Library_vclplug_gen.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.	If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28$(eval $(call gb_Library_Library,vclplug_gen))
29
30$(eval $(call gb_Library_set_include,vclplug_gen,\
31	$$(INCLUDE) \
32	-I$(SRCDIR)/vcl/inc \
33	-I$(SRCDIR)/vcl/inc/pch \
34	-I$(SRCDIR)/solenv/inc \
35	-I$(OUTDIR)/inc/offuh \
36	-I$(OUTDIR)/inc/stl \
37	-I$(OUTDIR)/inc \
38))
39
40$(eval $(call gb_Library_add_linked_libs,vclplug_gen,\
41    vcl \
42    tl \
43    utl \
44    sot \
45    ucbhelper \
46	basegfx \
47	comphelper \
48    cppuhelper \
49    icuuc \
50    icule \
51	i18nisolang1 \
52	i18npaper \
53    i18nutil \
54    jvmaccess \
55	stl \
56	cppu \
57	sal \
58	vos3 \
59    X11 \
60    Xext \
61    SM \
62    ICE \
63	$(gb_STDLIBS) \
64))
65
66$(eval $(call gb_Library_add_exception_objects,vclplug_gen,\
67    vcl/unx/generic/app/i18n_cb \
68    vcl/unx/generic/app/i18n_ic \
69    vcl/unx/generic/app/i18n_im \
70    vcl/unx/generic/app/i18n_keysym \
71    vcl/unx/generic/app/i18n_status \
72    vcl/unx/generic/app/i18n_wrp \
73    vcl/unx/generic/app/i18n_xkb \
74    vcl/unx/generic/app/keysymnames \
75    vcl/unx/generic/app/randrwrapper \
76    vcl/unx/generic/app/saldata \
77    vcl/unx/generic/app/saldisp \
78    vcl/unx/generic/app/salinst \
79    vcl/unx/generic/app/salsys \
80    vcl/unx/generic/app/saltimer \
81    vcl/unx/generic/app/sm \
82    vcl/unx/generic/app/soicon \
83    vcl/unx/generic/app/wmadaptor \
84    vcl/unx/generic/dtrans/bmp \
85    vcl/unx/generic/dtrans/config \
86    vcl/unx/generic/dtrans/X11_clipboard \
87    vcl/unx/generic/dtrans/X11_dndcontext \
88    vcl/unx/generic/dtrans/X11_droptarget \
89    vcl/unx/generic/dtrans/X11_selection \
90    vcl/unx/generic/dtrans/X11_service \
91    vcl/unx/generic/dtrans/X11_transferable \
92    vcl/unx/generic/gdi/cdeint \
93    vcl/unx/generic/gdi/dtint \
94    vcl/unx/generic/gdi/gcach_xpeer \
95    vcl/unx/generic/gdi/pspgraphics \
96    vcl/unx/generic/gdi/salbmp \
97    vcl/unx/generic/gdi/salcvt \
98    vcl/unx/generic/gdi/salgdi2 \
99    vcl/unx/generic/gdi/salgdi3 \
100    vcl/unx/generic/gdi/salgdi \
101    vcl/unx/generic/gdi/salprnpsp \
102    vcl/unx/generic/gdi/salvd \
103    vcl/unx/generic/gdi/xrender_peer \
104    vcl/unx/generic/printergfx/bitmap_gfx \
105    vcl/unx/generic/printergfx/common_gfx \
106    vcl/unx/generic/printergfx/glyphset \
107    vcl/unx/generic/printergfx/printerjob \
108    vcl/unx/generic/printergfx/psputil \
109    vcl/unx/generic/printergfx/text_gfx \
110    vcl/unx/generic/window/FWS \
111    vcl/unx/generic/window/salframe \
112    vcl/unx/generic/window/salobj \
113))
114
115$(eval $(call gb_Library_set_defs,vclplug_gen,\
116	$$(DEFS) \
117    -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \
118    -DVCLPLUG_GEN_IMPLEMENTATION \
119))
120
121
122## handle RandR
123ifneq ($(ENABLE_RANDR),)
124$(eval $(call gb_Library_set_defs,vclplug_gen,\
125	$$(DEFS) \
126	-DUSE_RANDR \
127))
128ifeq ($(XRANDR_DLOPEN),FALSE)
129$(eval $(call gb_Library_set_cxxflags,vclplug_gen,\
130    $$(CXXFLAGS) \
131    $$(XRANDR_CFLAGS) \
132))
133$(eval $(call gb_Library_set_ldflags,vclplug_gen,\
134    $$(LDFLAGS) \
135    $(XRANDR_LIBS) \
136))
137else
138$(eval $(call gb_Library_set_defs,vclplug_gen,\
139	$$(DEFS) \
140	-DXRANDR_DLOPEN \
141))
142endif
143endif
144
145## handle Xinerama
146ifneq ($(USE_XINERAMA),NO)
147ifneq ($(OS),SOLARIS)
148# not Solaris
149$(eval $(call gb_Library_set_defs,vclplug_gen,\
150	$$(DEFS) \
151	-DUSE_XINERAMA_XORG \
152))
153ifeq ($(XINERAMA_LINK),dynamic)
154$(eval $(call gb_Library_set_ldflags,vclplug_gen,\
155    $$(LDFLAGS) \
156    -lXinerama \
157))
158else
159$(eval $(call gb_Library_set_ldflags,vclplug_gen,\
160    $$(LDFLAGS) \
161    -Wl,-Bstatic -lXinerama -Wl,-Bdynamic \
162))
163endif
164else
165# Solaris
166$(eval $(call gb_Library_set_defs,vclplug_gen,\
167	$$(DEFS) \
168	-DUSE_XINERAMA_XSUN \
169))
170ifeq ($(USE_XINERAMA_VERSION),Xorg)
171# Solaris, Xorg
172ifeq ($(XINERAMA_LINK),dynamic)
173$(eval $(call gb_Library_set_ldflags,vclplug_gen,\
174    $$(LDFLAGS) \
175    -lXinerama \
176))
177else
178$(eval $(call gb_Library_set_ldflags,vclplug_gen,\
179    $$(LDFLAGS) \
180    -Wl,-Bstatic -lXinerama -Wl,-Bdynamic \
181))
182endif
183endif
184endif
185endif
186
187## handle Render linking
188ifeq ($(XRENDER_LINK),YES)
189$(eval $(call gb_Library_set_defs,vclplug_gen,\
190	$$(DEFS) \
191	-DXRENDER_LINK \
192))
193$(eval $(call gb_Library_set_ldflags,vclplug_gen,\
194    $$(LDFLAGS) \
195    $(shell pkg-config --libs xrender) \
196))
197endif
198
199ifeq ($(OS),LINUX)
200$(eval $(call gb_Library_add_linked_libs,vclplug_gen,\
201	dl \
202	m \
203	pthread \
204))
205endif
206# vim: set noet sw=4 ts=4:
207