diff options
Diffstat (limited to 'desktop/CustomTarget_soffice.mk')
-rw-r--r-- | desktop/CustomTarget_soffice.mk | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/desktop/CustomTarget_soffice.mk b/desktop/CustomTarget_soffice.mk index d56f571628fe..26e661ec39dc 100644 --- a/desktop/CustomTarget_soffice.mk +++ b/desktop/CustomTarget_soffice.mk @@ -9,13 +9,30 @@ $(eval $(call gb_CustomTarget_CustomTarget,desktop/soffice)) +ifeq ($(OS), MACOSX) + +ifeq (,$(ENABLE_RELEASE_BUILD)) + +# Add entitlements if this is a non-release build. Just to be safe, +# this target will always be run and MACOSX_CODESIGNING_IDENTITY is +# set to empty as we don't want to sign $(INSTROOTBASE). Ignore +# failures as it appears that setting only entitlements can fail +# with certain macOS SDKs. +$(call gb_CustomTarget_get_target,desktop/soffice) : \ + $(INSTROOT)/$(LIBO_BIN_FOLDER)/soffice + -MACOSX_CODESIGNING_IDENTITY= $(SRCDIR)/solenv/bin/macosx-codesign-app-bundle $(INSTROOTBASE) + +endif + +else + $(call gb_CustomTarget_get_target,desktop/soffice) : \ - $(call gb_CustomTarget_get_workdir,desktop/soffice)/soffice.sh + $(gb_CustomTarget_workdir)/desktop/soffice/soffice.sh -$(call gb_CustomTarget_get_workdir,desktop/soffice)/soffice.sh : \ +$(gb_CustomTarget_workdir)/desktop/soffice/soffice.sh : \ $(SRCDIR)/desktop/scripts/soffice.sh \ $(BUILDDIR)/config_host.mk \ - | $(call gb_CustomTarget_get_workdir,desktop/soffice)/.dir + | $(gb_CustomTarget_workdir)/desktop/soffice/.dir $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SED,1) $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),SED) ifneq ($(JITC_PROCESSOR_TYPE),) @@ -25,4 +42,6 @@ else endif $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),SED) +endif + # vim:set shiftwidth=4 tabstop=4 noexpandtab: |