From 12b921c0c021f28ddfa0e41346eb6e162eb16e80 Mon Sep 17 00:00:00 2001 From: pmichaud Date: Sat, 28 Jul 2012 02:08:34 -0500 Subject: Refactor .msi building process a fair bit. --- skel/tools/build/Makefile.in | 17 ++++------- skel/tools/build/star-product.wxs | 64 +++++++++++++++++++++++++++++++++++++++ skel/tools/build/wxs-patch.pl | 15 --------- 3 files changed, 70 insertions(+), 26 deletions(-) create mode 100644 skel/tools/build/star-product.wxs delete mode 100644 skel/tools/build/wxs-patch.pl (limited to 'skel') diff --git a/skel/tools/build/Makefile.in b/skel/tools/build/Makefile.in index 84d7499..deeefa4 100644 --- a/skel/tools/build/Makefile.in +++ b/skel/tools/build/Makefile.in @@ -4,7 +4,7 @@ PARROT = parrot-4.6.0 NQP = nqp-2012.07 RAKUDO = rakudo-2012.07 -STAR = rakudo-star-2012.07 +STAR_VERSION = 2012.07 PARROT_ARGS = @@ -49,7 +49,6 @@ LINKARGS = $(LDFLAGS) $(LD_LOAD_FLAGS) $(LIBPARROT) @libs@ @icu_shared@ PERL6_EXE = perl6$(EXE) PERL6_LANG_DIR = $(PARROT_LIB_DIR)/languages/perl6 -STAR_WXS = $(STAR).wxs # This list must be kept in order, modules always coming after their # dependencies @@ -157,14 +156,10 @@ CRITIC_FILES=Configure.pl tools/build/ perlcritic: perlcritic -1 --profile tools/util/perlcritic.conf $(CRITIC_FILES) -$(STAR_WXS): $(PARROT_BIN_DIR) $(PREFIX_DIR) +msi: -$(CP) c:/strawberry/c/bin/libgcc_s_sjlj-1.dll $(PARROT_BIN_DIR) - cmd /c heat dir $(PREFIX_DIR) -gg -sfrag -template product -cg RakudoStar -out $(STAR_WXS) - $(PERL) -ibak tools/build/wxs-patch.pl $(STAR_WXS) - -wxs: $(STAR_WXS) - -msi: $(STAR_WXS) - cmd /c candle $(STAR_WXS) - cmd /c light -b $(PREFIX_DIR) $(STAR).wixobj + cmd /c heat dir rakudo -gg -sfrag -cg RakudoStar -dr INSTALLROOT -srd -out star-files.wxs + cmd /c candle star-files.wxs + cmd /c candle -dSTARVERSION=$(STAR_VERSION) tools/build/star-product.wxs + cmd /c light -b $(PREFIX_DIR) -ext WixUIExtension star-files.wixobj star-product.wixobj -o rakudo-star-$(STAR_VERSION).msi diff --git a/skel/tools/build/star-product.wxs b/skel/tools/build/star-product.wxs new file mode 100644 index 0000000..7dd0247 --- /dev/null +++ b/skel/tools/build/star-product.wxs @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 1 + + 1 + + 1 + + 1 + 1 + 1 + + + + + + + diff --git a/skel/tools/build/wxs-patch.pl b/skel/tools/build/wxs-patch.pl deleted file mode 100644 index 120c9b2..0000000 --- a/skel/tools/build/wxs-patch.pl +++ /dev/null @@ -1,15 +0,0 @@ -#! perl - -open my $fh, '<', 'VERSION' - or die "Cannot open VERSION for reading: $!"; -my $VERSION = <$fh>; chomp $VERSION; -close $fh; - -while (<>) { - s/PUT-COMPANY-NAME-HERE/Rakudo Perl 6/g; - s/PUT-PRODUCT-NAME-HERE/Rakudo Star $VERSION/g; - s/PUT-FEATURE-TITLE-HERE/Rakudo Star $VERSION/g; - print; -} - - -- cgit v1.1