Allow dialogs to create multiple instances in Online
[LibreOffice.git] / vcl / Library_vclplug_gen.mk
blob01189a158d34fc40e9d512e7c8bba5f20c377d83
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_custom_headers,vclplug_gen,\
28 officecfg/registry \
31 $(eval $(call gb_Library_use_sdk_api,vclplug_gen))
33 $(eval $(call gb_Library_use_libraries,vclplug_gen,\
34 vcl \
35 tl \
36 utl \
37 sot \
38 ucbhelper \
39 basegfx \
40 comphelper \
41 cppuhelper \
42 i18nlangtag \
43 i18nutil \
44 $(if $(ENABLE_JAVA), \
45 jvmaccess) \
46 cppu \
47 sal \
50 $(eval $(call gb_Library_use_externals,vclplug_gen,\
51 boost_headers \
52 cairo \
53 graphite \
54 epoxy \
55 glm_headers \
56 harfbuzz \
57 icu_headers \
58 icuuc \
59 valgrind \
60 Xrender \
63 $(eval $(call gb_Library_add_libs,vclplug_gen,\
64 -lX11 \
65 -lXext \
66 -lSM \
67 -lICE \
70 $(eval $(call gb_Library_add_exception_objects,vclplug_gen,\
71 vcl/unx/generic/app/i18n_cb \
72 vcl/unx/generic/app/i18n_ic \
73 vcl/unx/generic/app/i18n_im \
74 vcl/unx/generic/app/i18n_keysym \
75 vcl/unx/generic/app/i18n_xkb \
76 vcl/unx/generic/app/keysymnames \
77 vcl/unx/generic/app/randrwrapper \
78 vcl/unx/generic/app/saldata \
79 vcl/unx/generic/app/saldisp \
80 vcl/unx/generic/app/salinst \
81 vcl/unx/generic/app/saltimer \
82 vcl/unx/generic/app/sm \
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/cairo_xlib_cairo \
93 vcl/unx/generic/gdi/x11cairotextrender \
94 vcl/unx/generic/gdi/gdiimpl \
95 vcl/unx/generic/gdi/openglx11cairotextrender \
96 vcl/unx/generic/gdi/salbmp \
97 vcl/unx/generic/gdi/salgdi2 \
98 vcl/unx/generic/gdi/font \
99 vcl/unx/generic/gdi/salgdi \
100 vcl/unx/generic/gdi/salvd \
101 vcl/unx/generic/gdi/xrender_peer \
102 vcl/unx/generic/window/salframe \
103 vcl/unx/generic/window/salobj \
104 vcl/unx/x11/x11sys \
105 vcl/unx/x11/xlimits \
106 vcl/opengl/x11/gdiimpl \
107 vcl/opengl/x11/salvd \
110 # ultimately we want to split the x11 dependencies out
111 # into their own library I think.
113 $(eval $(call gb_Library_add_defs,vclplug_gen,\
114 -DVCLPLUG_GEN_IMPLEMENTATION \
117 ## handle RandR
118 ifneq ($(ENABLE_RANDR),)
119 $(eval $(call gb_Library_use_externals,vclplug_gen,\
120 Xrandr \
122 $(eval $(call gb_Library_add_defs,vclplug_gen,\
123 -DUSE_RANDR \
125 endif
127 ## handle Xinerama
128 ifneq ($(USE_XINERAMA),)
129 $(eval $(call gb_Library_add_defs,vclplug_gen,\
130 -DUSE_XINERAMA_XORG \
132 ifeq ($(XINERAMA_LINK),dynamic)
133 $(eval $(call gb_Library_add_libs,vclplug_gen,\
134 -lXinerama \
136 else
137 $(eval $(call gb_Library_add_libs,vclplug_gen,\
138 -Wl$(COMMA)-Bstatic -lXinerama -Wl$(COMMA)-Bdynamic \
140 endif
141 endif # USE_XINERAMA
143 ifeq ($(OS),LINUX)
144 $(eval $(call gb_Library_add_libs,vclplug_gen,\
145 -lm \
146 -ldl \
148 endif
150 # vim: set noet sw=4 ts=4: