fix configmgr --enable-dconf build
[LibreOffice.git] / vcl / Module_vcl.mk
blobf85bac2f1cb7351efbc2422fe14a623393e7c486
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_Module_Module,vcl))
22 $(eval $(call gb_Module_add_targets,vcl,\
23 Library_vcl \
24 Package_theme_definitions \
25 Package_tipoftheday \
26 Package_toolbarmode \
27 UIConfig_vcl \
28 $(if $(filter WNT,$(OS)), \
29 Package_opengl_denylist ) \
30 $(if $(filter SKIA,$(BUILD_TYPE)), \
31 Package_skia_denylist ) \
32 $(if $(filter DESKTOP,$(BUILD_TYPE)), \
33 StaticLibrary_vclmain \
34 $(if $(ENABLE_MACOSX_SANDBOX),, \
35 $(if $(DISABLE_GUI),, \
36 Executable_ui-previewer)) \
37 $(if $(filter LINUX MACOSX SOLARIS WNT %BSD,$(OS)), \
38 $(if $(DISABLE_GUI),, \
39 Executable_vcldemo \
40 Executable_icontest \
41 Executable_visualbackendtest \
42 Executable_mtfdemo ))) \
45 ifeq ($(CROSS_COMPILING)$(DISABLE_DYNLOADING),)
47 $(eval $(call gb_Module_add_targets,vcl,\
48 $(if $(filter-out ANDROID iOS WNT,$(OS)), \
49 Executable_svdemo \
50 Executable_fftester \
51 Executable_svptest \
52 Executable_svpclient) \
55 endif
57 $(eval $(call gb_Module_add_l10n_targets,vcl,\
58 AllLangMoTarget_vcl \
61 ifeq ($(USING_X11),TRUE)
62 $(eval $(call gb_Module_add_targets,vcl,\
63 Library_vclplug_gen \
64 Library_desktop_detector \
65 StaticLibrary_glxtest \
66 Package_fontunxppds \
67 Package_fontunxpsprint \
70 ifneq ($(ENABLE_GTK3),)
71 $(eval $(call gb_Module_add_targets,vcl,\
72 Library_vclplug_gtk3 \
74 endif
75 ifneq ($(ENABLE_GTK4),)
76 $(eval $(call gb_Module_add_targets,vcl,\
77 Library_vclplug_gtk4 \
79 endif
80 ifneq ($(ENABLE_KF5),)
81 $(eval $(call gb_Module_add_targets,vcl,\
82 CustomTarget_kf5_moc \
83 Library_vclplug_kf5 \
85 endif
86 ifneq ($(ENABLE_QT5),)
87 $(eval $(call gb_Module_add_targets,vcl,\
88 CustomTarget_qt5_moc \
89 Library_vclplug_qt5 \
91 endif
92 ifneq ($(ENABLE_QT6),)
93 $(eval $(call gb_Module_add_targets,vcl,\
94 CustomTarget_qt6_moc \
95 Library_vclplug_qt6 \
97 endif
98 ifneq ($(ENABLE_GTK3_KDE5),)
99 $(eval $(call gb_Module_add_targets,vcl,\
100 CustomTarget_gtk3_kde5_moc \
101 Library_vclplug_gtk3_kde5 \
102 Executable_lo_kde5filepicker \
104 endif
105 endif
107 ifeq ($(OS),MACOSX)
108 $(eval $(call gb_Module_add_targets,vcl,\
109 Package_osxres \
110 Library_vclplug_osx \
112 endif
114 ifeq ($(OS),WNT)
115 $(eval $(call gb_Module_add_targets,vcl,\
116 WinResTarget_vcl \
117 Library_vclplug_win \
119 endif
121 ifeq ($(OS),HAIKU)
122 ifneq ($(ENABLE_QT5),)
123 $(eval $(call gb_Module_add_targets,vcl,\
124 CustomTarget_qt5_moc \
125 Library_vclplug_qt5 \
127 endif
128 ifneq ($(ENABLE_QT6),)
129 $(eval $(call gb_Module_add_targets,vcl,\
130 CustomTarget_qt6_moc \
131 Library_vclplug_qt6 \
133 endif
135 ifneq ($(ENABLE_KF5),)
136 $(eval $(call gb_Module_add_targets,vcl,\
137 CustomTarget_kf5_moc \
138 Library_vclplug_kf5 \
140 endif
141 endif
143 ifneq ($(ENABLE_FUZZERS),)
144 $(eval $(call gb_Module_add_targets,vcl,\
145 CustomTarget_nativecore \
146 CustomTarget_nativecalc \
147 CustomTarget_nativedraw \
148 CustomTarget_nativewriter \
149 CustomTarget_nativemath \
150 StaticLibrary_fuzzerstubs \
151 StaticLibrary_fuzzer_core \
152 StaticLibrary_fuzzer_calc \
153 StaticLibrary_fuzzer_draw \
154 StaticLibrary_fuzzer_writer \
155 StaticLibrary_fuzzer_math \
156 Executable_wmffuzzer \
157 Executable_jpgfuzzer \
158 Executable_giffuzzer \
159 Executable_xbmfuzzer \
160 Executable_xpmfuzzer \
161 Executable_pngfuzzer \
162 Executable_bmpfuzzer \
163 Executable_svmfuzzer \
164 Executable_pcdfuzzer \
165 Executable_dxffuzzer \
166 Executable_metfuzzer \
167 Executable_ppmfuzzer \
168 Executable_psdfuzzer \
169 Executable_epsfuzzer \
170 Executable_pctfuzzer \
171 Executable_pcxfuzzer \
172 Executable_rasfuzzer \
173 Executable_tgafuzzer \
174 Executable_tiffuzzer \
175 Executable_hwpfuzzer \
176 Executable_602fuzzer \
177 Executable_lwpfuzzer \
178 Executable_olefuzzer \
179 Executable_pptfuzzer \
180 Executable_rtffuzzer \
181 Executable_cgmfuzzer \
182 Executable_ww2fuzzer \
183 Executable_ww6fuzzer \
184 Executable_ww8fuzzer \
185 Executable_qpwfuzzer \
186 Executable_slkfuzzer \
187 Executable_fodtfuzzer \
188 Executable_fodsfuzzer \
189 Executable_fodpfuzzer \
190 Executable_xlsfuzzer \
191 Executable_scrtffuzzer \
192 Executable_wksfuzzer \
193 Executable_diffuzzer \
194 Executable_docxfuzzer \
195 Executable_xlsxfuzzer \
196 Executable_pptxfuzzer \
197 Executable_mmlfuzzer \
198 Executable_mtpfuzzer \
199 Executable_htmlfuzzer \
200 Executable_sftfuzzer \
201 Executable_dbffuzzer \
203 endif
205 $(eval $(call gb_Module_add_check_targets,vcl,\
206 CppunitTest_vcl_drawmode \
207 CppunitTest_vcl_lifecycle \
208 CppunitTest_vcl_bitmap_test \
209 CppunitTest_vcl_bitmapprocessor_test \
210 CppunitTest_vcl_graphic_test \
211 CppunitTest_vcl_fontcharmap \
212 CppunitTest_vcl_font \
213 CppunitTest_vcl_fontfeature \
214 CppunitTest_vcl_fontmetric \
215 CppunitTest_vcl_text \
216 CppunitTest_vcl_filters_test \
217 CppunitTest_vcl_mnemonic \
218 CppunitTest_vcl_outdev \
219 CppunitTest_vcl_app_test \
220 CppunitTest_vcl_jpeg_read_write_test \
221 CppunitTest_vcl_svm_test \
222 CppunitTest_vcl_errorhandler \
223 CppunitTest_vcl_bitmap_render_test \
224 CppunitTest_vcl_apitests \
225 CppunitTest_vcl_png_test \
226 CppunitTest_vcl_widget_definition_reader_test \
227 CppunitTest_vcl_backend_test \
228 CppunitTest_vcl_blocklistparser_test \
229 CppunitTest_vcl_type_serializer_test \
230 $(call gb_Helper_optional, PDFIUM, \
231 CppunitTest_vcl_pdfium_library_test) \
232 $(if $(filter SKIA,$(BUILD_TYPE)), \
233 CppunitTest_vcl_skia) \
234 CppunitTest_vcl_filter_igif \
237 ifeq ($(USING_X11),TRUE)
238 $(eval $(call gb_Module_add_check_targets,vcl,\
239 CppunitTest_vcl_timer \
241 endif
243 ifeq ($(DISABLE_GUI),TRUE)
244 $(eval $(call gb_Module_add_check_targets,vcl,\
245 CppunitTest_vcl_timer \
247 endif
249 # Is any configuration missing?
250 ifeq ($(OS),WNT)
251 $(eval $(call gb_Module_add_check_targets,vcl,\
252 CppunitTest_vcl_timer \
254 endif
256 ifeq ($(OS),MACOSX)
257 $(eval $(call gb_Module_add_check_targets,vcl,\
258 CppunitTest_vcl_timer \
260 endif
262 # screenshots
263 $(eval $(call gb_Module_add_screenshot_targets,vcl,\
264 CppunitTest_vcl_dialogs_test \
267 ifneq ($(DISPLAY),)
268 $(eval $(call gb_Module_add_slowcheck_targets,vcl,\
269 CppunitTest_vcl_gen \
271 endif
273 ifneq (,$(filter PDFIUM,$(BUILD_TYPE)))
274 $(eval $(call gb_Module_add_slowcheck_targets,vcl,\
275 CppunitTest_vcl_pdfexport \
276 CppunitTest_vcl_filter_ipdf \
278 endif
280 # vim: set noet sw=4 ts=4: