build fix
[LibreOffice.git] / vcl / Module_vcl.mk
blobcdb6f04e9737029af6bb0bd736ed8ad2543fcc5e
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 $(if $(filter WNT,$(OS)), \
26 Package_opengl_blacklist ) \
27 $(if $(filter DESKTOP,$(BUILD_TYPE)), \
28 StaticLibrary_vclmain \
29 $(if $(ENABLE_MACOSX_SANDBOX),, \
30 $(if $(ENABLE_HEADLESS),, \
31 Executable_ui-previewer)) \
32 $(if $(filter LINUX MACOSX SOLARIS WNT %BSD,$(OS)), \
33 Executable_outdevgrind \
34 $(if $(ENABLE_HEADLESS),, \
35 Executable_vcldemo \
36 Executable_icontest \
37 Executable_visualbackendtest \
38 Executable_mtfdemo ))) \
39 $(if $(filter-out ANDROID IOS WNT,$(OS)), \
40 Executable_svdemo \
41 Executable_fftester \
42 Executable_svptest \
43 Executable_svpclient) \
46 $(eval $(call gb_Module_add_l10n_targets,vcl,\
47 AllLangResTarget_vcl \
48 UIConfig_vcl \
51 ifeq ($(USING_X11),TRUE)
52 $(eval $(call gb_Module_add_targets,vcl,\
53 Library_vclplug_gen \
54 Library_desktop_detector \
55 StaticLibrary_glxtest \
56 Package_fontunxppds \
57 Package_fontunxpsprint \
60 ifneq ($(ENABLE_GTK),)
61 $(eval $(call gb_Module_add_targets,vcl,\
62 Executable_xid_fullscreen_on_all_monitors \
63 Library_vclplug_gtk \
65 endif
66 ifneq ($(ENABLE_GTK3),)
67 $(eval $(call gb_Module_add_targets,vcl,\
68 Library_vclplug_gtk3 \
70 endif
71 ifneq ($(ENABLE_TDE),)
72 $(eval $(call gb_Module_add_targets,vcl,\
73 CustomTarget_tde_moc \
74 Executable_tdefilepicker \
75 Library_vclplug_tde \
77 endif
78 ifneq ($(ENABLE_KDE4),)
79 $(eval $(call gb_Module_add_targets,vcl,\
80 CustomTarget_kde4_moc \
81 Library_vclplug_kde4 \
83 endif
84 endif
86 ifeq ($(OS),MACOSX)
87 $(eval $(call gb_Module_add_targets,vcl,\
88 Package_osxres \
90 endif
92 ifeq ($(OS),WNT)
93 $(eval $(call gb_Module_add_targets,vcl,\
94 WinResTarget_vcl \
96 endif
98 $(eval $(call gb_Module_add_check_targets,vcl,\
99 CppunitTest_vcl_lifecycle \
100 CppunitTest_vcl_bitmap_test \
101 CppunitTest_vcl_fontcharmap \
102 CppunitTest_vcl_font \
103 CppunitTest_vcl_fontmetric \
104 CppunitTest_vcl_complextext \
105 CppunitTest_vcl_filters_test \
106 CppunitTest_vcl_mapmode \
107 CppunitTest_vcl_outdev \
108 CppunitTest_vcl_app_test \
109 $(if $(MERGELIBS),,CppunitTest_vcl_wmf_test) \
110 CppunitTest_vcl_jpeg_read_write_test \
111 CppunitTest_vcl_pdfexport \
115 ifeq ($(USING_X11),TRUE)
116 $(eval $(call gb_Module_add_check_targets,vcl,\
117 CppunitTest_vcl_timer \
119 endif
121 ifeq ($(ENABLE_HEADLESS),TRUE)
122 $(eval $(call gb_Module_add_check_targets,vcl,\
123 CppunitTest_vcl_timer \
125 endif
127 # Is any configuration missing?
128 ifeq ($(OS),WNT)
129 $(eval $(call gb_Module_add_check_targets,vcl,\
130 CppunitTest_vcl_timer \
131 CppunitTest_vcl_blocklistparser_test \
133 endif
135 # screenshots
136 $(eval $(call gb_Module_add_screenshot_targets,vcl,\
137 CppunitTest_vcl_dialogs_test \
140 # vim: set noet sw=4 ts=4: