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
,\
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
), \
26 $(eval
$(call gb_Library_use_external
,sofficeapp
,boost_headers
))
28 $(eval
$(call gb_Library_use_custom_headers
,sofficeapp
,\
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
) \
66 $(eval
$(call gb_Library_add_cxxflags
,sofficeapp
,\
70 $(eval
$(call gb_Library_use_system_darwin_frameworks
,sofficeapp
,\
77 $(eval
$(call gb_Library_add_cflags
,sofficeapp
,\
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
,\
108 $(eval
$(call gb_Library_use_static_libraries
,sofficeapp
,\
112 $(eval
$(call gb_Library_add_libs
,sofficeapp
,\
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
) \
130 ifeq ($(GUIBASE
),unx
)
131 $(eval
$(call gb_Library_add_exception_objects
,sofficeapp
,\
132 desktop
/source
/lib
/init \
137 ifeq ($(ENABLE_TELEPATHY
),TRUE
)
138 $(eval
$(call gb_Library_use_libraries
,sofficeapp
,tubes
))
141 # vim: set ts=4 sw=4 et: