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