Bump version to 21.06.18.1
[LibreOffice.git] / desktop / Library_sofficeapp.mk
blobab4fde902a1890ccb458295c254b892cefbd5807
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/.
10 $(eval $(call gb_Library_Library,sofficeapp))
12 $(eval $(call gb_Library_set_include,sofficeapp,\
13 $$(INCLUDE) \
14 -I$(SRCDIR)/desktop/inc \
15 -I$(SRCDIR)/desktop/source/inc \
16 -I$(SRCDIR)/desktop/source/deployment/inc \
19 $(eval $(call gb_Library_add_libs,sofficeapp,\
20 $(if $(filter LINUX %BSD SOLARIS, $(OS)), \
21 $(DLOPEN_LIBS) \
22 ) \
25 $(eval $(call gb_Library_use_externals,sofficeapp, \
26 $(if $(ENABLE_BREAKPAD),breakpad) \
27 $(if $(filter OPENCL,$(BUILD_TYPE)),clew) \
28 boost_headers \
29 dbus \
30 icu_headers \
31 icui18n \
32 icuuc \
33 $(if $(filter-out iOS,$(OS)), \
34 curl \
36 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
37 orcus-parser \
38 orcus )\
41 $(eval $(call gb_Library_use_custom_headers,sofficeapp,\
42 officecfg/registry \
45 $(eval $(call gb_Library_use_api,sofficeapp,\
46 udkapi \
47 offapi \
50 $(eval $(call gb_Library_add_defs,sofficeapp,\
51 -DDESKTOP_DLLIMPLEMENTATION \
52 $(if $(filter WNT,$(OS)),-DENABLE_QUICKSTART_APPLET) \
53 $(if $(filter MACOSX,$(OS)),-DENABLE_QUICKSTART_APPLET) \
56 $(eval $(call gb_Library_set_precompiled_header,sofficeapp,desktop/inc/pch/precompiled_sofficeapp))
58 $(eval $(call gb_Library_use_libraries,sofficeapp,\
59 comphelper \
60 cppu \
61 cppuhelper \
62 $(if $(ENABLE_BREAKPAD), \
63 crashreport \
64 ) \
65 deploymentmisc \
66 editeng \
67 fwk \
68 i18nlangtag \
69 $(if $(filter OPENCL,$(BUILD_TYPE)),opencl) \
70 sal \
71 salhelper \
72 sb \
73 sfx \
74 svl \
75 svx \
76 svxcore \
77 svt \
78 tk \
79 tl \
80 ucbhelper \
81 utl \
82 vcl \
85 ifeq ($(OS),WNT)
86 $(eval $(call gb_Library_use_static_libraries,sofficeapp,\
87 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
88 windows_process )\
90 endif
92 ifeq ($(OS),MACOSX)
94 $(eval $(call gb_Library_add_cxxflags,sofficeapp,\
95 $(gb_OBJCXXFLAGS) \
98 $(eval $(call gb_Library_use_system_darwin_frameworks,sofficeapp,\
99 Foundation \
102 endif
104 ifeq ($(OS),iOS)
106 $(eval $(call gb_Library_add_cflags,sofficeapp,\
107 $(gb_OBJCFLAGS) \
110 $(eval $(call gb_Library_add_cxxflags,sofficeapp,\
111 $(gb_OBJCXXFLAGS) \
114 endif
116 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
117 desktop/source/app/app \
118 desktop/source/app/appinit \
119 desktop/source/app/check_ext_deps \
120 desktop/source/app/cmdlineargs \
121 desktop/source/app/cmdlinehelp \
122 desktop/source/app/desktopcontext \
123 desktop/source/app/dispatchwatcher \
124 desktop/source/app/langselect \
125 desktop/source/app/lockfile2 \
126 desktop/source/app/officeipcthread \
127 desktop/source/app/opencl \
128 desktop/source/app/sofficemain \
129 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
130 desktop/source/app/updater )\
131 desktop/source/app/userinstall \
132 desktop/source/migration/migration \
135 ifeq ($(DISABLE_GUI),TRUE)
136 $(eval $(call gb_Library_add_libs,sofficeapp,\
137 -lm $(DLOPEN_LIBS) \
139 else
140 ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
141 ifeq ($(USING_X11),TRUE)
142 $(eval $(call gb_Library_use_static_libraries,sofficeapp,\
143 glxtest \
145 endif
147 $(eval $(call gb_Library_add_libs,sofficeapp,\
148 -lm $(DLOPEN_LIBS) \
149 -lX11 \
151 endif
152 endif
154 # LibreOfficeKit bits
155 ifneq ($(filter $(OS),ANDROID iOS MACOSX WNT),)
156 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
157 desktop/source/lib/init \
158 desktop/source/lib/lokinteractionhandler \
159 $(if $(filter-out $(OS),iOS), \
160 desktop/source/lib/lokclipboard) \
161 $(if $(filter $(OS),ANDROID), \
162 desktop/source/lib/lokandroid) \
164 $(if $(filter-out $(OS),iOS), \
165 $(eval $(call gb_Library_set_componentfile,sofficeapp,desktop/lokclipboard)))
166 else
167 ifeq ($(USING_X11),TRUE)
168 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
169 desktop/source/lib/init \
170 desktop/source/lib/lokinteractionhandler \
171 desktop/source/lib/lokclipboard \
173 $(eval $(call gb_Library_set_componentfile,sofficeapp,desktop/lokclipboard))
174 endif
175 ifeq ($(DISABLE_GUI),TRUE)
176 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
177 desktop/source/lib/init \
178 desktop/source/lib/lokinteractionhandler \
179 desktop/source/lib/lokclipboard \
181 $(eval $(call gb_Library_set_componentfile,sofficeapp,desktop/lokclipboard))
182 endif
183 endif
185 # vim: set ts=4 sw=4 et: