2002-03-24 21:00:26 +00:00
/ * C o n f i g u r e s c r i p t f o r l i b x m l , s p e c i f i c f o r W i n d o w s w i t h S c r i p t i n g H o s t .
*
* This script will configure the libxml build process and create necessary files .
* Run it with an 'help' , or an invalid option and it will tell you what options
* it accepts .
*
2002-12-18 14:53:54 +00:00
* March 2002 , Igor Zlatkovic < igor @ zlatkovic . com >
2002-03-24 21:00:26 +00:00
* /
/* The source directory, relative to the one where this file resides. */
var srcDirXml = ".." ;
var srcDirUtils = ".." ;
/* Base name of what we are building. */
var baseName = "libxml2" ;
/ * C o n f i g u r e f i l e w h i c h c o n t a i n s t h e v e r s i o n a n d t h e o u t p u t f i l e w h e r e
we can store our build configuration . * /
2014-10-28 18:13:53 +08:00
var configFile = srcDirXml + "\\configure.ac" ;
2002-11-14 17:43:24 +00:00
var versionFile = ".\\config.msvc" ;
2002-11-22 21:41:09 +00:00
/* Input and output files regarding the libxml features. */
2002-03-24 21:00:26 +00:00
var optsFileIn = srcDirXml + "\\include\\libxml\\xmlversion.h.in" ;
var optsFile = srcDirXml + "\\include\\libxml\\xmlversion.h" ;
/ * V e r s i o n s t r i n g s f o r t h e b i n a r y d i s t r i b u t i o n . W i l l b e f i l l e d l a t e r
in the code . * /
var verMajor ;
var verMinor ;
var verMicro ;
2003-10-25 15:38:34 +00:00
var verMicroSuffix ;
2004-08-24 14:42:29 +00:00
var verCvs ;
var useCvsVer = true ;
2002-03-24 21:00:26 +00:00
/* Libxml features. */
var withTrio = false ;
2003-05-17 11:30:54 +00:00
var withThreads = "native" ;
2002-03-24 21:00:26 +00:00
var withFtp = true ;
var withHttp = true ;
var withHtml = true ;
var withC14n = true ;
var withCatalog = true ;
var withDocb = true ;
var withXpath = true ;
var withXptr = true ;
var withXinclude = true ;
var withIconv = true ;
2010-11-04 17:42:42 +01:00
var withIcu = false ;
2003-08-08 16:40:36 +00:00
var withIso8859x = false ;
2002-09-20 16:40:17 +00:00
var withZlib = false ;
2012-03-21 10:37:06 -04:00
var withLzma = false ;
2002-03-24 21:00:26 +00:00
var withDebug = true ;
var withMemDebug = false ;
2005-12-14 17:43:03 +00:00
var withRunDebug = false ;
2002-04-16 17:57:17 +00:00
var withSchemas = true ;
2005-07-31 14:05:18 +00:00
var withSchematron = true ;
2002-09-20 13:39:53 +00:00
var withRegExps = true ;
2005-01-04 15:10:22 +00:00
var withModules = true ;
2003-10-06 08:47:56 +00:00
var withTree = true ;
var withReader = true ;
2003-10-21 09:27:57 +00:00
var withWriter = true ;
2003-10-06 08:47:56 +00:00
var withWalker = true ;
2003-12-11 13:56:54 +00:00
var withPattern = true ;
2003-10-06 08:47:56 +00:00
var withPush = true ;
var withValid = true ;
var withSax1 = true ;
var withLegacy = true ;
var withOutput = true ;
2002-11-22 21:41:09 +00:00
var withPython = false ;
2002-03-24 21:00:26 +00:00
/* Win32 build options. */
2003-08-28 10:49:25 +00:00
var dirSep = "\\" ;
2002-11-14 17:43:24 +00:00
var compiler = "msvc" ;
2003-11-27 18:39:01 +00:00
var cruntime = "/MD" ;
2003-12-01 11:33:27 +00:00
var dynruntime = true ;
2007-06-08 19:47:37 +00:00
var vcmanifest = false ;
2002-03-24 21:00:26 +00:00
var buildDebug = 0 ;
var buildStatic = 0 ;
var buildPrefix = "." ;
2003-08-28 10:49:25 +00:00
var buildBinPrefix = "" ;
var buildIncPrefix = "" ;
var buildLibPrefix = "" ;
var buildSoPrefix = "" ;
2002-03-24 21:00:26 +00:00
var buildInclude = "." ;
var buildLib = "." ;
/* Local stuff */
var error = 0 ;
/ * H e l p e r f u n c t i o n , t r a n s f o r m s t h e o p t i o n v a r i a b l e i n t o t h e ' E n a b l e d '
or 'Disabled' string . * /
function boolToStr ( opt )
{
if ( opt == false )
2002-10-31 16:01:00 +00:00
return "no" ;
2002-03-24 21:00:26 +00:00
else if ( opt == true )
2002-10-31 16:01:00 +00:00
return "yes" ;
2002-03-24 21:00:26 +00:00
error = 1 ;
2002-10-31 16:01:00 +00:00
return "*** undefined ***" ;
2002-03-24 21:00:26 +00:00
}
/ * H e l p e r f u n c t i o n , t r a n s f o r m s t h e a r g u m e n t s t r i n g i n t o a b o o l e a n
value . * /
function strToBool ( opt )
{
if ( opt == 0 || opt == "no" )
return false ;
else if ( opt == 1 || opt == "yes" )
return true ;
error = 1 ;
return false ;
}
/* Displays the details about how to use this script. */
function usage ( )
{
var txt ;
txt = "Usage:\n" ;
txt += " cscript " + WScript . ScriptName + " <options>\n" ;
txt += " cscript " + WScript . ScriptName + " help\n\n" ;
txt += "Options can be specified in the form <option>=<value>, where the value is\n" ;
2002-10-31 16:01:00 +00:00
txt += "either 'yes' or 'no', if not stated otherwise.\n\n" ;
2002-11-14 17:43:24 +00:00
txt += "\nXML processor options, default value given in parentheses:\n\n" ;
2002-03-24 21:00:26 +00:00
txt += " trio: Enable TRIO string manipulator (" + ( withTrio ? "yes" : "no" ) + ")\n" ;
2002-10-31 16:01:00 +00:00
txt += " threads: Enable thread safety [no|ctls|native|posix] (" + ( withThreads ) + ") \n" ;
2002-03-24 21:00:26 +00:00
txt += " ftp: Enable FTP client (" + ( withFtp ? "yes" : "no" ) + ")\n" ;
txt += " http: Enable HTTP client (" + ( withHttp ? "yes" : "no" ) + ")\n" ;
txt += " html: Enable HTML processor (" + ( withHtml ? "yes" : "no" ) + ")\n" ;
txt += " c14n: Enable C14N support (" + ( withC14n ? "yes" : "no" ) + ")\n" ;
txt += " catalog: Enable catalog support (" + ( withCatalog ? "yes" : "no" ) + ")\n" ;
txt += " docb: Enable DocBook support (" + ( withDocb ? "yes" : "no" ) + ")\n" ;
txt += " xpath: Enable XPath support (" + ( withXpath ? "yes" : "no" ) + ")\n" ;
txt += " xptr: Enable XPointer support (" + ( withXptr ? "yes" : "no" ) + ")\n" ;
txt += " xinclude: Enable XInclude support (" + ( withXinclude ? "yes" : "no" ) + ")\n" ;
2002-09-20 16:40:17 +00:00
txt += " iconv: Enable iconv support (" + ( withIconv ? "yes" : "no" ) + ")\n" ;
2010-11-04 17:42:42 +01:00
txt += " icu: Enable icu support (" + ( withIcu ? "yes" : "no" ) + ")\n" ;
2003-08-08 16:40:36 +00:00
txt += " iso8859x: Enable ISO8859X support (" + ( withIso8859x ? "yes" : "no" ) + ")\n" ;
2002-09-20 16:40:17 +00:00
txt += " zlib: Enable zlib support (" + ( withZlib ? "yes" : "no" ) + ")\n" ;
2012-03-21 10:37:06 -04:00
txt += " lzma: Enable lzma support (" + ( withLzma ? "yes" : "no" ) + ")\n" ;
2002-03-24 21:00:26 +00:00
txt += " xml_debug: Enable XML debbugging module (" + ( withDebug ? "yes" : "no" ) + ")\n" ;
txt += " mem_debug: Enable memory debugger (" + ( withMemDebug ? "yes" : "no" ) + ")\n" ;
2005-12-14 17:43:03 +00:00
txt += " run_debug: Enable memory debugger (" + ( withRunDebug ? "yes" : "no" ) + ")\n" ;
2002-09-20 13:39:53 +00:00
txt += " regexps: Enable regular expressions (" + ( withRegExps ? "yes" : "no" ) + ")\n" ;
2005-01-04 15:10:22 +00:00
txt += " modules: Enable module support (" + ( withModules ? "yes" : "no" ) + ")\n" ;
2003-10-06 08:47:56 +00:00
txt += " tree: Enable tree api (" + ( withTree ? "yes" : "no" ) + ")\n" ;
txt += " reader: Enable xmlReader api (" + ( withReader ? "yes" : "no" ) + ")\n" ;
2003-10-21 09:27:57 +00:00
txt += " writer: Enable xmlWriter api (" + ( withWriter ? "yes" : "no" ) + ")\n" ;
2003-10-06 08:47:56 +00:00
txt += " walker: Enable xmlDocWalker api (" + ( withWalker ? "yes" : "no" ) + ")\n" ;
2003-12-11 13:56:54 +00:00
txt += " pattern: Enable xmlPattern api (" + ( withPattern ? "yes" : "no" ) + ")\n" ;
2003-10-06 08:47:56 +00:00
txt += " push: Enable push api (" + ( withPush ? "yes" : "no" ) + ")\n" ;
txt += " valid: Enable DTD validation support (" + ( withValid ? "yes" : "no" ) + ")\n" ;
txt += " sax1: Enable SAX1 api (" + ( withSax1 ? "yes" : "no" ) + ")\n" ;
txt += " legacy: Enable Deprecated api's (" + ( withLegacy ? "yes" : "no" ) + ")\n" ;
txt += " output: Enable serialization support (" + ( withOutput ? "yes" : "no" ) + ")\n" ;
2002-04-16 17:57:17 +00:00
txt += " schemas: Enable XML Schema support (" + ( withSchemas ? "yes" : "no" ) + ")\n" ;
2005-07-31 14:05:18 +00:00
txt += " schematron: Enable Schematron support (" + ( withSchematron ? "yes" : "no" ) + ")\n" ;
2002-11-22 21:41:09 +00:00
txt += " python: Build Python bindings (" + ( withPython ? "yes" : "no" ) + ")\n" ;
2002-03-24 21:00:26 +00:00
txt += "\nWin32 build options, default value given in parentheses:\n\n" ;
2003-06-14 16:48:26 +00:00
txt += " compiler: Compiler to be used [msvc|mingw|bcb] (" + compiler + ")\n" ;
2003-11-27 18:39:01 +00:00
txt += " cruntime: C-runtime compiler option (only msvc) (" + cruntime + ")\n" ;
2003-12-01 11:33:27 +00:00
txt += " dynruntime: Use the dynamic RTL (only bcb) (" + dynruntime + ")\n" ;
2007-06-08 19:47:37 +00:00
txt += " vcmanifest: Embed VC manifest (only msvc) (" + ( vcmanifest ? "yes" : "no" ) + ")\n" ;
2002-03-24 21:00:26 +00:00
txt += " debug: Build unoptimised debug executables (" + ( buildDebug ? "yes" : "no" ) + ")\n" ;
txt += " static: Link xmllint statically to libxml2 (" + ( buildStatic ? "yes" : "no" ) + ")\n" ;
2005-01-27 23:59:14 +00:00
txt += " Note: automatically enabled if cruntime is not /MD or /MDd\n" ;
2002-03-24 21:00:26 +00:00
txt += " prefix: Base directory for the installation (" + buildPrefix + ")\n" ;
txt += " bindir: Directory where xmllint and friends should be installed\n" ;
txt += " (" + buildBinPrefix + ")\n" ;
txt += " incdir: Directory where headers should be installed\n" ;
txt += " (" + buildIncPrefix + ")\n" ;
txt += " libdir: Directory where static and import libraries should be\n" ;
txt += " installed (" + buildLibPrefix + ")\n" ;
txt += " sodir: Directory where shared libraries should be installed\n" ;
txt += " (" + buildSoPrefix + ")\n" ;
txt += " include: Additional search path for the compiler, particularily\n" ;
txt += " where iconv headers can be found (" + buildInclude + ")\n" ;
txt += " lib: Additional search path for the linker, particularily\n" ;
txt += " where iconv library can be found (" + buildLib + ")\n" ;
WScript . Echo ( txt ) ;
}
/ * D i s c o v e r s t h e v e r s i o n w e a r e w o r k i n g w i t h b y r e a d i n g t h e a p r o p r i a t e
configuration file . Despite its name , this also writes the configuration
file included by our makefile . * /
function discoverVersion ( )
{
2004-08-24 14:42:29 +00:00
var fso , cf , vf , ln , s , iDot , iSlash ;
2002-03-24 21:00:26 +00:00
fso = new ActiveXObject ( "Scripting.FileSystemObject" ) ;
2004-08-24 14:42:29 +00:00
verCvs = "" ;
if ( useCvsVer && fso . FileExists ( "..\\CVS\\Entries" ) ) {
cf = fso . OpenTextFile ( "..\\CVS\\Entries" , 1 ) ;
while ( cf . AtEndOfStream != true ) {
ln = cf . ReadLine ( ) ;
s = new String ( ln ) ;
if ( s . search ( /^\/ChangeLog\// ) != - 1 ) {
iDot = s . indexOf ( "." ) ;
iSlash = s . indexOf ( "/" , iDot ) ;
verCvs = "CVS" + s . substring ( iDot + 1 , iSlash ) ;
break ;
}
}
cf . Close ( ) ;
}
2002-03-24 21:00:26 +00:00
cf = fso . OpenTextFile ( configFile , 1 ) ;
2002-11-14 17:43:24 +00:00
if ( compiler == "msvc" )
versionFile = ".\\config.msvc" ;
else if ( compiler == "mingw" )
versionFile = ".\\config.mingw" ;
2003-06-14 16:48:26 +00:00
else if ( compiler == "bcb" )
versionFile = ".\\config.bcb" ;
2002-03-24 21:00:26 +00:00
vf = fso . CreateTextFile ( versionFile , true ) ;
vf . WriteLine ( "# " + versionFile ) ;
vf . WriteLine ( "# This file is generated automatically by " + WScript . ScriptName + "." ) ;
vf . WriteBlankLines ( 1 ) ;
while ( cf . AtEndOfStream != true ) {
ln = cf . ReadLine ( ) ;
s = new String ( ln ) ;
2003-09-24 21:45:21 +00:00
if ( s . search ( /^LIBXML_MAJOR_VERSION=/ ) != - 1 ) {
2002-03-24 21:00:26 +00:00
vf . WriteLine ( s ) ;
verMajor = s . substring ( s . indexOf ( "=" ) + 1 , s . length )
2003-09-24 21:45:21 +00:00
} else if ( s . search ( /^LIBXML_MINOR_VERSION=/ ) != - 1 ) {
2002-03-24 21:00:26 +00:00
vf . WriteLine ( s ) ;
verMinor = s . substring ( s . indexOf ( "=" ) + 1 , s . length )
2003-09-24 21:45:21 +00:00
} else if ( s . search ( /^LIBXML_MICRO_VERSION=/ ) != - 1 ) {
2002-03-24 21:00:26 +00:00
vf . WriteLine ( s ) ;
verMicro = s . substring ( s . indexOf ( "=" ) + 1 , s . length )
2003-09-24 21:45:21 +00:00
} else if ( s . search ( /^LIBXML_MICRO_VERSION_SUFFIX=/ ) != - 1 ) {
vf . WriteLine ( s ) ;
verMicroSuffix = s . substring ( s . indexOf ( "=" ) + 1 , s . length )
2002-03-24 21:00:26 +00:00
}
}
cf . Close ( ) ;
vf . WriteLine ( "XML_SRCDIR=" + srcDirXml ) ;
vf . WriteLine ( "UTILS_SRCDIR=" + srcDirUtils ) ;
vf . WriteLine ( "WITH_TRIO=" + ( withTrio ? "1" : "0" ) ) ;
2002-10-31 16:01:00 +00:00
vf . WriteLine ( "WITH_THREADS=" + withThreads ) ;
2002-03-24 21:00:26 +00:00
vf . WriteLine ( "WITH_FTP=" + ( withFtp ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_HTTP=" + ( withHttp ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_HTML=" + ( withHtml ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_C14N=" + ( withC14n ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_CATALOG=" + ( withCatalog ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_DOCB=" + ( withDocb ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_XPATH=" + ( withXpath ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_XPTR=" + ( withXptr ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_XINCLUDE=" + ( withXinclude ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_ICONV=" + ( withIconv ? "1" : "0" ) ) ;
2010-11-04 17:42:42 +01:00
vf . WriteLine ( "WITH_ICU=" + ( withIcu ? "1" : "0" ) ) ;
2003-08-08 16:40:36 +00:00
vf . WriteLine ( "WITH_ISO8859X=" + ( withIso8859x ? "1" : "0" ) ) ;
2002-09-20 16:40:17 +00:00
vf . WriteLine ( "WITH_ZLIB=" + ( withZlib ? "1" : "0" ) ) ;
2012-03-21 10:37:06 -04:00
vf . WriteLine ( "WITH_LZMA=" + ( withLzma ? "1" : "0" ) ) ;
2002-03-24 21:00:26 +00:00
vf . WriteLine ( "WITH_DEBUG=" + ( withDebug ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_MEM_DEBUG=" + ( withMemDebug ? "1" : "0" ) ) ;
2005-12-14 17:43:03 +00:00
vf . WriteLine ( "WITH_RUN_DEBUG=" + ( withRunDebug ? "1" : "0" ) ) ;
2002-04-16 17:57:17 +00:00
vf . WriteLine ( "WITH_SCHEMAS=" + ( withSchemas ? "1" : "0" ) ) ;
2005-07-31 14:05:18 +00:00
vf . WriteLine ( "WITH_SCHEMATRON=" + ( withSchematron ? "1" : "0" ) ) ;
2002-09-20 13:39:53 +00:00
vf . WriteLine ( "WITH_REGEXPS=" + ( withRegExps ? "1" : "0" ) ) ;
2005-01-04 15:10:22 +00:00
vf . WriteLine ( "WITH_MODULES=" + ( withModules ? "1" : "0" ) ) ;
2003-10-06 08:47:56 +00:00
vf . WriteLine ( "WITH_TREE=" + ( withTree ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_READER=" + ( withReader ? "1" : "0" ) ) ;
2003-10-21 09:27:57 +00:00
vf . WriteLine ( "WITH_WRITER=" + ( withWriter ? "1" : "0" ) ) ;
2003-10-06 08:47:56 +00:00
vf . WriteLine ( "WITH_WALKER=" + ( withWalker ? "1" : "0" ) ) ;
2003-12-11 13:56:54 +00:00
vf . WriteLine ( "WITH_PATTERN=" + ( withPattern ? "1" : "0" ) ) ;
2003-10-06 08:47:56 +00:00
vf . WriteLine ( "WITH_PUSH=" + ( withPush ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_VALID=" + ( withValid ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_SAX1=" + ( withSax1 ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_LEGACY=" + ( withLegacy ? "1" : "0" ) ) ;
vf . WriteLine ( "WITH_OUTPUT=" + ( withOutput ? "1" : "0" ) ) ;
2002-11-22 21:41:09 +00:00
vf . WriteLine ( "WITH_PYTHON=" + ( withPython ? "1" : "0" ) ) ;
2002-03-24 21:00:26 +00:00
vf . WriteLine ( "DEBUG=" + ( buildDebug ? "1" : "0" ) ) ;
vf . WriteLine ( "STATIC=" + ( buildStatic ? "1" : "0" ) ) ;
vf . WriteLine ( "PREFIX=" + buildPrefix ) ;
vf . WriteLine ( "BINPREFIX=" + buildBinPrefix ) ;
vf . WriteLine ( "INCPREFIX=" + buildIncPrefix ) ;
vf . WriteLine ( "LIBPREFIX=" + buildLibPrefix ) ;
vf . WriteLine ( "SOPREFIX=" + buildSoPrefix ) ;
2002-11-14 17:43:24 +00:00
if ( compiler == "msvc" ) {
vf . WriteLine ( "INCLUDE=$(INCLUDE);" + buildInclude ) ;
vf . WriteLine ( "LIB=$(LIB);" + buildLib ) ;
2003-11-27 18:39:01 +00:00
vf . WriteLine ( "CRUNTIME=" + cruntime ) ;
2007-06-08 19:47:37 +00:00
vf . WriteLine ( "VCMANIFEST=" + ( vcmanifest ? "1" : "0" ) ) ;
2002-11-14 17:43:24 +00:00
} else if ( compiler == "mingw" ) {
2011-09-14 16:00:28 +08:00
vf . WriteLine ( "INCLUDE+= -I" + buildInclude ) ;
vf . WriteLine ( "LIB+= -L" + buildLib ) ;
2003-06-14 16:48:26 +00:00
} else if ( compiler == "bcb" ) {
vf . WriteLine ( "INCLUDE=" + buildInclude ) ;
vf . WriteLine ( "LIB=" + buildLib ) ;
2007-06-08 19:47:37 +00:00
vf . WriteLine ( "DYNRUNTIME=" + ( dynruntime ? "1" : "0" ) ) ;
2003-06-14 16:48:26 +00:00
}
2002-03-24 21:00:26 +00:00
vf . Close ( ) ;
}
/ * C o n f i g u r e s l i b x m l . T h i s o n e w i l l g e n e r a t e x m l v e r s i o n . h f r o m x m l v e r s i o n . h . i n
taking what the user passed on the command line into account . * /
function configureLibxml ( )
{
var fso , ofi , of , ln , s ;
fso = new ActiveXObject ( "Scripting.FileSystemObject" ) ;
ofi = fso . OpenTextFile ( optsFileIn , 1 ) ;
of = fso . CreateTextFile ( optsFile , true ) ;
while ( ofi . AtEndOfStream != true ) {
ln = ofi . ReadLine ( ) ;
s = new String ( ln ) ;
if ( s . search ( /\@VERSION\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@VERSION\@/ ,
2003-09-24 21:45:21 +00:00
verMajor + "." + verMinor + "." + verMicro + verMicroSuffix ) ) ;
2002-03-24 21:00:26 +00:00
} else if ( s . search ( /\@LIBXML_VERSION_NUMBER\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@LIBXML_VERSION_NUMBER\@/ ,
verMajor * 10000 + verMinor * 100 + verMicro * 1 ) ) ;
2004-08-24 14:42:29 +00:00
} else if ( s . search ( /\@LIBXML_VERSION_EXTRA\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@LIBXML_VERSION_EXTRA\@/ , verCvs ) ) ;
2002-03-24 21:00:26 +00:00
} else if ( s . search ( /\@WITH_TRIO\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_TRIO\@/ , withTrio ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_THREADS\@/ ) != - 1 ) {
2002-10-31 16:01:00 +00:00
of . WriteLine ( s . replace ( /\@WITH_THREADS\@/ , withThreads == "no" ? "0" : "1" ) ) ;
2012-12-12 17:16:00 +08:00
} else if ( s . search ( /\@WITH_THREAD_ALLOC\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_THREAD_ALLOC\@/ , "0" ) ) ;
2002-03-24 21:00:26 +00:00
} else if ( s . search ( /\@WITH_FTP\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_FTP\@/ , withFtp ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_HTTP\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_HTTP\@/ , withHttp ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_HTML\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_HTML\@/ , withHtml ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_C14N\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_C14N\@/ , withC14n ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_CATALOG\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_CATALOG\@/ , withCatalog ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_DOCB\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_DOCB\@/ , withDocb ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_XPATH\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_XPATH\@/ , withXpath ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_XPTR\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_XPTR\@/ , withXptr ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_XINCLUDE\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_XINCLUDE\@/ , withXinclude ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_ICONV\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_ICONV\@/ , withIconv ? "1" : "0" ) ) ;
2010-11-04 17:42:42 +01:00
} else if ( s . search ( /\@WITH_ICU\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_ICU\@/ , withIcu ? "1" : "0" ) ) ;
2003-08-08 16:40:36 +00:00
} else if ( s . search ( /\@WITH_ISO8859X\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_ISO8859X\@/ , withIso8859x ? "1" : "0" ) ) ;
2002-09-20 16:40:17 +00:00
} else if ( s . search ( /\@WITH_ZLIB\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_ZLIB\@/ , withZlib ? "1" : "0" ) ) ;
2012-03-21 10:37:06 -04:00
} else if ( s . search ( /\@WITH_LZMA\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_LZMA\@/ , withLzma ? "1" : "0" ) ) ;
2002-03-24 21:00:26 +00:00
} else if ( s . search ( /\@WITH_DEBUG\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_DEBUG\@/ , withDebug ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_MEM_DEBUG\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_MEM_DEBUG\@/ , withMemDebug ? "1" : "0" ) ) ;
2005-12-14 17:43:03 +00:00
} else if ( s . search ( /\@WITH_RUN_DEBUG\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_RUN_DEBUG\@/ , withRunDebug ? "1" : "0" ) ) ;
2002-04-16 17:57:17 +00:00
} else if ( s . search ( /\@WITH_SCHEMAS\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_SCHEMAS\@/ , withSchemas ? "1" : "0" ) ) ;
2005-07-31 14:05:18 +00:00
} else if ( s . search ( /\@WITH_SCHEMATRON\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_SCHEMATRON\@/ , withSchematron ? "1" : "0" ) ) ;
2002-09-20 13:39:53 +00:00
} else if ( s . search ( /\@WITH_REGEXPS\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_REGEXPS\@/ , withRegExps ? "1" : "0" ) ) ;
2005-01-04 15:10:22 +00:00
} else if ( s . search ( /\@WITH_MODULES\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_MODULES\@/ , withModules ? "1" : "0" ) ) ;
} else if ( s . search ( /\@MODULE_EXTENSION\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@MODULE_EXTENSION\@/ , ".dll" ) ) ;
2003-10-06 08:47:56 +00:00
} else if ( s . search ( /\@WITH_TREE\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_TREE\@/ , withTree ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_READER\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_READER\@/ , withReader ? "1" : "0" ) ) ;
2003-10-21 09:27:57 +00:00
} else if ( s . search ( /\@WITH_WRITER\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_WRITER\@/ , withWriter ? "1" : "0" ) ) ;
2003-10-06 08:47:56 +00:00
} else if ( s . search ( /\@WITH_WALKER\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_WALKER\@/ , withWalker ? "1" : "0" ) ) ;
2003-12-11 13:56:54 +00:00
} else if ( s . search ( /\@WITH_PATTERN\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_PATTERN\@/ , withPattern ? "1" : "0" ) ) ;
2003-10-06 08:47:56 +00:00
} else if ( s . search ( /\@WITH_PUSH\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_PUSH\@/ , withPush ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_VALID\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_VALID\@/ , withValid ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_SAX1\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_SAX1\@/ , withSax1 ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_LEGACY\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_LEGACY\@/ , withLegacy ? "1" : "0" ) ) ;
} else if ( s . search ( /\@WITH_OUTPUT\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_OUTPUT\@/ , withOutput ? "1" : "0" ) ) ;
2002-03-24 21:00:26 +00:00
} else
of . WriteLine ( ln ) ;
}
ofi . Close ( ) ;
of . Close ( ) ;
}
2002-11-22 21:41:09 +00:00
/* Configures Python bindings. Otherwise identical to the above */
function configureLibxmlPy ( )
{
var pyOptsFileIn = srcDirXml + "\\python\\setup.py.in" ;
var pyOptsFile = srcDirXml + "\\python\\setup.py" ;
var fso , ofi , of , ln , s ;
fso = new ActiveXObject ( "Scripting.FileSystemObject" ) ;
ofi = fso . OpenTextFile ( pyOptsFileIn , 1 ) ;
of = fso . CreateTextFile ( pyOptsFile , true ) ;
while ( ofi . AtEndOfStream != true ) {
ln = ofi . ReadLine ( ) ;
s = new String ( ln ) ;
if ( s . search ( /\@LIBXML_VERSION\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@LIBXML_VERSION\@/ ,
verMajor + "." + verMinor + "." + verMicro ) ) ;
} else if ( s . search ( /\@prefix\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@prefix\@/ , buildPrefix ) ) ;
2003-04-27 22:14:07 +00:00
} else if ( s . search ( /\@WITH_THREADS\@/ ) != - 1 ) {
of . WriteLine ( s . replace ( /\@WITH_THREADS\@/ , withThreads == "no" ? "0" : "1" ) ) ;
2002-11-22 21:41:09 +00:00
} else
of . WriteLine ( ln ) ;
}
ofi . Close ( ) ;
of . Close ( ) ;
}
2002-03-24 21:00:26 +00:00
/ * C r e a t e s t h e r e a d m e f i l e f o r t h e b i n a r y d i s t r i b u t i o n o f ' b n a m e ' , f o r t h e
version 'ver' in the file 'file' . This one is called from the Makefile when
generating a binary distribution . The parameters are passed by make . * /
function genReadme ( bname , ver , file )
{
var fso , f ;
fso = new ActiveXObject ( "Scripting.FileSystemObject" ) ;
f = fso . CreateTextFile ( file , true ) ;
f . WriteLine ( " " + bname + " " + ver ) ;
f . WriteLine ( " --------------" ) ;
f . WriteBlankLines ( 1 ) ;
f . WriteLine ( " This is " + bname + ", version " + ver + ", binary package for the native Win32/IA32" ) ;
f . WriteLine ( "platform." ) ;
f . WriteBlankLines ( 1 ) ;
2004-06-09 14:32:47 +00:00
f . WriteLine ( " The files in this package do not require any special installation" ) ;
f . WriteLine ( "steps. Extract the contents of the archive whereever you wish and" ) ;
f . WriteLine ( "make sure that your tools which use " + bname + " can find it." ) ;
2002-03-24 21:00:26 +00:00
f . WriteBlankLines ( 1 ) ;
2004-06-09 14:32:47 +00:00
f . WriteLine ( " For example, if you want to run the supplied utilities from the command" ) ;
f . WriteLine ( "line, you can, if you wish, add the 'bin' subdirectory to the PATH" ) ;
f . WriteLine ( "environment variable." ) ;
f . WriteLine ( " If you want to make programmes in C which use " + bname + ", you'll" ) ;
f . WriteLine ( "likely know how to use the contents of this package. If you don't, please" ) ;
f . WriteLine ( "refer to your compiler's documentation." ) ;
2002-09-10 19:07:02 +00:00
f . WriteBlankLines ( 1 ) ;
2002-03-24 21:00:26 +00:00
f . WriteLine ( " If there is something you cannot keep for yourself, such as a problem," ) ;
f . WriteLine ( "a cheer of joy, a comment or a suggestion, feel free to contact me using" ) ;
f . WriteLine ( "the address below." ) ;
f . WriteBlankLines ( 1 ) ;
2002-12-18 14:53:54 +00:00
f . WriteLine ( " Igor Zlatkovic (igor@zlatkovic.com)" ) ;
2002-03-24 21:00:26 +00:00
f . Close ( ) ;
}
2003-08-08 16:40:36 +00:00
2002-03-24 21:00:26 +00:00
/ *
* main ( ) ,
* Execution begins here .
* /
// Parse the command-line arguments.
for ( i = 0 ; ( i < WScript . Arguments . length ) && ( error == 0 ) ; i ++ ) {
var arg , opt ;
arg = WScript . Arguments ( i ) ;
opt = arg . substring ( 0 , arg . indexOf ( "=" ) ) ;
if ( opt . length == 0 )
opt = arg . substring ( 0 , arg . indexOf ( ":" ) ) ;
if ( opt . length > 0 ) {
if ( opt == "trio" )
withTrio = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "threads" )
2002-10-31 16:01:00 +00:00
withThreads = arg . substring ( opt . length + 1 , arg . length ) ;
2002-03-24 21:00:26 +00:00
else if ( opt == "ftp" )
withFtp = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "http" )
withHttp = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "html" )
withHtml = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2002-04-10 21:57:11 +00:00
else if ( opt == "c14n" )
withC14n = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2002-03-24 21:00:26 +00:00
else if ( opt == "catalog" )
withCatalog = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "docb" )
withDocb = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "xpath" )
withXpath = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "xptr" )
withXptr = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "xinclude" )
withXinclude = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "iconv" )
withIconv = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2010-11-04 17:42:42 +01:00
else if ( opt == "icu" )
withIcu = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2003-08-08 16:40:36 +00:00
else if ( opt == "iso8859x" )
withIso8859x = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2002-09-20 16:40:17 +00:00
else if ( opt == "zlib" )
withZlib = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2012-03-21 10:37:06 -04:00
else if ( opt == "lzma" )
withLzma = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2002-03-24 21:00:26 +00:00
else if ( opt == "xml_debug" )
withDebug = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "mem_debug" )
withMemDebug = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2005-12-14 17:43:03 +00:00
else if ( opt == "run_debug" )
withRunDebug = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2002-04-16 17:57:17 +00:00
else if ( opt == "schemas" )
withSchemas = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2005-07-31 14:05:18 +00:00
else if ( opt == "schematron" )
withSchematron = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2002-09-20 13:39:53 +00:00
else if ( opt == "regexps" )
withRegExps = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2005-08-02 11:27:54 +00:00
else if ( opt == "modules" )
withModules = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2003-10-06 08:47:56 +00:00
else if ( opt == "tree" )
withTree = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "reader" )
withReader = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2003-10-21 09:27:57 +00:00
else if ( opt == "writer" )
withWriter = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2003-10-06 08:47:56 +00:00
else if ( opt == "walker" )
withWalker = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2003-12-11 13:56:54 +00:00
else if ( opt == "pattern" )
withPattern = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2003-10-06 08:47:56 +00:00
else if ( opt == "push" )
withPush = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "valid" )
withValid = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "sax1" )
withSax1 = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "legacy" )
withLegacy = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "output" )
withOutput = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2002-11-22 21:41:09 +00:00
else if ( opt == "python" )
withPython = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2002-11-14 17:43:24 +00:00
else if ( opt == "compiler" )
compiler = arg . substring ( opt . length + 1 , arg . length ) ;
2003-11-27 18:39:01 +00:00
else if ( opt == "cruntime" )
cruntime = arg . substring ( opt . length + 1 , arg . length ) ;
2003-12-01 11:33:27 +00:00
else if ( opt == "dynruntime" )
dynruntime = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2007-06-08 19:47:37 +00:00
else if ( opt == "vcmanifest" )
vcmanifest = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
2002-03-24 21:00:26 +00:00
else if ( opt == "debug" )
buildDebug = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "static" )
buildStatic = strToBool ( arg . substring ( opt . length + 1 , arg . length ) ) ;
else if ( opt == "prefix" )
buildPrefix = arg . substring ( opt . length + 1 , arg . length ) ;
else if ( opt == "incdir" )
buildIncPrefix = arg . substring ( opt . length + 1 , arg . length ) ;
else if ( opt == "bindir" )
buildBinPrefix = arg . substring ( opt . length + 1 , arg . length ) ;
else if ( opt == "libdir" )
buildLibPrefix = arg . substring ( opt . length + 1 , arg . length ) ;
else if ( opt == "sodir" )
buildSoPrefix = arg . substring ( opt . length + 1 , arg . length ) ;
else if ( opt == "incdir" )
buildIncPrefix = arg . substring ( opt . length + 1 , arg . length ) ;
else if ( opt == "include" )
buildInclude = arg . substring ( opt . length + 1 , arg . length ) ;
else if ( opt == "lib" )
buildLib = arg . substring ( opt . length + 1 , arg . length ) ;
2004-08-24 14:42:29 +00:00
else if ( opt == "release" )
useCvsVer = false ;
2002-03-24 21:00:26 +00:00
else
error = 1 ;
} else if ( i == 0 ) {
if ( arg == "genreadme" ) {
// This command comes from the Makefile and will not be checked
// for errors, because Makefile will always supply right the parameters.
genReadme ( WScript . Arguments ( 1 ) , WScript . Arguments ( 2 ) , WScript . Arguments ( 3 ) ) ;
WScript . Quit ( 0 ) ;
} else if ( arg == "help" ) {
usage ( ) ;
WScript . Quit ( 0 ) ;
}
2003-08-08 16:40:36 +00:00
2003-08-28 10:49:25 +00:00
} else {
2002-03-24 21:00:26 +00:00
error = 1 ;
2003-08-28 10:49:25 +00:00
}
2002-03-24 21:00:26 +00:00
}
2003-08-08 16:40:36 +00:00
2002-03-24 21:00:26 +00:00
// If we fail here, it is because the user supplied an unrecognised argument.
if ( error != 0 ) {
usage ( ) ;
WScript . Quit ( error ) ;
}
2005-01-27 23:59:14 +00:00
// if user choses to link the c-runtime library statically into libxml2
// with /MT and friends, then we need to enable static linking for xmllint
if ( cruntime == "/MT" || cruntime == "/MTd" ||
cruntime == "/ML" || cruntime == "/MLd" ) {
buildStatic = 1 ;
}
2003-08-28 10:49:25 +00:00
dirSep = "\\" ;
if ( buildBinPrefix == "" )
buildBinPrefix = "$(PREFIX)" + dirSep + "bin" ;
if ( buildIncPrefix == "" )
buildIncPrefix = "$(PREFIX)" + dirSep + "include" ;
if ( buildLibPrefix == "" )
buildLibPrefix = "$(PREFIX)" + dirSep + "lib" ;
if ( buildSoPrefix == "" )
2011-09-14 16:00:28 +08:00
buildSoPrefix = "$(PREFIX)" + dirSep + "bin" ;
2003-08-08 16:40:36 +00:00
2002-03-24 21:00:26 +00:00
// Discover the version.
discoverVersion ( ) ;
if ( error != 0 ) {
WScript . Echo ( "Version discovery failed, aborting." ) ;
WScript . Quit ( error ) ;
}
2003-08-08 16:40:36 +00:00
2004-08-24 14:42:29 +00:00
var outVerString = baseName + " version: " + verMajor + "." + verMinor + "." + verMicro ;
if ( verMicroSuffix && verMicroSuffix != "" )
outVerString += "-" + verMicroSuffix ;
if ( verCvs && verCvs != "" )
outVerString += "-" + verCvs ;
WScript . Echo ( outVerString ) ;
2002-03-24 21:00:26 +00:00
// Configure libxml.
configureLibxml ( ) ;
if ( error != 0 ) {
WScript . Echo ( "Configuration failed, aborting." ) ;
WScript . Quit ( error ) ;
}
2003-08-08 16:40:36 +00:00
2002-11-22 21:41:09 +00:00
if ( withPython == true ) {
configureLibxmlPy ( ) ;
if ( error != 0 ) {
WScript . Echo ( "Configuration failed, aborting." ) ;
WScript . Quit ( error ) ;
}
2003-08-08 16:40:36 +00:00
2002-11-22 21:41:09 +00:00
}
2002-03-24 21:00:26 +00:00
// Create the makefile.
var fso = new ActiveXObject ( "Scripting.FileSystemObject" ) ;
2002-11-14 17:43:24 +00:00
var makefile = ".\\Makefile.msvc" ;
if ( compiler == "mingw" )
makefile = ".\\Makefile.mingw" ;
2003-06-16 07:12:50 +00:00
else if ( compiler == "bcb" )
makefile = ".\\Makefile.bcb" ;
2010-11-04 17:42:42 +01:00
var new _makefile = ".\\Makefile" ;
var f = fso . FileExists ( new _makefile ) ;
if ( f ) {
var t = fso . GetFile ( new _makefile ) ;
t . Attributes = 0 ;
}
fso . CopyFile ( makefile , new _makefile , true ) ;
2002-03-24 21:00:26 +00:00
WScript . Echo ( "Created Makefile." ) ;
2003-08-28 10:24:40 +00:00
// Create the config.h.
var confighsrc = "..\\include\\win32config.h" ;
var configh = "..\\config.h" ;
2003-11-05 09:50:55 +00:00
var f = fso . FileExists ( configh ) ;
if ( f ) {
var t = fso . GetFile ( configh ) ;
t . Attributes = 0 ;
}
2003-08-28 10:24:40 +00:00
fso . CopyFile ( confighsrc , configh , true ) ;
WScript . Echo ( "Created config.h." ) ;
2002-03-24 21:00:26 +00:00
// Display the final configuration.
var txtOut = "\nXML processor configuration\n" ;
txtOut += "---------------------------\n" ;
txtOut += " Trio: " + boolToStr ( withTrio ) + "\n" ;
2002-10-31 16:01:00 +00:00
txtOut += " Thread safety: " + withThreads + "\n" ;
2002-03-24 21:00:26 +00:00
txtOut += " FTP client: " + boolToStr ( withFtp ) + "\n" ;
txtOut += " HTTP client: " + boolToStr ( withHttp ) + "\n" ;
txtOut += " HTML processor: " + boolToStr ( withHtml ) + "\n" ;
txtOut += " C14N support: " + boolToStr ( withC14n ) + "\n" ;
txtOut += " Catalog support: " + boolToStr ( withCatalog ) + "\n" ;
txtOut += " DocBook support: " + boolToStr ( withDocb ) + "\n" ;
txtOut += " XPath support: " + boolToStr ( withXpath ) + "\n" ;
txtOut += " XPointer support: " + boolToStr ( withXptr ) + "\n" ;
txtOut += " XInclude support: " + boolToStr ( withXinclude ) + "\n" ;
2002-09-20 16:40:17 +00:00
txtOut += " iconv support: " + boolToStr ( withIconv ) + "\n" ;
2010-11-04 17:42:42 +01:00
txtOut += " icu support: " + boolToStr ( withIcu ) + "\n" ;
2003-08-08 16:40:36 +00:00
txtOut += " iso8859x support: " + boolToStr ( withIso8859x ) + "\n" ;
2002-09-20 16:40:17 +00:00
txtOut += " zlib support: " + boolToStr ( withZlib ) + "\n" ;
2012-03-21 10:37:06 -04:00
txtOut += " lzma support: " + boolToStr ( withLzma ) + "\n" ;
2002-03-24 21:00:26 +00:00
txtOut += " Debugging module: " + boolToStr ( withDebug ) + "\n" ;
txtOut += " Memory debugging: " + boolToStr ( withMemDebug ) + "\n" ;
2005-12-14 17:43:03 +00:00
txtOut += " Runtime debugging: " + boolToStr ( withRunDebug ) + "\n" ;
2002-09-20 13:39:53 +00:00
txtOut += " Regexp support: " + boolToStr ( withRegExps ) + "\n" ;
2005-01-04 15:10:22 +00:00
txtOut += " Module support: " + boolToStr ( withModules ) + "\n" ;
2003-10-06 08:47:56 +00:00
txtOut += " Tree support: " + boolToStr ( withTree ) + "\n" ;
txtOut += " Reader support: " + boolToStr ( withReader ) + "\n" ;
2003-10-21 09:27:57 +00:00
txtOut += " Writer support: " + boolToStr ( withWriter ) + "\n" ;
2003-10-06 08:47:56 +00:00
txtOut += " Walker support: " + boolToStr ( withWalker ) + "\n" ;
2003-12-11 13:56:54 +00:00
txtOut += " Pattern support: " + boolToStr ( withPattern ) + "\n" ;
2003-10-06 08:47:56 +00:00
txtOut += " Push support: " + boolToStr ( withPush ) + "\n" ;
txtOut += "Validation support: " + boolToStr ( withValid ) + "\n" ;
txtOut += " SAX1 support: " + boolToStr ( withSax1 ) + "\n" ;
txtOut += " Legacy support: " + boolToStr ( withLegacy ) + "\n" ;
txtOut += " Output support: " + boolToStr ( withOutput ) + "\n" ;
2002-04-16 17:57:17 +00:00
txtOut += "XML Schema support: " + boolToStr ( withSchemas ) + "\n" ;
2005-07-31 14:05:18 +00:00
txtOut += "Schematron support: " + boolToStr ( withSchematron ) + "\n" ;
2002-11-22 21:41:09 +00:00
txtOut += " Python bindings: " + boolToStr ( withPython ) + "\n" ;
2002-03-24 21:00:26 +00:00
txtOut += "\n" ;
txtOut += "Win32 build configuration\n" ;
txtOut += "-------------------------\n" ;
2002-11-14 17:43:24 +00:00
txtOut += " Compiler: " + compiler + "\n" ;
2007-06-08 19:47:37 +00:00
if ( compiler == "msvc" ) {
2003-11-27 18:39:01 +00:00
txtOut += " C-Runtime option: " + cruntime + "\n" ;
2007-06-08 19:47:37 +00:00
txtOut += " Embed Manifest: " + boolToStr ( vcmanifest ) + "\n" ;
} else if ( compiler == "bcb" )
2003-12-01 11:33:27 +00:00
txtOut += " Use dynamic RTL: " + dynruntime + "\n" ;
2002-03-24 21:00:26 +00:00
txtOut += " Debug symbols: " + boolToStr ( buildDebug ) + "\n" ;
txtOut += " Static xmllint: " + boolToStr ( buildStatic ) + "\n" ;
txtOut += " Install prefix: " + buildPrefix + "\n" ;
txtOut += " Put tools in: " + buildBinPrefix + "\n" ;
txtOut += " Put headers in: " + buildIncPrefix + "\n" ;
txtOut += "Put static libs in: " + buildLibPrefix + "\n" ;
txtOut += "Put shared libs in: " + buildSoPrefix + "\n" ;
txtOut += " Include path: " + buildInclude + "\n" ;
txtOut += " Lib path: " + buildLib + "\n" ;
WScript . Echo ( txtOut ) ;
2003-08-08 16:40:36 +00:00
//