summaryrefslogtreecommitdiff
path: root/postprocess/CustomTarget_signing.mk
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-11-14 19:02:51 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2012-12-15 21:20:27 +0000
commite37eb6345dcc09620889a9b8622ea0b7b57da0e0 (patch)
treee6d7835a4cc94705041497fb44c23eb5e1b3055b /postprocess/CustomTarget_signing.mk
parentcc036a9b113c76cefba964cdac5a6f941c7a314c (diff)
postprocess: convert to gbuild
Change-Id: I6c81fa0f1b8d7273541d5d9883b5fc96a5091bbd Reviewed-on: https://gerrit.libreoffice.org/1080 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'postprocess/CustomTarget_signing.mk')
-rw-r--r--postprocess/CustomTarget_signing.mk42
1 files changed, 42 insertions, 0 deletions
diff --git a/postprocess/CustomTarget_signing.mk b/postprocess/CustomTarget_signing.mk
new file mode 100644
index 000000000000..f160b8e18182
--- /dev/null
+++ b/postprocess/CustomTarget_signing.mk
@@ -0,0 +1,42 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_CustomTarget_CustomTarget,postprocess/signing))
+
+$(eval $(call gb_CustomTarget_register_targets,postprocess/signing,\
+ signing.done \
+))
+
+# PFXFILE and PFXPASSWORD should be set in environment
+TIMESTAMPURL ?= "http://timestamp.verisign.com/scripts/timstamp.dll"
+
+$(call gb_CustomTarget_get_workdir,postprocess/signing)/signing.done: \
+ $(SRCDIR)/postprocess/signing/signing.pl \
+ $(SRCDIR)/postprocess/signing/no_signing.txt \
+
+$(call gb_CustomTarget_get_workdir,postprocess/signing)/signing.done:
+ $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,2)
+ifeq ($(COM),MSC)
+ifeq ($(PRODUCT),full)
+ $(PERL) $< -e $(SRCDIR)/postprocess/signing/no_signing.txt
+ -l $(subst .done,_log.txt,$@) \
+ -f $(PFXFILE) \
+ -p $(PFXPASSWORD) \
+ -t $(TIMESTAMPURL) \
+ $(OUTDIR)/bin/*.dll $(OUTDIR)/bin/so/*.dll \
+ $(OUTDIR)/bin/*.exe $(OUTDIR)/bin/so/*.exe \
+ && touch $@
+else
+ @echo "Doing nothing on non product builds ..."
+endif
+else
+ @echo "Nothing to do, signing is Windows (MSC) only."
+endif
+
+# vim: set noet sw=4 ts=4: