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
), \
69 $(if
$(filter OPENCL
,$(BUILD_TYPE
)),opencl
) \
86 $(eval
$(call gb_Library_use_static_libraries
,sofficeapp
,\
87 $(if
$(ENABLE_ONLINE_UPDATE_MAR
),\
94 $(eval
$(call gb_Library_add_cxxflags
,sofficeapp
,\
98 $(eval
$(call gb_Library_use_system_darwin_frameworks
,sofficeapp
,\
106 $(eval
$(call gb_Library_add_cflags
,sofficeapp
,\
110 $(eval
$(call gb_Library_add_cxxflags
,sofficeapp
,\
116 $(eval
$(call gb_Library_add_exception_objects
,sofficeapp
,\
117 desktop
/source
/app
/app \
118 desktop
/source
/app
/appinit \
119 desktop
/source
/app
/check_ext_deps \
120 desktop
/source
/app
/cmdlineargs \
121 desktop
/source
/app
/cmdlinehelp \
122 desktop
/source
/app
/desktopcontext \
123 desktop
/source
/app
/dispatchwatcher \
124 desktop
/source
/app
/langselect \
125 desktop
/source
/app
/lockfile2 \
126 desktop
/source
/app
/officeipcthread \
127 desktop
/source
/app
/opencl \
128 desktop
/source
/app
/sofficemain \
129 $(if
$(ENABLE_ONLINE_UPDATE_MAR
),\
130 desktop
/source
/app
/updater
)\
131 desktop
/source
/app
/userinstall \
132 desktop
/source
/migration
/migration \
135 ifeq ($(DISABLE_GUI
),TRUE
)
136 $(eval
$(call gb_Library_add_libs
,sofficeapp
,\
140 ifeq ($(OS
), $(filter LINUX
%BSD SOLARIS
, $(OS
)))
141 ifeq ($(USING_X11
),TRUE
)
142 $(eval
$(call gb_Library_use_static_libraries
,sofficeapp
,\
147 $(eval
$(call gb_Library_add_libs
,sofficeapp
,\
154 # LibreOfficeKit bits
155 ifneq ($(filter $(OS
),ANDROID iOS MACOSX WNT
),)
156 $(eval
$(call gb_Library_add_exception_objects
,sofficeapp
,\
157 desktop
/source
/lib
/init \
158 desktop
/source
/lib
/lokinteractionhandler \
159 $(if
$(filter-out $(OS
),iOS
), \
160 desktop
/source
/lib
/lokclipboard
) \
161 $(if
$(filter $(OS
),ANDROID
), \
162 desktop
/source
/lib
/lokandroid
) \
164 $(if
$(filter-out $(OS
),iOS
), \
165 $(eval
$(call gb_Library_set_componentfile
,sofficeapp
,desktop
/lokclipboard
)))
167 ifeq ($(USING_X11
),TRUE
)
168 $(eval
$(call gb_Library_add_exception_objects
,sofficeapp
,\
169 desktop
/source
/lib
/init \
170 desktop
/source
/lib
/lokinteractionhandler \
171 desktop
/source
/lib
/lokclipboard \
173 $(eval
$(call gb_Library_set_componentfile
,sofficeapp
,desktop
/lokclipboard
))
175 ifeq ($(DISABLE_GUI
),TRUE
)
176 $(eval
$(call gb_Library_add_exception_objects
,sofficeapp
,\
177 desktop
/source
/lib
/init \
178 desktop
/source
/lib
/lokinteractionhandler \
179 desktop
/source
/lib
/lokclipboard \
181 $(eval
$(call gb_Library_set_componentfile
,sofficeapp
,desktop
/lokclipboard
))
185 # vim: set ts=4 sw=4 et: