javauis/eswt_qt/ui_mts_sis/Makefile
changeset 35 85266cc22c7f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/javauis/eswt_qt/ui_mts_sis/Makefile	Fri Jun 11 13:33:44 2010 +0300
@@ -0,0 +1,58 @@
+#
+# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+# All rights reserved.
+# This component and the accompanying materials are made available
+# under the terms of "Eclipse Public License v1.0"
+# which accompanies this distribution, and is available
+# at the URL "http://www.eclipse.org/legal/epl-v10.html".
+#
+# Initial Contributors:
+# Nokia Corporation - initial contribution.
+#
+# Contributors:
+#
+# Description:
+#
+
+# About signing certificates:
+#	Used signing certificates can be given by specifying certificate 
+#	directories with macro SIGNING_KEY_DIRS. Each .der file in the 
+#	directories is used as certificate, and must be accompanied with
+# 	a .key file having same basename. Directories must be specificed
+#	using slashes as directory separator also in windows. Any path 
+#	accessible by OS can be used, including windows share UNCs.
+
+include $(JAVA_SRC_ROOT)/build/Makefile.defs
+
+SISFILES = java_3_1.sis
+
+
+all: $(SISFILES)
+
+# Find signing certificates from SIGNING_KEY_DIR (*.der, each having .key file)
+# Fix path to native separator
+SIGNING_CERTS=$(call PATHFIX,$(wildcard $(addsuffix /*.der,$(SIGNING_KEY_DIRS))))
+
+$(DEPLOYDIR)/% :: % 
+	if not exist $(WINDEPLOYDIR) mkdir $(WINDEPLOYDIR)
+	copy $< $(subst /,\,$@)
+
+# Recreate the SIS files always
+.phony: ALWAYS
+.phony: all clean reallyclean
+
+
+CPP_SIS_CMD = cpp -lang-asm -P -undef
+
+%.sis: %.pkg ALWAYS
+	$(CPP_SIS_CMD) $< $<.pkg
+	makesis $<.pkg unsigned.$@
+	copy unsigned.$@ $@
+	echo Signing with $(SIGNING_CERTS) \
+	$(foreach cert,$(SIGNING_CERTS), && signsis $@ $@ $(cert) $(basename $(cert)).key)
+	del $<.pkg
+
+clean:
+	del *.sis* 2>NUL
+
+reallyclean: clean