bump product version to 5.0.4.1
[LibreOffice.git] / desktop / Library_sofficeapp.mk
blob467fecc8ffc249237cb2361a9cb859cc19121d93
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 $(OS),LINUX), \
21 -ldl \
22 -lpthread \
23 ) \
26 $(eval $(call gb_Library_use_external,sofficeapp,boost_headers))
28 $(eval $(call gb_Library_use_custom_headers,sofficeapp,\
29 officecfg/registry \
32 $(eval $(call gb_Library_use_sdk_api,sofficeapp))
34 $(eval $(call gb_Library_add_defs,sofficeapp,\
35 -DDESKTOP_DLLIMPLEMENTATION \
36 $(if $(filter WNT,$(OS)),-DENABLE_QUICKSTART_APPLET) \
37 $(if $(filter MACOSX,$(OS)),-DENABLE_QUICKSTART_APPLET) \
38 $(if $(filter TRUE,$(ENABLE_SYSTRAY_GTK)),-DENABLE_QUICKSTART_APPLET) \
41 $(eval $(call gb_Library_set_precompiled_header,sofficeapp,$(SRCDIR)/desktop/inc/pch/precompiled_sofficeapp))
43 $(eval $(call gb_Library_use_libraries,sofficeapp,\
44 $(if $(filter $(OS),ANDROID),,basebmp) \
45 comphelper \
46 cppu \
47 cppuhelper \
48 deploymentmisc \
49 i18nlangtag \
50 sal \
51 salhelper \
52 sb \
53 sfx \
54 svl \
55 svt \
56 tk \
57 tl \
58 ucbhelper \
59 utl \
60 vcl \
61 $(gb_UWINAPI) \
64 ifeq ($(OS),MACOSX)
66 $(eval $(call gb_Library_add_cxxflags,sofficeapp,\
67 $(gb_OBJCXXFLAGS) \
70 $(eval $(call gb_Library_use_system_darwin_frameworks,sofficeapp,\
71 Foundation \
74 endif
76 ifeq ($(OS),IOS)
77 $(eval $(call gb_Library_add_cflags,sofficeapp,\
78 $(gb_OBJCFLAGS) \
80 endif
82 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
83 desktop/source/app/app \
84 desktop/source/app/appinit \
85 desktop/source/app/check_ext_deps \
86 desktop/source/app/cmdlineargs \
87 desktop/source/app/cmdlinehelp \
88 desktop/source/app/configinit \
89 desktop/source/app/desktopcontext \
90 desktop/source/app/desktopresid \
91 desktop/source/app/dispatchwatcher \
92 desktop/source/app/langselect \
93 desktop/source/app/lockfile2 \
94 desktop/source/app/officeipcthread \
95 desktop/source/app/sofficemain \
96 desktop/source/app/userinstall \
97 desktop/source/migration/migration \
100 ifeq ($(ENABLE_HEADLESS),TRUE)
101 $(eval $(call gb_Library_add_libs,sofficeapp,\
102 -lm \
103 -ldl \
104 -lpthread \
106 else
107 ifeq ($(OS),LINUX)
108 $(eval $(call gb_Library_use_static_libraries,sofficeapp,\
109 glxtest \
112 $(eval $(call gb_Library_add_libs,sofficeapp,\
113 -lm \
114 -ldl \
115 -lpthread \
116 -lGL \
117 -lX11 \
119 endif
120 endif
122 # LibreOfficeKit bits
123 ifneq ($(filter $(OS),ANDROID IOS),)
124 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
125 desktop/source/lib/init \
126 $(if $(filter $(OS),ANDROID), \
127 desktop/source/lib/lokandroid) \
129 else
130 ifeq ($(GUIBASE),unx)
131 $(eval $(call gb_Library_add_exception_objects,sofficeapp,\
132 desktop/source/lib/init \
134 endif
135 endif
137 ifeq ($(ENABLE_TELEPATHY),TRUE)
138 $(eval $(call gb_Library_use_libraries,sofficeapp,tubes))
139 endif
141 # vim: set ts=4 sw=4 et: