Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / desktop / CustomTarget_soffice.mk
blob4df29fc3cae35a29241c0929c97cba5834c87859
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_CustomTarget_CustomTarget,desktop/soffice))
12 ifeq ($(OS), MACOSX)
14 ifeq (,$(ENABLE_RELEASE_BUILD))
16 # Add entitlements if this is a non-release build. Just to be safe,
17 # this target will always be run and MACOSX_CODESIGNING_IDENTITY is
18 # set to empty as we don't want to sign $(INSTROOTBASE). Ignore
19 # failures as it appears that setting only entitlements can fail
20 # with certain macOS SDKs.
21 $(call gb_CustomTarget_get_target,desktop/soffice) : \
22 $(INSTROOT)/$(LIBO_BIN_FOLDER)/soffice
23 -MACOSX_CODESIGNING_IDENTITY= $(SRCDIR)/solenv/bin/macosx-codesign-app-bundle $(INSTROOTBASE)
25 endif
27 else
29 $(call gb_CustomTarget_get_target,desktop/soffice) : \
30 $(call gb_CustomTarget_get_workdir,desktop/soffice)/soffice.sh
32 $(call gb_CustomTarget_get_workdir,desktop/soffice)/soffice.sh : \
33 $(SRCDIR)/desktop/scripts/soffice.sh \
34 $(BUILDDIR)/config_host.mk \
35 | $(call gb_CustomTarget_get_workdir,desktop/soffice)/.dir
36 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SED,1)
37 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),SED)
38 ifneq ($(JITC_PROCESSOR_TYPE),)
39 sed -e "s/^#@JITC_PROCESSOR_TYPE_EXPORT@/export JITC_PROCESSOR_TYPE=$(JITC_PROCESSOR_TYPE)/" $< > $@
40 else
41 cp $< $@
42 endif
43 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),SED)
45 endif
47 # vim:set shiftwidth=4 tabstop=4 noexpandtab: