From: glenlow Date: Thu, 6 Mar 2008 07:13:20 +0000 (+0000) Subject: WiX builds for MSI installation packages on Windows X-Git-Tag: LAST_LIBGRAPH~32^2~4565 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2a39c6d012d3715d8e5e9808f8c834f2c7a3b36;p=graphviz WiX builds for MSI installation packages on Windows --- diff --git a/configure.ac b/configure.ac index 9bfb9831c..1ea301d39 100644 --- a/configure.ac +++ b/configure.ac @@ -2495,6 +2495,7 @@ AC_CONFIG_FILES(Makefile macosx/Info.plist macosx/graphviz.pmdoc/01local.xml macosx/graphviz.pmdoc/02graphviz.xml + windows/graphviz.wxs plugin/Makefile plugin/core/Makefile plugin/devil/Makefile diff --git a/windows/graphviz.msi.make b/windows/graphviz.msi.make new file mode 100755 index 000000000..ef0b4cbc5 --- /dev/null +++ b/windows/graphviz.msi.make @@ -0,0 +1,27 @@ +WIX = $(PROGRAMFILES)\Windows Installer XML v3\bin +CANDLE = "$(WIX)\candle.exe" +LIGHT = "$(WIX)\light.exe" +HEAT = "$(WIX)\heat.exe" +SED = sed +BUILD = build\usr\local + +graphviz.msi : graphviz.wixobj bin.wixobj include.wixobj lib.wixobj share.wixobj + $(LIGHT) -ext WixUIExtension -cultures:en-us -out $@ $^ + +%.wixobj : %.wxs + $(CANDLE) -sw1092 -out $@ $^ + +# we need to post process dir.wxs with sed to: +# (1) change the GUID markers PUT-GUID-HERE to the autogenerated * +# (2) change the ComponentGroup1 ID to the dir +# (3) change the graphviz id of a directory to dir_graphviz +# (4) convert first in Fragment to +# (5) convert last in Fragment to +bin.wxs include.wxs lib.wxs share.wxs : %.wxs : $(shell find "$(BUILD)" -type f) + $(HEAT) dir "$(BUILD)\$*" -sfrag -out $*-pre.wxs && \ + $(SED) 's/PUT-GUID-HERE/*/g; s/Id="ComponentGroup1"/Id="$*"/g; s/Id="graphviz"/Id="$*_graphviz"/g; $!N; s/\(\W*\)/\1/g; s/<\/Directory>\(\W*<\/Fragment>\)/<\/DirectoryRef>\1/g; P; D' $*-pre.wxs >$*.wxs + +.PHONY : clean +clean : + -rm *.msi *.wixobj bin*.wxs include*.wxs lib*.wxs share*.wxs + diff --git a/windows/graphviz.wxs.in b/windows/graphviz.wxs.in new file mode 100755 index 000000000..fd8e0deae --- /dev/null +++ b/windows/graphviz.wxs.in @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NEWPRODUCTFOUND + + + + + NEWPRODUCTFOUND + + +