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 LINUX
%BSD SOLARIS
, $(OS
)), \
25 $(eval
$(call gb_Library_use_externals
,sofficeapp
, \
26 $(if
$(ENABLE_BREAKPAD
),breakpad
) \
27 $(if
$(filter OPENCL
,$(BUILD_TYPE
)),clew
) \
33 $(if
$(filter-out iOS
,$(OS
)), \
36 $(if
$(ENABLE_ONLINE_UPDATE_MAR
),\
41 $(eval
$(call gb_Library_use_custom_headers
,sofficeapp
,\
45 $(eval
$(call gb_Library_use_api
,sofficeapp
,\
50 $(eval
$(call gb_Library_add_defs
,sofficeapp
,\
51 -DDESKTOP_DLLIMPLEMENTATION \
52 $(if
$(filter WNT
,$(OS
)),-DENABLE_QUICKSTART_APPLET
) \
53 $(if
$(filter MACOSX
,$(OS
)),-DENABLE_QUICKSTART_APPLET
) \
56 $(eval
$(call gb_Library_set_precompiled_header
,sofficeapp
,desktop
/inc
/pch
/precompiled_sofficeapp
))
58 $(eval
$(call gb_Library_use_libraries
,sofficeapp
,\
62 $(if
$(ENABLE_BREAKPAD
), \
68 $(if
$(filter OPENCL
,$(BUILD_TYPE
)),opencl
) \
85 $(eval
$(call gb_Library_use_static_libraries
,sofficeapp
,\
86 $(if
$(ENABLE_ONLINE_UPDATE_MAR
),\
93 $(eval
$(call gb_Library_add_cxxflags
,sofficeapp
,\
97 $(eval
$(call gb_Library_use_system_darwin_frameworks
,sofficeapp
,\
105 $(eval
$(call gb_Library_add_cflags
,sofficeapp
,\
109 $(eval
$(call gb_Library_add_cxxflags
,sofficeapp
,\
115 $(eval
$(call gb_Library_add_exception_objects
,sofficeapp
,\
116 desktop
/source
/app
/app \
117 desktop
/source
/app
/appinit \
118 desktop
/source
/app
/check_ext_deps \
119 desktop
/source
/app
/cmdlineargs \
120 desktop
/source
/app
/cmdlinehelp \
121 desktop
/source
/app
/desktopcontext \
122 desktop
/source
/app
/dispatchwatcher \
123 desktop
/source
/app
/langselect \
124 desktop
/source
/app
/lockfile2 \
125 desktop
/source
/app
/officeipcthread \
126 desktop
/source
/app
/opencl \
127 desktop
/source
/app
/sofficemain \
128 $(if
$(ENABLE_ONLINE_UPDATE_MAR
),\
129 desktop
/source
/app
/updater
)\
130 desktop
/source
/app
/userinstall \
131 desktop
/source
/migration
/migration \
134 ifeq ($(DISABLE_GUI
),TRUE
)
135 $(eval
$(call gb_Library_add_libs
,sofficeapp
,\
139 ifeq ($(OS
), $(filter LINUX
%BSD SOLARIS
, $(OS
)))
140 ifeq ($(USING_X11
),TRUE
)
141 $(eval
$(call gb_Library_use_static_libraries
,sofficeapp
,\
146 $(eval
$(call gb_Library_add_libs
,sofficeapp
,\
153 # LibreOfficeKit bits
154 ifneq ($(filter $(OS
),ANDROID iOS MACOSX WNT
),)
155 $(eval
$(call gb_Library_add_exception_objects
,sofficeapp
,\
156 desktop
/source
/lib
/init \
157 desktop
/source
/lib
/lokinteractionhandler \
158 desktop
/source
/lib
/lokclipboard \
159 $(if
$(filter $(OS
),ANDROID
), \
160 desktop
/source
/lib
/lokandroid
) \
163 ifeq ($(USING_X11
),TRUE
)
164 $(eval
$(call gb_Library_add_exception_objects
,sofficeapp
,\
165 desktop
/source
/lib
/init \
166 desktop
/source
/lib
/lokinteractionhandler \
167 desktop
/source
/lib
/lokclipboard \
170 ifeq ($(DISABLE_GUI
),TRUE
)
171 $(eval
$(call gb_Library_add_exception_objects
,sofficeapp
,\
172 desktop
/source
/lib
/init \
173 desktop
/source
/lib
/lokinteractionhandler \
174 desktop
/source
/lib
/lokclipboard \
179 # vim: set ts=4 sw=4 et: