related tdf#150197: sd should SetListFormat
[LibreOffice.git] / desktop / Library_sofficeapp.mk
blob70f4b07ea04503f50b2b576ff9f78fcb3b792e9d
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_use_externals,sofficeapp, \
20 $(if $(ENABLE_BREAKPAD),breakpad) \
21 $(if $(filter OPENCL,$(BUILD_TYPE)),clew) \
22 boost_headers \
23 dbus \
24 icu_headers \
25 icui18n \
26 icuuc \
27 $(if $(filter-out EMSCRIPTEN iOS,$(OS)), \
28 curl \
30 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
31 orcus-parser \
32 orcus )\
35 $(eval $(call gb_Library_use_custom_headers,sofficeapp,\
36 officecfg/registry \
39 $(eval $(call gb_Library_use_api,sofficeapp,\
40 udkapi \
41 offapi \
44 $(eval $(call gb_Library_add_defs,sofficeapp,\
45 -DDESKTOP_DLLIMPLEMENTATION \
46 $(if $(filter WNT,$(OS)),-DENABLE_QUICKSTART_APPLET) \
47 $(if $(filter MACOSX,$(OS)),-DENABLE_QUICKSTART_APPLET) \
50 $(eval $(call gb_Library_set_precompiled_header,sofficeapp,desktop/inc/pch/precompiled_sofficeapp))
52 $(eval $(call gb_Library_use_libraries,sofficeapp,\
53 comphelper \
54 cppu \
55 cppuhelper \
56 $(if $(ENABLE_BREAKPAD), \
57 crashreport \
58 ) \
59 deploymentmisc \
60 editeng \
61 fwk \
62 i18nlangtag \
63 $(if $(filter OPENCL,$(BUILD_TYPE)),opencl) \
64 sal \
65 salhelper \
66 sb \
67 sfx \
68 svl \
69 svx \
70 svxcore \
71 svt \
72 tk \
73 tl \
74 ucbhelper \
75 utl \
76 vcl \
79 ifeq ($(OS),WNT)
80 $(eval $(call gb_Library_use_static_libraries,sofficeapp,\
81 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
82 windows_process )\
84 endif
86 ifeq ($(OS),MACOSX)
88 $(eval $(call gb_Library_add_cxxflags,sofficeapp,\
89 $(gb_OBJCXXFLAGS) \
92 $(eval $(call gb_Library_use_system_darwin_frameworks,sofficeapp,\
93 Foundation \
96 endif
98 ifeq ($(OS),iOS)
100 $(eval $(call gb_Library_add_cflags,sofficeapp,\
101 $(gb_OBJCFLAGS) \
104 $(eval $(call gb_Library_add_cxxflags,sofficeapp,\
105 $(gb_OBJCXXFLAGS) \
108 endif
110 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
111 desktop/source/app/app \
112 desktop/source/app/appinit \
113 desktop/source/app/check_ext_deps \
114 desktop/source/app/cmdlineargs \
115 desktop/source/app/cmdlinehelp \
116 desktop/source/app/desktopcontext \
117 desktop/source/app/dispatchwatcher \
118 desktop/source/app/langselect \
119 desktop/source/app/lockfile2 \
120 desktop/source/app/officeipcthread \
121 desktop/source/app/opencl \
122 desktop/source/app/sofficemain \
123 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
124 desktop/source/app/updater )\
125 desktop/source/app/userinstall \
126 desktop/source/migration/migration \
129 # LibreOfficeKit bits
130 ifneq ($(filter $(OS),ANDROID iOS MACOSX WNT),)
131 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
132 desktop/source/lib/init \
133 desktop/source/lib/lokinteractionhandler \
134 $(if $(filter-out $(OS),iOS), \
135 desktop/source/lib/lokclipboard) \
136 $(if $(filter $(OS),ANDROID), \
137 desktop/source/lib/lokandroid) \
139 else
140 ifeq ($(USING_X11),TRUE)
141 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
142 desktop/source/lib/init \
143 desktop/source/lib/lokinteractionhandler \
144 desktop/source/lib/lokclipboard \
146 endif
147 ifeq ($(DISABLE_GUI),TRUE)
148 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
149 desktop/source/lib/init \
150 desktop/source/lib/lokinteractionhandler \
151 desktop/source/lib/lokclipboard \
153 endif
154 endif
156 # vim: set ts=4 sw=4 et: