Update git submodules
[LibreOffice.git] / desktop / Library_sofficeapp.mk
blobcc39ccd12f9200233e083951e70d0165a8d0e4a0
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 $(ENABLE_CURL), \
28 $(if $(filter-out EMSCRIPTEN iOS,$(OS)), \
29 curl \
30 ))\
31 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
32 orcus-parser \
33 orcus )\
36 $(eval $(call gb_Library_use_custom_headers,sofficeapp,\
37 officecfg/registry \
40 ifeq ($(OS),EMSCRIPTEN)
41 $(eval $(call gb_Library_use_custom_headers,sofficeapp, \
42 static/unoembind \
44 endif
46 $(eval $(call gb_Library_use_api,sofficeapp,\
47 udkapi \
48 offapi \
51 $(eval $(call gb_Library_add_defs,sofficeapp,\
52 -DDESKTOP_DLLIMPLEMENTATION \
53 $(if $(filter WNT,$(OS)),-DENABLE_QUICKSTART_APPLET) \
54 $(if $(filter MACOSX,$(OS)),-DENABLE_QUICKSTART_APPLET) \
57 $(eval $(call gb_Library_set_precompiled_header,sofficeapp,desktop/inc/pch/precompiled_sofficeapp))
59 $(eval $(call gb_Library_use_libraries,sofficeapp,\
60 comphelper \
61 cppu \
62 cppuhelper \
63 $(if $(ENABLE_BREAKPAD), \
64 crashreport \
65 ) \
66 deploymentmisc \
67 editeng \
68 fwk \
69 i18nlangtag \
70 $(if $(filter OPENCL,$(BUILD_TYPE)),opencl) \
71 sal \
72 salhelper \
73 sb \
74 sfx \
75 svl \
76 svx \
77 svxcore \
78 svt \
79 tk \
80 tl \
81 ucbhelper \
82 utl \
83 vcl \
86 ifeq ($(OS),WNT)
87 $(eval $(call gb_Library_use_static_libraries,sofficeapp,\
88 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
89 windows_process )\
91 endif
93 ifeq ($(OS),MACOSX)
95 $(eval $(call gb_Library_add_cxxflags,sofficeapp,\
96 $(gb_OBJCXXFLAGS) \
99 $(eval $(call gb_Library_use_system_darwin_frameworks,sofficeapp,\
100 Foundation \
103 endif
105 ifeq ($(OS),iOS)
107 $(eval $(call gb_Library_add_cflags,sofficeapp,\
108 $(gb_OBJCFLAGS) \
111 $(eval $(call gb_Library_add_cxxflags,sofficeapp,\
112 $(gb_OBJCXXFLAGS) \
115 endif
117 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
118 desktop/source/app/app \
119 desktop/source/app/appinit \
120 desktop/source/app/check_ext_deps \
121 desktop/source/app/cmdlineargs \
122 desktop/source/app/cmdlinehelp \
123 desktop/source/app/desktopcontext \
124 desktop/source/app/dispatchwatcher \
125 desktop/source/app/langselect \
126 desktop/source/app/lockfile2 \
127 desktop/source/app/officeipcthread \
128 desktop/source/app/opencl \
129 desktop/source/app/sofficemain \
130 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
131 desktop/source/app/updater )\
132 desktop/source/app/userinstall \
133 desktop/source/migration/migration \
136 # LibreOfficeKit bits
137 ifneq ($(filter $(OS),ANDROID iOS MACOSX WNT),)
138 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
139 desktop/source/lib/init \
140 desktop/source/lib/lokinteractionhandler \
141 $(if $(filter-out $(OS),iOS), \
142 desktop/source/lib/lokclipboard) \
143 $(if $(filter $(OS),ANDROID), \
144 desktop/source/lib/lokandroid) \
146 $(if $(filter-out $(OS),IOS), \
147 $(eval $(call gb_Library_set_componentfile,sofficeapp,desktop/lokclipboard,services)))
148 else
149 ifneq ($(filter TRUE,$(USING_X11) $(DISABLE_GUI))($filter EMSCRIPTEN,$(OS)),)
150 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
151 desktop/source/lib/init \
152 desktop/source/lib/lokinteractionhandler \
153 desktop/source/lib/lokclipboard \
155 $(eval $(call gb_Library_set_componentfile,sofficeapp,desktop/lokclipboard,services))
156 endif
157 endif
159 # vim: set ts=4 sw=4 et: