Update git submodules
[LibreOffice.git] / vcl / Module_vcl.mk
blobcc8667cad420bb4ee0e1e162f4c65c77cb1e51b0
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 ifneq ($(ENABLE_WASM_STRIP_PINGUSER),TRUE)
23 $(eval $(call gb_Module_add_targets,vcl,\
24 Package_tipoftheday \
26 endif
28 $(eval $(call gb_Module_add_targets,vcl,\
29 Library_vcl \
30 Package_theme_definitions \
31 Package_toolbarmode \
32 UIConfig_vcl \
33 $(if $(filter WNT,$(OS)), \
34 Package_opengl_denylist ) \
35 $(if $(filter SKIA,$(BUILD_TYPE)), \
36 Package_skia_denylist ) \
37 $(if $(filter DESKTOP FUZZERS,$(BUILD_TYPE)), \
38 StaticLibrary_vclmain \
39 $(if $(or $(DISABLE_GUI),$(DISABLE_DYNLOADING)), \
40 $(if $(filter EMSCRIPTEN,$(OS)), \
41 $(if $(ENABLE_QT5),Executable_vcldemo) \
42 ) \
43 , \
44 $(if $(filter LINUX MACOSX SOLARIS WNT %BSD,$(OS)), \
45 Executable_vcldemo \
46 Executable_svdemo \
47 Executable_minvcl \
48 Executable_svptest \
49 Executable_icontest \
50 Executable_visualbackendtest \
51 Executable_mtfdemo \
52 ) \
53 )) \
56 ifeq ($(CROSS_COMPILING)$(DISABLE_DYNLOADING),)
58 $(eval $(call gb_Module_add_targets,vcl,\
59 $(if $(filter-out ANDROID iOS WNT,$(OS)), \
60 Executable_fftester \
61 Executable_listfonts \
62 Executable_listglyphs \
63 Executable_svpclient) \
66 endif
68 $(eval $(call gb_Module_add_l10n_targets,vcl,\
69 AllLangMoTarget_vcl \
72 ifeq ($(USING_X11),TRUE)
73 $(eval $(call gb_Module_add_targets,vcl,\
74 $(if $(ENABLE_GEN),Library_vclplug_gen) \
75 Library_desktop_detector \
76 Package_fontunxppds \
77 Package_fontunxpsprint \
79 endif
81 ifneq ($(ENABLE_GTK3),)
82 $(eval $(call gb_Module_add_targets,vcl,\
83 Library_vclplug_gtk3 \
86 ifneq ($(ENABLE_ATSPI_TESTS),)
87 $(eval $(call gb_Module_add_check_targets,vcl,\
88 CppunitTest_vcl_gtk3_a11y \
90 endif
91 endif
93 ifneq ($(ENABLE_GTK4),)
94 $(eval $(call gb_Module_add_targets,vcl,\
95 Library_vclplug_gtk4 \
97 endif
99 ifneq ($(ENABLE_KF5),)
100 $(eval $(call gb_Module_add_targets,vcl,\
101 CustomTarget_kf5_moc \
102 Library_vclplug_kf5 \
104 endif
106 ifneq ($(ENABLE_KF6),)
107 $(eval $(call gb_Module_add_targets,vcl,\
108 CustomTarget_kf6_moc \
109 Library_vclplug_kf6 \
111 endif
114 ifneq ($(ENABLE_QT5),)
115 $(eval $(call gb_Module_add_targets,vcl,\
116 CustomTarget_qt5_moc \
117 Library_vclplug_qt5 \
119 endif
121 ifneq ($(ENABLE_QT6),)
122 $(eval $(call gb_Module_add_targets,vcl,\
123 CustomTarget_qt6_moc \
124 Library_vclplug_qt6 \
126 endif
128 ifneq ($(ENABLE_GTK3_KDE5),)
129 $(eval $(call gb_Module_add_targets,vcl,\
130 CustomTarget_gtk3_kde5_moc \
131 Library_vclplug_gtk3_kde5 \
132 Executable_lo_kde5filepicker \
134 endif
136 ifeq ($(OS),MACOSX)
137 $(eval $(call gb_Module_add_targets,vcl,\
138 Package_osxres \
139 Library_vclplug_osx \
141 endif
143 ifeq ($(OS),WNT)
144 $(eval $(call gb_Module_add_targets,vcl,\
145 WinResTarget_vcl \
146 Library_vclplug_win \
148 endif
150 ifneq (,$(filter FUZZERS,$(BUILD_TYPE)))
151 $(eval $(call gb_Module_add_targets,vcl,\
152 CustomTarget_nativecore \
153 CustomTarget_nativecalc \
154 CustomTarget_nativedraw \
155 CustomTarget_nativewriter \
156 CustomTarget_nativemath \
157 StaticLibrary_fuzzer_core \
158 StaticLibrary_fuzzer_calc \
159 StaticLibrary_fuzzer_draw \
160 StaticLibrary_fuzzer_writer \
161 StaticLibrary_fuzzer_math \
162 Executable_wmffuzzer \
163 Executable_jpgfuzzer \
164 Executable_giffuzzer \
165 Executable_xbmfuzzer \
166 Executable_xpmfuzzer \
167 Executable_pngfuzzer \
168 Executable_bmpfuzzer \
169 Executable_svmfuzzer \
170 Executable_pcdfuzzer \
171 Executable_dxffuzzer \
172 Executable_metfuzzer \
173 Executable_ppmfuzzer \
174 Executable_psdfuzzer \
175 Executable_epsfuzzer \
176 Executable_pctfuzzer \
177 Executable_pcxfuzzer \
178 Executable_rasfuzzer \
179 Executable_tgafuzzer \
180 Executable_tiffuzzer \
181 Executable_hwpfuzzer \
182 Executable_602fuzzer \
183 Executable_lwpfuzzer \
184 Executable_olefuzzer \
185 Executable_pptfuzzer \
186 Executable_rtffuzzer \
187 Executable_cgmfuzzer \
188 Executable_ww2fuzzer \
189 Executable_ww6fuzzer \
190 Executable_ww8fuzzer \
191 Executable_qpwfuzzer \
192 Executable_slkfuzzer \
193 Executable_fodtfuzzer \
194 Executable_fodt2pdffuzzer \
195 Executable_fodsfuzzer \
196 Executable_fodpfuzzer \
197 Executable_xlsfuzzer \
198 Executable_scrtffuzzer \
199 Executable_wksfuzzer \
200 Executable_diffuzzer \
201 Executable_docxfuzzer \
202 Executable_xlsxfuzzer \
203 Executable_pptxfuzzer \
204 Executable_mmlfuzzer \
205 Executable_mtpfuzzer \
206 Executable_htmlfuzzer \
207 Executable_sftfuzzer \
208 Executable_dbffuzzer \
209 Executable_webpfuzzer \
210 Executable_zipfuzzer \
211 Executable_svgfuzzer \
213 endif
215 $(eval $(call gb_Module_add_check_targets,vcl,\
216 CppunitTest_vcl_drawmode \
217 CppunitTest_vcl_lifecycle \
218 CppunitTest_vcl_bitmap_test \
219 CppunitTest_vcl_bitmapprocessor_test \
220 CppunitTest_vcl_cjk \
221 CppunitTest_vcl_graphic_test \
222 CppunitTest_vcl_fontcharmap \
223 CppunitTest_vcl_font \
224 CppunitTest_vcl_fontfeature \
225 CppunitTest_vcl_fontmetric \
226 CppunitTest_vcl_text \
227 CppunitTest_vcl_textlayout \
228 CppunitTest_vcl_filters_test \
229 CppunitTest_vcl_mnemonic \
230 CppunitTest_vcl_outdev \
231 CppunitTest_vcl_gradient \
232 CppunitTest_vcl_app_test \
233 CppunitTest_vcl_jpeg_read_write_test \
234 CppunitTest_vcl_svm_test \
235 CppunitTest_vcl_errorhandler \
236 CppunitTest_vcl_bitmap_render_test \
237 CppunitTest_vcl_apitests \
238 CppunitTest_vcl_png_test \
239 CppunitTest_vcl_widget_definition_reader_test \
240 CppunitTest_vcl_backend_test \
241 CppunitTest_vcl_blocklistparser_test \
242 CppunitTest_vcl_type_serializer_test \
243 CppunitTest_vcl_animation \
244 $(call gb_Helper_optional, PDFIUM, \
245 CppunitTest_vcl_pdfium_library_test) \
246 $(if $(filter SKIA,$(BUILD_TYPE)), \
247 CppunitTest_vcl_skia) \
248 CppunitTest_vcl_filter_igif \
251 ifeq ($(USING_X11),TRUE)
252 $(eval $(call gb_Module_add_check_targets,vcl,\
253 CppunitTest_vcl_timer \
255 endif
257 ifeq ($(DISABLE_GUI),TRUE)
258 $(eval $(call gb_Module_add_check_targets,vcl,\
259 CppunitTest_vcl_timer \
261 endif
263 # Is any configuration missing?
264 ifeq ($(OS),WNT)
265 $(eval $(call gb_Module_add_check_targets,vcl,\
266 CppunitTest_vcl_timer \
268 endif
270 ifeq ($(OS),MACOSX)
271 $(eval $(call gb_Module_add_check_targets,vcl,\
272 CppunitTest_vcl_timer \
274 endif
276 # screenshots
277 $(eval $(call gb_Module_add_screenshot_targets,vcl,\
278 CppunitTest_vcl_dialogs_test \
281 ifneq ($(DISPLAY),)
282 $(eval $(call gb_Module_add_slowcheck_targets,vcl,\
283 CppunitTest_vcl_gen \
285 endif
287 ifneq (,$(filter PDFIUM,$(BUILD_TYPE)))
288 $(eval $(call gb_Module_add_slowcheck_targets,vcl,\
289 CppunitTest_vcl_pdfexport \
290 CppunitTest_vcl_pdfexport2 \
291 CppunitTest_vcl_filter_ipdf \
293 endif
295 # vim: set noet sw=4 ts=4: