tdf#120452: Just enough of SystemEnvData in Qt5Object
[LibreOffice.git] / vcl / Module_vcl.mk
blobdf3bf6e2641299c77d106329922955100507a7f2
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_opengl \
25 UIConfig_vcl \
26 $(if $(filter WNT,$(OS)), \
27 Package_opengl_blacklist ) \
28 $(if $(filter DESKTOP,$(BUILD_TYPE)), \
29 StaticLibrary_vclmain \
30 $(if $(ENABLE_MACOSX_SANDBOX),, \
31 $(if $(DISABLE_GUI),, \
32 Executable_ui-previewer)) \
33 $(if $(filter LINUX MACOSX SOLARIS WNT %BSD,$(OS)), \
34 Executable_outdevgrind \
35 $(if $(DISABLE_GUI),, \
36 Executable_vcldemo \
37 Executable_icontest \
38 Executable_visualbackendtest \
39 Executable_mtfdemo ))) \
42 ifeq ($(CROSS_COMPILING)$(DISABLE_DYNLOADING),)
44 $(eval $(call gb_Module_add_targets,vcl,\
45 $(if $(filter-out ANDROID IOS WNT,$(OS)), \
46 Executable_svdemo \
47 Executable_fftester \
48 Executable_svptest \
49 Executable_svpclient) \
52 endif
54 $(eval $(call gb_Module_add_l10n_targets,vcl,\
55 AllLangMoTarget_vcl \
58 ifeq ($(USING_X11),TRUE)
59 $(eval $(call gb_Module_add_targets,vcl,\
60 Library_vclplug_gen \
61 Library_desktop_detector \
62 StaticLibrary_glxtest \
63 Package_fontunxppds \
64 Package_fontunxpsprint \
67 ifneq ($(ENABLE_GTK),)
68 $(eval $(call gb_Module_add_targets,vcl,\
69 Executable_xid_fullscreen_on_all_monitors \
70 Library_vclplug_gtk \
72 endif
73 ifneq ($(ENABLE_GTK3),)
74 $(eval $(call gb_Module_add_targets,vcl,\
75 Library_vclplug_gtk3 \
77 endif
78 ifneq ($(ENABLE_KDE4),)
79 $(eval $(call gb_Module_add_targets,vcl,\
80 CustomTarget_kde4_moc \
81 Library_vclplug_kde4 \
83 endif
85 ifneq ($(ENABLE_KDE5),)
86 $(eval $(call gb_Module_add_targets,vcl,\
87 CustomTarget_kde5_moc \
88 Library_vclplug_kde5 \
90 endif
91 ifneq ($(ENABLE_QT5),)
92 $(eval $(call gb_Module_add_targets,vcl,\
93 CustomTarget_qt5_moc \
94 Library_vclplug_qt5 \
96 endif
97 ifneq ($(ENABLE_GTK3_KDE5),)
98 $(eval $(call gb_Module_add_targets,vcl,\
99 CustomTarget_gtk3_kde5_moc \
100 Library_vclplug_gtk3_kde5 \
101 Executable_lo_kde5filepicker \
103 endif
104 endif
106 ifeq ($(OS),MACOSX)
107 $(eval $(call gb_Module_add_targets,vcl,\
108 Package_osxres \
109 Library_vclplug_osx \
111 endif
113 ifeq ($(OS),WNT)
114 $(eval $(call gb_Module_add_targets,vcl,\
115 WinResTarget_vcl \
116 Library_vclplug_win \
118 endif
120 ifeq ($(OS),HAIKU)
121 ifneq ($(ENABLE_QT5),)
122 $(eval $(call gb_Module_add_targets,vcl,\
123 CustomTarget_qt5_moc \
124 Library_vclplug_qt5 \
126 endif
127 ifneq ($(ENABLE_KDE5),)
128 $(eval $(call gb_Module_add_targets,vcl,\
129 CustomTarget_kde5_moc \
130 Library_vclplug_kde5 \
132 endif
133 endif
135 ifneq ($(ENABLE_FUZZERS),)
136 $(eval $(call gb_Module_add_targets,vcl,\
137 CustomTarget_nativecore \
138 CustomTarget_nativecalc \
139 CustomTarget_nativedraw \
140 CustomTarget_nativewriter \
141 CustomTarget_nativemath \
142 StaticLibrary_fuzzerstubs \
143 StaticLibrary_fuzzer_core \
144 StaticLibrary_fuzzer_calc \
145 StaticLibrary_fuzzer_draw \
146 StaticLibrary_fuzzer_writer \
147 StaticLibrary_fuzzer_math \
148 Executable_wmffuzzer \
149 Executable_jpgfuzzer \
150 Executable_giffuzzer \
151 Executable_xbmfuzzer \
152 Executable_xpmfuzzer \
153 Executable_pngfuzzer \
154 Executable_bmpfuzzer \
155 Executable_svmfuzzer \
156 Executable_pcdfuzzer \
157 Executable_dxffuzzer \
158 Executable_metfuzzer \
159 Executable_ppmfuzzer \
160 Executable_psdfuzzer \
161 Executable_epsfuzzer \
162 Executable_pctfuzzer \
163 Executable_pcxfuzzer \
164 Executable_rasfuzzer \
165 Executable_tgafuzzer \
166 Executable_tiffuzzer \
167 Executable_hwpfuzzer \
168 Executable_602fuzzer \
169 Executable_lwpfuzzer \
170 Executable_olefuzzer \
171 Executable_pptfuzzer \
172 Executable_rtffuzzer \
173 Executable_cgmfuzzer \
174 Executable_ww2fuzzer \
175 Executable_ww6fuzzer \
176 Executable_ww8fuzzer \
177 Executable_qpwfuzzer \
178 Executable_slkfuzzer \
179 Executable_fodtfuzzer \
180 Executable_fodsfuzzer \
181 Executable_fodpfuzzer \
182 Executable_xlsfuzzer \
183 Executable_scrtffuzzer \
184 Executable_wksfuzzer \
185 Executable_diffuzzer \
186 Executable_docxfuzzer \
187 Executable_xlsxfuzzer \
188 Executable_pptxfuzzer \
189 Executable_mmlfuzzer \
190 Executable_mtpfuzzer \
191 Executable_htmlfuzzer \
192 Executable_sftfuzzer \
194 endif
196 $(eval $(call gb_Module_add_check_targets,vcl,\
197 CppunitTest_vcl_lifecycle \
198 CppunitTest_vcl_bitmap_test \
199 CppunitTest_vcl_bitmapprocessor_test \
200 CppunitTest_vcl_graphic_test \
201 CppunitTest_vcl_fontcharmap \
202 CppunitTest_vcl_font \
203 CppunitTest_vcl_fontfeature \
204 CppunitTest_vcl_fontmetric \
205 CppunitTest_vcl_complextext \
206 CppunitTest_vcl_filters_test \
207 CppunitTest_vcl_mnemonic \
208 CppunitTest_vcl_outdev \
209 CppunitTest_vcl_app_test \
210 CppunitTest_vcl_jpeg_read_write_test \
211 CppunitTest_vcl_svm_test \
212 CppunitTest_vcl_errorhandler \
213 CppunitTest_vcl_bitmap_render_test \
214 CppunitTest_vcl_apitests \
217 ifneq (,$(filter PDFIUM,$(BUILD_TYPE)))
218 $(eval $(call gb_Module_add_check_targets,vcl,\
219 CppunitTest_vcl_pdfexport \
221 endif
223 ifeq ($(USING_X11),TRUE)
224 $(eval $(call gb_Module_add_check_targets,vcl,\
225 CppunitTest_vcl_timer \
227 endif
229 ifeq ($(DISABLE_GUI),TRUE)
230 $(eval $(call gb_Module_add_check_targets,vcl,\
231 CppunitTest_vcl_timer \
233 endif
235 # Is any configuration missing?
236 ifeq ($(OS),WNT)
237 $(eval $(call gb_Module_add_check_targets,vcl,\
238 CppunitTest_vcl_timer \
239 CppunitTest_vcl_blocklistparser_test \
241 endif
243 ifeq ($(OS),MACOSX)
244 $(eval $(call gb_Module_add_check_targets,vcl,\
245 CppunitTest_vcl_timer \
247 endif
249 # screenshots
250 $(eval $(call gb_Module_add_screenshot_targets,vcl,\
251 CppunitTest_vcl_dialogs_test \
254 # vim: set noet sw=4 ts=4: