bump product version to 5.0.4.1
[LibreOffice.git] / postprocess / CustomTarget_signing.mk
blob23a81ef686542c412b0bc3b66eee22e2056b84f5
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,postprocess/signing))
13 $(eval $(call gb_CustomTarget_register_targets,postprocess/signing,\
14 signing.done \
17 # PFXFILE and PFXPASSWORD should be set in environment
18 TIMESTAMPURL ?= "http://timestamp.globalsign.com/scripts/timestamp.dll"
20 $(call gb_CustomTarget_get_workdir,postprocess/signing)/signing.done: \
21 $(SRCDIR)/postprocess/signing/signing.pl \
22 $(SRCDIR)/postprocess/signing/no_signing.txt \
23 $(call gb_Postprocess_get_target,AllLibraries) \
24 $(call gb_Postprocess_get_target,AllExecutables) \
25 $(call gb_Postprocess_get_target,AllModuleTests) \
26 $(call gb_Postprocess_get_target,AllModuleSlowtests)
28 $(call gb_CustomTarget_get_workdir,postprocess/signing)/signing.done:
29 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,2)
30 ifeq ($(COM),MSC)
31 ifneq ($(ENABLE_DBGUTIL),TRUE)
32 EXCLUDELIST=$(shell $(gb_MKTEMP)) && \
33 cat $(SRCDIR)/postprocess/signing/no_signing.txt > $$EXCLUDELIST && \
34 echo "$(foreach lib,$(gb_MERGEDLIBS),$(call gb_Library_get_filename,$(lib)))" | tr ' ' '\n' >> $$EXCLUDELIST && \
35 $(PERL) $(SRCDIR)/postprocess/signing/signing.pl \
36 -e $$EXCLUDELIST \
37 -l $(subst .done,_log.txt,$@) \
38 $(if $(PFXFILE),-f $(PFXFILE)) \
39 $(if $(PFXPASSWORD),-p $(PFXPASSWORD)) \
40 $(if $(TIMESTAMPURL),-t $(TIMESTAMPURL)) \
41 $(INSTDIR)/URE/bin/*.dll \
42 $(INSTDIR)/URE/bin/*.exe \
43 $(INSTDIR)/program/*.dll \
44 $(INSTDIR)/program/*.exe \
45 $(INSTDIR)/program/shlxthdl/*.dll \
46 $(INSTDIR)/sdk/cli/*.dll \
47 $(INSTDIR)/sdk/bin/*.exe \
48 $(INSTDIR)/share/extensions/mysql-connector-ooo/*.dll\
49 && rm $$EXCLUDELIST && touch $@
50 else
51 @echo "Doing nothing on non product builds ..."
52 endif
53 else
54 @echo "Nothing to do, signing is Windows (MSC) only."
55 endif
57 # vim: set noet sw=4 ts=4: