diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-21 08:37:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-21 08:37:44 +0200 |
commit | 18193c9635a5f2e926b4faf6d153e42ee7b367f8 (patch) | |
tree | 56757cbeeb2c219ccd5f323a602984802a7c0648 /wix/makefile | |
parent | 328d2174461efdbba406bb74d4d760a199d146ac (diff) |
Add WIX files for XSD .msi package
Diffstat (limited to 'wix/makefile')
-rw-r--r-- | wix/makefile | 65 |
1 files changed, 65 insertions, 0 deletions
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 $@ $< |