nss: upgrade to release 3.73
[LibreOffice.git] / vcl / Library_vclplug_gen.mk
blob36652b70159ca51010bc7903537521e23e4d710e
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_common_precompiled_header,vclplug_gen))
35 $(eval $(call gb_Library_use_libraries,vclplug_gen,\
36 vcl \
37 tl \
38 utl \
39 sot \
40 ucbhelper \
41 basegfx \
42 comphelper \
43 cppuhelper \
44 i18nlangtag \
45 i18nutil \
46 $(if $(ENABLE_JAVA), \
47 jvmaccess) \
48 cppu \
49 sal \
52 $(eval $(call gb_Library_use_externals,vclplug_gen,\
53 boost_headers \
54 cairo \
55 graphite \
56 epoxy \
57 glm_headers \
58 harfbuzz \
59 icu_headers \
60 icuuc \
61 valgrind \
62 Xrender \
63 $(if $(filter SKIA,$(BUILD_TYPE)), \
64 skia \
65 fontconfig \
66 ) \
69 $(eval $(call gb_Library_add_libs,vclplug_gen,\
70 -lX11 \
71 -lXext \
72 -lSM \
73 -lICE \
76 $(eval $(call gb_Library_add_exception_objects,vclplug_gen,\
77 vcl/unx/generic/app/i18n_cb \
78 vcl/unx/generic/app/i18n_ic \
79 vcl/unx/generic/app/i18n_im \
80 vcl/unx/generic/app/i18n_keysym \
81 vcl/unx/generic/app/i18n_xkb \
82 vcl/unx/generic/app/keysymnames \
83 vcl/unx/generic/app/randrwrapper \
84 vcl/unx/generic/app/saldata \
85 vcl/unx/generic/app/saldisp \
86 vcl/unx/generic/app/salinst \
87 vcl/unx/generic/app/saltimer \
88 vcl/unx/generic/app/sm \
89 vcl/unx/generic/app/wmadaptor \
90 vcl/unx/generic/dtrans/bmp \
91 vcl/unx/generic/dtrans/config \
92 vcl/unx/generic/dtrans/X11_clipboard \
93 vcl/unx/generic/dtrans/X11_dndcontext \
94 vcl/unx/generic/dtrans/X11_droptarget \
95 vcl/unx/generic/dtrans/X11_selection \
96 vcl/unx/generic/dtrans/X11_service \
97 vcl/unx/generic/dtrans/X11_transferable \
98 vcl/unx/generic/gdi/cairo_xlib_cairo \
99 vcl/unx/generic/gdi/x11cairotextrender \
100 vcl/unx/generic/gdi/gdiimpl \
101 vcl/unx/generic/gdi/salbmp \
102 vcl/unx/generic/gdi/salgdi2 \
103 vcl/unx/generic/gdi/font \
104 vcl/unx/generic/gdi/salgdi \
105 vcl/unx/generic/gdi/salvd \
106 vcl/unx/generic/gdi/xrender_peer \
107 vcl/unx/generic/window/salframe \
108 vcl/unx/generic/window/salobj \
109 vcl/unx/x11/x11sys \
110 vcl/unx/x11/xlimits \
111 vcl/opengl/x11/cairotextrender \
112 vcl/opengl/x11/gdiimpl \
113 vcl/opengl/x11/salvd \
114 $(if $(filter SKIA,$(BUILD_TYPE)), \
115 vcl/skia/x11/gdiimpl \
116 vcl/skia/x11/salvd \
117 vcl/skia/x11/textrender \
121 # ultimately we want to split the x11 dependencies out
122 # into their own library I think.
124 $(eval $(call gb_Library_add_defs,vclplug_gen,\
125 -DVCLPLUG_GEN_IMPLEMENTATION \
128 ## handle RandR
129 ifneq ($(ENABLE_RANDR),)
130 $(eval $(call gb_Library_use_externals,vclplug_gen,\
131 Xrandr \
133 $(eval $(call gb_Library_add_defs,vclplug_gen,\
134 -DUSE_RANDR \
136 endif
138 ## handle Xinerama
139 ifneq ($(USE_XINERAMA),)
140 $(eval $(call gb_Library_add_defs,vclplug_gen,\
141 -DUSE_XINERAMA_XORG \
143 ifeq ($(XINERAMA_LINK),dynamic)
144 $(eval $(call gb_Library_add_libs,vclplug_gen,\
145 -lXinerama \
147 else
148 $(eval $(call gb_Library_add_libs,vclplug_gen,\
149 -Wl$(COMMA)-Bstatic -lXinerama -Wl$(COMMA)-Bdynamic \
151 endif
152 endif # USE_XINERAMA
154 ifeq ($(OS),LINUX)
155 $(eval $(call gb_Library_add_libs,vclplug_gen,\
156 -lm \
157 -ldl \
159 endif
161 # vim: set noet sw=4 ts=4: