From 18193c9635a5f2e926b4faf6d153e42ee7b367f8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 21 Jul 2014 08:37:44 +0200 Subject: Add WIX files for XSD .msi package --- wix/makefile | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 wix/makefile (limited to 'wix/makefile') diff --git a/wix/makefile b/wix/makefile new file mode 100644 index 0000000..8f81f6b --- /dev/null +++ b/wix/makefile @@ -0,0 +1,65 @@ +include config.make + +WIXROOT := ../../tools/wix-3.0 +LIGHT := $(WIXROOT)/light +CANDLE := $(WIXROOT)/candle +FILELIST := ./filelist.pl + +# +# +export XSD_VERSION +export XERCES_VERSION +export PRODUCT_CODE +export UPGRADE_CODE +export XSD_SERIES := $(word 1,$(subst ., ,$(XSD_VERSION))).$(word 2,$(subst ., ,$(XSD_VERSION))) +export XSD_DIST := ../xsd-i686-windows +export XERCES_DIST := ../../xerces-vc + + +# +# +LIGHT_FLAGS := -ext WixUIExtension -ext WixUtilExtension -cultures:en-us + +SRC := xsd.wxs +GEN := xsd-include.wxs examples.wxs doc.wxs etc.wxs xerces-include.wxs \ +xerces-src.wxs + + +# +# +xsd-$(XSD_SERIES).msi: $(SRC:.wxs=.wixobj) $(GEN:.wxs=.wixobj) license.rtf + $(LIGHT) $(LIGHT_FLAGS) -o $@ $(filter %.wixobj,$^) + +xsd-include.wxs: + $(FILELIST) -out $@ -dir xsd -ref-id INCLUDE_XSD -comp-id include_xsd -prefix $(XSD_DIST)/libxsd + +examples.wxs: + $(FILELIST) -out $@ -dir cxx -ref-id EXAMPLES_CXXDIR -comp-id examples -ignore makefile -prefix $(XSD_DIST)/examples + +doc.wxs: + $(FILELIST) -out $@ -dir doc -ref-id DOCDIR -comp-id doc -ignore makefile -ignore xsd.1 -prefix $(XSD_DIST) + +etc.wxs: + $(FILELIST) -out $@ -dir etc -ref-id ETCDIR -comp-id etc -prefix $(XSD_DIST) + +xerces-include.wxs: + $(FILELIST) -out $@ -dir xercesc -ref-id INCLUDE_XERCESCDIR -comp-id include_xerces -prefix $(XERCES_DIST)/include + +xerces-src.wxs: + $(FILELIST) -out $@ -dir xerces-c-$(XERCES_VERSION) -ref-id XERCESSRCDIR -comp-id src_xerces -prefix $(XERCES_DIST) + +# +# +.PHONY: clean realclean + +clean: + rm -f xsd-$(XSD_SERIES).msi $(SRC:.wxs=.wixobj) $(GEN:.wxs=.wixobj) + +realclean: clean + rm -f $(GEN) + + +# Pattern rules +# +%.wixobj: %.wxs + $(CANDLE) -o $@ $< -- cgit v1.1