tdf#159243 fix packaging of Noto fonts/fix Armenian UI on macOS
[LibreOffice.git] / desktop / Library_sofficeapp.mk
blob641efda7eda2178075705da55ef5f139ff9c0b8a
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 $(eval $(call gb_Library_use_api,sofficeapp,\
41 udkapi \
42 offapi \
45 $(eval $(call gb_Library_add_defs,sofficeapp,\
46 -DDESKTOP_DLLIMPLEMENTATION \
47 $(if $(filter WNT,$(OS)),-DENABLE_QUICKSTART_APPLET) \
48 $(if $(filter MACOSX,$(OS)),-DENABLE_QUICKSTART_APPLET) \
51 $(eval $(call gb_Library_set_precompiled_header,sofficeapp,desktop/inc/pch/precompiled_sofficeapp))
53 $(eval $(call gb_Library_use_libraries,sofficeapp,\
54 comphelper \
55 cppu \
56 cppuhelper \
57 $(if $(ENABLE_BREAKPAD), \
58 crashreport \
59 ) \
60 deploymentmisc \
61 editeng \
62 fwk \
63 i18nlangtag \
64 $(if $(filter OPENCL,$(BUILD_TYPE)),opencl) \
65 sal \
66 salhelper \
67 sb \
68 sfx \
69 svl \
70 svx \
71 svxcore \
72 svt \
73 tk \
74 tl \
75 ucbhelper \
76 utl \
77 vcl \
80 ifeq ($(OS),WNT)
81 $(eval $(call gb_Library_use_static_libraries,sofficeapp,\
82 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
83 windows_process )\
85 endif
87 ifeq ($(OS),MACOSX)
89 $(eval $(call gb_Library_add_cxxflags,sofficeapp,\
90 $(gb_OBJCXXFLAGS) \
93 $(eval $(call gb_Library_use_system_darwin_frameworks,sofficeapp,\
94 Foundation \
97 endif
99 ifeq ($(OS),iOS)
101 $(eval $(call gb_Library_add_cflags,sofficeapp,\
102 $(gb_OBJCFLAGS) \
105 $(eval $(call gb_Library_add_cxxflags,sofficeapp,\
106 $(gb_OBJCXXFLAGS) \
109 endif
111 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
112 desktop/source/app/app \
113 desktop/source/app/appinit \
114 desktop/source/app/check_ext_deps \
115 desktop/source/app/cmdlineargs \
116 desktop/source/app/cmdlinehelp \
117 desktop/source/app/desktopcontext \
118 desktop/source/app/dispatchwatcher \
119 desktop/source/app/langselect \
120 desktop/source/app/lockfile2 \
121 desktop/source/app/officeipcthread \
122 desktop/source/app/opencl \
123 desktop/source/app/sofficemain \
124 $(if $(ENABLE_ONLINE_UPDATE_MAR),\
125 desktop/source/app/updater )\
126 desktop/source/app/userinstall \
127 desktop/source/migration/migration \
130 # LibreOfficeKit bits
131 ifneq ($(filter $(OS),ANDROID iOS MACOSX WNT),)
132 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
133 desktop/source/lib/init \
134 desktop/source/lib/lokinteractionhandler \
135 $(if $(filter-out $(OS),iOS), \
136 desktop/source/lib/lokclipboard) \
137 $(if $(filter $(OS),ANDROID), \
138 desktop/source/lib/lokandroid) \
140 $(if $(filter-out $(OS),IOS), \
141 $(eval $(call gb_Library_set_componentfile,sofficeapp,desktop/lokclipboard,services)))
142 else
143 ifneq ($(filter TRUE,$(USING_X11) $(DISABLE_GUI))($filter EMSCRIPTEN,$(OS)),)
144 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
145 desktop/source/lib/init \
146 desktop/source/lib/lokinteractionhandler \
147 desktop/source/lib/lokclipboard \
149 $(eval $(call gb_Library_set_componentfile,sofficeapp,desktop/lokclipboard,services))
150 endif
151 endif
153 # vim: set ts=4 sw=4 et: