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_Executable_Executable
,soffice_bin
))
12 $(eval
$(call gb_Executable_set_include
,soffice_bin
,\
14 -I
$(SRCDIR
)/desktop
/source
/inc \
17 $(eval
$(call gb_Executable_use_libraries
,soffice_bin
,\
22 $(eval
$(call gb_Executable_add_cobjects
,soffice_bin
,\
23 desktop
/source
/app
/main \
28 $(eval
$(call gb_Executable_set_ldflags
,\
29 $(filter-out -bind_at_load
,$$(LDFLAGS
)) \
34 ifeq ($(OS
)-$(HAVE_MACOS_LD_PLATFORMVERSION
),MACOSX-TRUE
)
35 # At least when building against SDK 10.15, changing the LC_VERSION_MIN_MACOSX load command's sdk
36 # value from 10.15 to "n/a" (i.e., 0.0.0) is necessary to avoid blurry text in the LO UI (see
37 # <https://github.com/llvm/llvm-project/commit/25ce33a6e4f3b13732c0f851e68390dc2acb9123>
38 # "[driver][darwin] Pass -platform_version flag to the linker instead of the
39 # -<platform>_version_min flag", clang/test/Driver/darwin-ld-platform-version-macos.c in particular,
40 # for the -platform_version that Clang passes by default to new-enough ld):
41 $(eval
$(call gb_Executable_add_ldflags
,soffice_bin
, \
42 -Xlinker
-platform_version
-Xlinker macos
-Xlinker
$(MAC_OS_X_VERSION_MIN_REQUIRED_DOTS
) \
49 $(eval
$(call gb_Executable_set_targettype_gui
,soffice_bin
,NO
))
51 $(eval
$(call gb_Executable_add_nativeres
,soffice_bin
,sofficebin
/officeloader
))
53 $(eval
$(call gb_Executable_add_default_nativeres
,soffice_bin
,$(PRODUCTNAME
)))
57 $(eval
$(call gb_Executable_add_ldflags
,soffice_bin
,\
65 # vim: set ts=4 sw=4 et: