Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / desktop / Library_sofficeapp.mk
blobe7c56f4ee0b76c8fdeddee40d0591e7fc9b7c340
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 i18nlangtag \
68 $(if $(filter OPENCL,$(BUILD_TYPE)),opencl) \
69 sal \
70 salhelper \
71 sb \
72 sfx \
73 svl \
74 svx \
75 svxcore \
76 svt \
77 tk \
78 tl \
79 ucbhelper \
80 utl \
81 vcl \
84 ifeq ($(OS),WNT)
85 $(eval $(call gb_Library_use_static_libraries,sofficeapp,\
86 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
87 windows_process )\
89 endif
91 ifeq ($(OS),MACOSX)
93 $(eval $(call gb_Library_add_cxxflags,sofficeapp,\
94 $(gb_OBJCXXFLAGS) \
97 $(eval $(call gb_Library_use_system_darwin_frameworks,sofficeapp,\
98 Foundation \
101 endif
103 ifeq ($(OS),iOS)
105 $(eval $(call gb_Library_add_cflags,sofficeapp,\
106 $(gb_OBJCFLAGS) \
109 $(eval $(call gb_Library_add_cxxflags,sofficeapp,\
110 $(gb_OBJCXXFLAGS) \
113 endif
115 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
116 desktop/source/app/app \
117 desktop/source/app/appinit \
118 desktop/source/app/check_ext_deps \
119 desktop/source/app/cmdlineargs \
120 desktop/source/app/cmdlinehelp \
121 desktop/source/app/desktopcontext \
122 desktop/source/app/dispatchwatcher \
123 desktop/source/app/langselect \
124 desktop/source/app/lockfile2 \
125 desktop/source/app/officeipcthread \
126 desktop/source/app/opencl \
127 desktop/source/app/sofficemain \
128 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
129 desktop/source/app/updater )\
130 desktop/source/app/userinstall \
131 desktop/source/migration/migration \
134 ifeq ($(DISABLE_GUI),TRUE)
135 $(eval $(call gb_Library_add_libs,sofficeapp,\
136 -lm $(DLOPEN_LIBS) \
138 else
139 ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
140 ifeq ($(USING_X11),TRUE)
141 $(eval $(call gb_Library_use_static_libraries,sofficeapp,\
142 glxtest \
144 endif
146 $(eval $(call gb_Library_add_libs,sofficeapp,\
147 -lm $(DLOPEN_LIBS) \
148 -lX11 \
150 endif
151 endif
153 # LibreOfficeKit bits
154 ifneq ($(filter $(OS),ANDROID iOS MACOSX WNT),)
155 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
156 desktop/source/lib/init \
157 desktop/source/lib/lokinteractionhandler \
158 desktop/source/lib/lokclipboard \
159 $(if $(filter $(OS),ANDROID), \
160 desktop/source/lib/lokandroid) \
162 else
163 ifeq ($(USING_X11),TRUE)
164 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
165 desktop/source/lib/init \
166 desktop/source/lib/lokinteractionhandler \
167 desktop/source/lib/lokclipboard \
169 endif
170 ifeq ($(DISABLE_GUI),TRUE)
171 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
172 desktop/source/lib/init \
173 desktop/source/lib/lokinteractionhandler \
174 desktop/source/lib/lokclipboard \
176 endif
177 endif
179 # vim: set ts=4 sw=4 et: