bump product version to 4.1.6.2
[LibreOffice.git] / postprocess / CustomTarget_signing.mk
blob3e2eec42cb64672413279fc3d41d69a65036a6e0
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 \
24 $(call gb_CustomTarget_get_workdir,postprocess/signing)/signing.done : \
25 $(call gb_Postprocess_get_target,AllLibraries) $(call gb_Postprocess_get_target,AllExecutables) \
26 $(call gb_Postprocess_get_target,AllModuleTests)
27 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,2)
28 ifeq ($(COM),MSC)
29 ifneq ($(ENABLE_DBGUTIL),TRUE)
30 $(PERL) $(SRCDIR)/postprocess/signing/signing.pl \
31 -e $(SRCDIR)/postprocess/signing/no_signing.txt \
32 -l $(subst .done,_log.txt,$@) \
33 $(if $(PFXFILE),-f $(PFXFILE)) \
34 $(if $(PFXPASSWORD),-p $(PFXPASSWORD)) \
35 $(if $(TIMESTAMPURL),-t $(TIMESTAMPURL)) \
36 $(OUTDIR)/bin/*.dll $(OUTDIR)/bin/*.exe \
37 && touch $@
38 else
39 @echo "Doing nothing on non product builds ..."
40 endif
41 else
42 @echo "Nothing to do, signing is Windows (MSC) only."
43 endif
45 # vim: set noet sw=4 ts=4: