Branch libreoffice-5-0-4
[LibreOffice.git] / vcl / Module_vcl.mk
blobaa26183c774e19ae008edf771ee2a24705625c07
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 CustomTarget_afm_hash \
24 Library_vcl \
25 Package_opengl \
26 $(if $(filter DESKTOP,$(BUILD_TYPE)), \
27 StaticLibrary_vclmain \
28 $(if $(ENABLE_HEADLESS),, \
29 Executable_ui-previewer) \
30 $(if $(filter LINUX MACOSX WNT,$(OS)), \
31 Executable_outdevgrind \
32 $(if $(ENABLE_HEADLESS),, \
33 Executable_vcldemo \
34 Executable_icontest \
35 Executable_mtfdemo ))) \
36 $(if $(filter-out ANDROID IOS WNT,$(OS)), \
37 Executable_svdemo \
38 Executable_svptest \
39 Executable_svpclient) \
42 $(eval $(call gb_Module_add_l10n_targets,vcl,\
43 AllLangResTarget_vcl \
44 UIConfig_vcl \
47 ifeq ($(GUIBASE),unx)
48 $(eval $(call gb_Module_add_targets,vcl,\
49 Library_vclplug_gen \
50 Library_desktop_detector \
51 StaticLibrary_glxtest \
52 Package_fontunxppds \
53 Package_fontunxpsprint \
56 ifneq ($(ENABLE_GTK),)
57 $(eval $(call gb_Module_add_targets,vcl,\
58 Executable_xid_fullscreen_on_all_monitors \
59 Library_vclplug_gtk \
61 endif
62 ifneq ($(ENABLE_GTK3),)
63 $(eval $(call gb_Module_add_targets,vcl,\
64 Library_vclplug_gtk3 \
66 endif
67 ifneq ($(ENABLE_TDE),)
68 $(eval $(call gb_Module_add_targets,vcl,\
69 CustomTarget_tde_moc \
70 Executable_tdefilepicker \
71 Library_vclplug_tde \
73 endif
74 ifneq ($(ENABLE_KDE),)
75 $(eval $(call gb_Module_add_targets,vcl,\
76 CustomTarget_kde_moc \
77 Executable_kdefilepicker \
78 Library_vclplug_kde \
80 endif
81 ifneq ($(ENABLE_KDE4),)
82 $(eval $(call gb_Module_add_targets,vcl,\
83 CustomTarget_kde4_moc \
84 Library_vclplug_kde4 \
86 endif
87 endif
89 ifeq ($(OS),MACOSX)
90 $(eval $(call gb_Module_add_targets,vcl,\
91 Package_osxres \
93 endif
95 ifeq ($(OS),WNT)
96 $(eval $(call gb_Module_add_targets,vcl,\
97 WinResTarget_vcl \
99 endif
101 $(eval $(call gb_Module_add_check_targets,vcl,\
102 CppunitTest_vcl_lifecycle \
103 CppunitTest_vcl_bitmap_test \
104 CppunitTest_vcl_fontcharmap \
105 CppunitTest_vcl_complextext \
106 CppunitTest_vcl_filters_test \
107 CppunitTest_vcl_outdev \
108 CppunitTest_vcl_app_test \
109 CppunitTest_vcl_wmf_test \
113 ifeq ($(GUIBASE),unx)
114 $(eval $(call gb_Module_add_check_targets,vcl,\
115 CppunitTest_vcl_timer \
117 endif
119 ifeq ($(ENABLE_HEADLESS),TRUE)
120 $(eval $(call gb_Module_add_check_targets,vcl,\
121 CppunitTest_vcl_timer \
123 endif
124 # vim: set noet sw=4 ts=4: