Update git submodules
[LibreOffice.git] / vcl / Module_vcl.mk
blob31d751a6e332624eae0d911afb670daea6ab56bb
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 Package_fontunxppds \
76 Package_fontunxpsprint \
78 endif
80 ifneq ($(ENABLE_GTK3),)
81 $(eval $(call gb_Module_add_targets,vcl,\
82 Library_vclplug_gtk3 \
85 ifneq ($(ENABLE_ATSPI_TESTS),)
86 $(eval $(call gb_Module_add_check_targets,vcl,\
87 CppunitTest_vcl_gtk3_a11y \
89 endif
90 endif
92 ifneq ($(ENABLE_GTK4),)
93 $(eval $(call gb_Module_add_targets,vcl,\
94 Library_vclplug_gtk4 \
96 endif
98 ifneq ($(ENABLE_KF5),)
99 $(eval $(call gb_Module_add_targets,vcl,\
100 CustomTarget_kf5_moc \
101 Library_vclplug_kf5 \
103 endif
105 ifneq ($(ENABLE_KF6),)
106 $(eval $(call gb_Module_add_targets,vcl,\
107 CustomTarget_kf6_moc \
108 Library_vclplug_kf6 \
110 endif
113 ifneq ($(ENABLE_QT5),)
114 $(eval $(call gb_Module_add_targets,vcl,\
115 CustomTarget_qt5_moc \
116 Library_vclplug_qt5 \
118 endif
120 ifneq ($(ENABLE_QT6),)
121 $(eval $(call gb_Module_add_targets,vcl,\
122 CustomTarget_qt6_moc \
123 Library_vclplug_qt6 \
125 endif
127 ifneq ($(ENABLE_GTK3_KDE5),)
128 $(eval $(call gb_Module_add_targets,vcl,\
129 CustomTarget_gtk3_kde5_moc \
130 Library_vclplug_gtk3_kde5 \
131 Executable_lo_kde5filepicker \
133 endif
135 ifeq ($(OS),MACOSX)
136 $(eval $(call gb_Module_add_targets,vcl,\
137 Package_osxres \
138 Library_vclplug_osx \
140 endif
142 ifeq ($(OS),WNT)
143 $(eval $(call gb_Module_add_targets,vcl,\
144 WinResTarget_vcl \
145 Library_vclplug_win \
147 endif
149 ifneq (,$(filter FUZZERS,$(BUILD_TYPE)))
150 $(eval $(call gb_Module_add_targets,vcl,\
151 CustomTarget_nativecore \
152 CustomTarget_nativecalc \
153 CustomTarget_nativedraw \
154 CustomTarget_nativewriter \
155 CustomTarget_nativemath \
156 StaticLibrary_fuzzer_core \
157 StaticLibrary_fuzzer_calc \
158 StaticLibrary_fuzzer_draw \
159 StaticLibrary_fuzzer_writer \
160 StaticLibrary_fuzzer_math \
161 Executable_wmffuzzer \
162 Executable_jpgfuzzer \
163 Executable_giffuzzer \
164 Executable_xbmfuzzer \
165 Executable_xpmfuzzer \
166 Executable_pngfuzzer \
167 Executable_bmpfuzzer \
168 Executable_svmfuzzer \
169 Executable_pcdfuzzer \
170 Executable_dxffuzzer \
171 Executable_metfuzzer \
172 Executable_ppmfuzzer \
173 Executable_psdfuzzer \
174 Executable_epsfuzzer \
175 Executable_pctfuzzer \
176 Executable_pcxfuzzer \
177 Executable_rasfuzzer \
178 Executable_tgafuzzer \
179 Executable_tiffuzzer \
180 Executable_hwpfuzzer \
181 Executable_602fuzzer \
182 Executable_lwpfuzzer \
183 Executable_olefuzzer \
184 Executable_pptfuzzer \
185 Executable_rtffuzzer \
186 Executable_cgmfuzzer \
187 Executable_ww2fuzzer \
188 Executable_ww6fuzzer \
189 Executable_ww8fuzzer \
190 Executable_qpwfuzzer \
191 Executable_slkfuzzer \
192 Executable_fodtfuzzer \
193 Executable_fodt2pdffuzzer \
194 Executable_fodsfuzzer \
195 Executable_fodpfuzzer \
196 Executable_xlsfuzzer \
197 Executable_scrtffuzzer \
198 Executable_wksfuzzer \
199 Executable_diffuzzer \
200 Executable_docxfuzzer \
201 Executable_xlsxfuzzer \
202 Executable_pptxfuzzer \
203 Executable_mmlfuzzer \
204 Executable_mtpfuzzer \
205 Executable_htmlfuzzer \
206 Executable_sftfuzzer \
207 Executable_dbffuzzer \
208 Executable_webpfuzzer \
209 Executable_zipfuzzer \
210 Executable_svgfuzzer \
212 endif
214 $(eval $(call gb_Module_add_check_targets,vcl,\
215 CppunitTest_vcl_drawmode \
216 CppunitTest_vcl_lifecycle \
217 CppunitTest_vcl_bitmap_test \
218 CppunitTest_vcl_bitmapprocessor_test \
219 CppunitTest_vcl_cjk \
220 CppunitTest_vcl_graphic_test \
221 CppunitTest_vcl_fontcharmap \
222 CppunitTest_vcl_font \
223 CppunitTest_vcl_fontfeature \
224 CppunitTest_vcl_fontmetric \
225 CppunitTest_vcl_text \
226 CppunitTest_vcl_textlayout \
227 CppunitTest_vcl_filters_test \
228 CppunitTest_vcl_mnemonic \
229 CppunitTest_vcl_outdev \
230 CppunitTest_vcl_gradient \
231 CppunitTest_vcl_app_test \
232 CppunitTest_vcl_jpeg_read_write_test \
233 CppunitTest_vcl_svm_test \
234 CppunitTest_vcl_errorhandler \
235 CppunitTest_vcl_bitmap_render_test \
236 CppunitTest_vcl_apitests \
237 CppunitTest_vcl_png_test \
238 CppunitTest_vcl_widget_definition_reader_test \
239 CppunitTest_vcl_backend_test \
240 CppunitTest_vcl_blocklistparser_test \
241 CppunitTest_vcl_type_serializer_test \
242 CppunitTest_vcl_animation \
243 $(call gb_Helper_optional, PDFIUM, \
244 CppunitTest_vcl_pdfium_library_test) \
245 $(if $(filter SKIA,$(BUILD_TYPE)), \
246 CppunitTest_vcl_skia) \
247 CppunitTest_vcl_filter_igif \
250 ifeq ($(USING_X11),TRUE)
251 $(eval $(call gb_Module_add_check_targets,vcl,\
252 CppunitTest_vcl_timer \
254 endif
256 ifeq ($(DISABLE_GUI),TRUE)
257 $(eval $(call gb_Module_add_check_targets,vcl,\
258 CppunitTest_vcl_timer \
260 endif
262 # Is any configuration missing?
263 ifeq ($(OS),WNT)
264 $(eval $(call gb_Module_add_check_targets,vcl,\
265 CppunitTest_vcl_timer \
267 endif
269 ifeq ($(OS),MACOSX)
270 $(eval $(call gb_Module_add_check_targets,vcl,\
271 CppunitTest_vcl_timer \
273 endif
275 # screenshots
276 $(eval $(call gb_Module_add_screenshot_targets,vcl,\
277 CppunitTest_vcl_dialogs_test \
280 ifneq ($(DISPLAY),)
281 $(eval $(call gb_Module_add_slowcheck_targets,vcl,\
282 CppunitTest_vcl_gen \
284 endif
286 ifneq (,$(filter PDFIUM,$(BUILD_TYPE)))
287 $(eval $(call gb_Module_add_slowcheck_targets,vcl,\
288 CppunitTest_vcl_pdfexport \
289 CppunitTest_vcl_pdfexport2 \
290 CppunitTest_vcl_filter_ipdf \
292 endif
294 # vim: set noet sw=4 ts=4: