Hi, we need to manage several builds of libxml2 in parallel on Windows. In order to support tagging the libraries produced by Makefile.msvc, we added the environment variable XML_TOOLSET to the script calling configure.js and nmake. The attached patch adds this option. If the variable is not set, the makefile behaves as in the current distribution.
Example of usage (in Windows batch file): set XML_TOOLSET=vc140-2.9.4 cscript configure.js <your other options go here> nmake <your-target> This will produce libxml2-vc140-2.9.4[.lib|.dll|_a.lib] instead of just libxml2[.lib|.dll|_a.lib] Please add this to the distribution. Best regards, Wolfgang Textor — Wolfgang Textor Project Manager CoDesCo IT Consulting GmbH Im Hegen 11 22113 Oststeinbek Germany phone +49-40-71300130 fax +49-40-71300160 mailto:wtex...@codesco.com http://www.codesco.com
--- /Source/svn_maint/OpenSource/libxml2/libxml2-2.7.3/win32/Makefile.msvc 2014-05-20 13:21:39 +0000 +++ /Source/sandbox/OpenSource/libxml2/win32/Makefile.msvc 2014-05-20 15:33:21 +0000 @@ -21,11 +21,18 @@ # Names of various input and output components. XML_NAME = xml2 XML_BASENAME = lib$(XML_NAME) +!if "$(XML_TOOLSET)" != "" +XML_SO = $(XML_BASENAME)-$(XML_TOOLSET).dll +XML_IMP = $(XML_BASENAME)-$(XML_TOOLSET).lib +XML_A = $(XML_BASENAME)-$(XML_TOOLSET)_a.lib +XML_A_DLL = $(XML_BASENAME)-$(XML_TOOLSET)_a_dll.lib +!else XML_SO = $(XML_BASENAME).dll XML_IMP = $(XML_BASENAME).lib -XML_DEF = $(XML_BASENAME).def XML_A = $(XML_BASENAME)_a.lib XML_A_DLL = $(XML_BASENAME)_a_dll.lib +!endif +XML_DEF = $(XML_BASENAME).def # Place where we let the compiler put its output. BINDIR = bin.msvc @@ -91,7 +98,7 @@ LDFLAGS = $(LDFLAGS) /DEBUG !else CFLAGS = $(CFLAGS) /D "NDEBUG" /O2 -LDFLAGS = $(LDFLAGS) /OPT:NOWIN98 +LDFLAGS = $(LDFLAGS) !endif # Libxml object files. @@ -262,7 +269,7 @@ _VC_MANIFEST_EMBED_DLL= !endif -all : libxml libxmla libxmladll utils +all : libxml libxmla libxmladll libxml : $(BINDIR)\$(XML_SO)
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml