blob: 12e5f429d3d08269f88cc317fc943a1662d1e8d7 [file] [log] [blame]
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +00001/* Configure script for libxml, specific for Windows with Scripting Host.
2 *
3 * This script will configure the libxml build process and create necessary files.
4 * Run it with an 'help', or an invalid option and it will tell you what options
5 * it accepts.
6 *
Daniel Veillardbeb70bd2002-12-18 14:53:54 +00007 * March 2002, Igor Zlatkovic <igor@zlatkovic.com>
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +00008 */
9
10/* The source directory, relative to the one where this file resides. */
11var srcDirXml = "..";
12var srcDirUtils = "..";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000013/* Base name of what we are building. */
14var baseName = "libxml2";
15/* Configure file which contains the version and the output file where
16 we can store our build configuration. */
17var configFile = srcDirXml + "\\configure.in";
Igor Zlatkovicbd1a3062002-11-14 17:43:24 +000018var versionFile = ".\\config.msvc";
Igor Zlatkovic853514f2002-11-22 21:41:09 +000019/* Input and output files regarding the libxml features. */
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000020var optsFileIn = srcDirXml + "\\include\\libxml\\xmlversion.h.in";
21var optsFile = srcDirXml + "\\include\\libxml\\xmlversion.h";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000022/* Version strings for the binary distribution. Will be filled later
23 in the code. */
24var verMajor;
25var verMinor;
26var verMicro;
Igor Zlatkovic6425b382003-10-25 15:38:34 +000027var verMicroSuffix;
Igor Zlatkovic8ea667f2004-08-24 14:42:29 +000028var verCvs;
29var useCvsVer = true;
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000030/* Libxml features. */
31var withTrio = false;
Igor Zlatkovice38ab532003-05-17 11:30:54 +000032var withThreads = "native";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000033var withFtp = true;
34var withHttp = true;
35var withHtml = true;
36var withC14n = true;
37var withCatalog = true;
38var withDocb = true;
39var withXpath = true;
40var withXptr = true;
41var withXinclude = true;
42var withIconv = true;
William M. Brack6d13f332003-08-08 16:40:36 +000043var withIso8859x = false;
Igor Zlatkovic3acadf42002-09-20 16:40:17 +000044var withZlib = false;
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000045var withDebug = true;
46var withMemDebug = false;
Igor Zlatkovica6f2d902002-04-16 17:57:17 +000047var withSchemas = true;
Igor Zlatkovic8e040972002-09-20 13:39:53 +000048var withRegExps = true;
Daniel Veillardce1648b2005-01-04 15:10:22 +000049var withModules = true;
Daniel Veillard141310a2003-10-06 08:47:56 +000050var withTree = true;
51var withReader = true;
Daniel Veillardea048932003-10-21 09:27:57 +000052var withWriter = true;
Daniel Veillard141310a2003-10-06 08:47:56 +000053var withWalker = true;
Igor Zlatkovicc5a29ca2003-12-11 13:56:54 +000054var withPattern = true;
Daniel Veillard141310a2003-10-06 08:47:56 +000055var withPush = true;
56var withValid = true;
57var withSax1 = true;
58var withLegacy = true;
59var withOutput = true;
Igor Zlatkovic853514f2002-11-22 21:41:09 +000060var withPython = false;
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000061/* Win32 build options. */
Igor Zlatkovic01c0ced2003-08-28 10:49:25 +000062var dirSep = "\\";
Igor Zlatkovicbd1a3062002-11-14 17:43:24 +000063var compiler = "msvc";
Igor Zlatkovic4f928212003-11-27 18:39:01 +000064var cruntime = "/MD";
Igor Zlatkovicc7646e62003-12-01 11:33:27 +000065var dynruntime = true;
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000066var buildDebug = 0;
67var buildStatic = 0;
68var buildPrefix = ".";
Igor Zlatkovic01c0ced2003-08-28 10:49:25 +000069var buildBinPrefix = "";
70var buildIncPrefix = "";
71var buildLibPrefix = "";
72var buildSoPrefix = "";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000073var buildInclude = ".";
74var buildLib = ".";
75/* Local stuff */
76var error = 0;
77
78/* Helper function, transforms the option variable into the 'Enabled'
79 or 'Disabled' string. */
80function boolToStr(opt)
81{
82 if (opt == false)
Igor Zlatkovic8f536a82002-10-31 16:01:00 +000083 return "no";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000084 else if (opt == true)
Igor Zlatkovic8f536a82002-10-31 16:01:00 +000085 return "yes";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000086 error = 1;
Igor Zlatkovic8f536a82002-10-31 16:01:00 +000087 return "*** undefined ***";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000088}
89
90/* Helper function, transforms the argument string into a boolean
91 value. */
92function strToBool(opt)
93{
94 if (opt == 0 || opt == "no")
95 return false;
96 else if (opt == 1 || opt == "yes")
97 return true;
98 error = 1;
99 return false;
100}
101
102/* Displays the details about how to use this script. */
103function usage()
104{
105 var txt;
106 txt = "Usage:\n";
107 txt += " cscript " + WScript.ScriptName + " <options>\n";
108 txt += " cscript " + WScript.ScriptName + " help\n\n";
109 txt += "Options can be specified in the form <option>=<value>, where the value is\n";
Igor Zlatkovic8f536a82002-10-31 16:01:00 +0000110 txt += "either 'yes' or 'no', if not stated otherwise.\n\n";
Igor Zlatkovicbd1a3062002-11-14 17:43:24 +0000111 txt += "\nXML processor options, default value given in parentheses:\n\n";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000112 txt += " trio: Enable TRIO string manipulator (" + (withTrio? "yes" : "no") + ")\n";
Igor Zlatkovic8f536a82002-10-31 16:01:00 +0000113 txt += " threads: Enable thread safety [no|ctls|native|posix] (" + (withThreads) + ") \n";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000114 txt += " ftp: Enable FTP client (" + (withFtp? "yes" : "no") + ")\n";
115 txt += " http: Enable HTTP client (" + (withHttp? "yes" : "no") + ")\n";
116 txt += " html: Enable HTML processor (" + (withHtml? "yes" : "no") + ")\n";
117 txt += " c14n: Enable C14N support (" + (withC14n? "yes" : "no") + ")\n";
118 txt += " catalog: Enable catalog support (" + (withCatalog? "yes" : "no") + ")\n";
119 txt += " docb: Enable DocBook support (" + (withDocb? "yes" : "no") + ")\n";
120 txt += " xpath: Enable XPath support (" + (withXpath? "yes" : "no") + ")\n";
121 txt += " xptr: Enable XPointer support (" + (withXptr? "yes" : "no") + ")\n";
122 txt += " xinclude: Enable XInclude support (" + (withXinclude? "yes" : "no") + ")\n";
Igor Zlatkovic3acadf42002-09-20 16:40:17 +0000123 txt += " iconv: Enable iconv support (" + (withIconv? "yes" : "no") + ")\n";
William M. Brack6d13f332003-08-08 16:40:36 +0000124 txt += " iso8859x: Enable ISO8859X support (" + (withIso8859x? "yes" : "no") + ")\n";
Igor Zlatkovic3acadf42002-09-20 16:40:17 +0000125 txt += " zlib: Enable zlib support (" + (withZlib? "yes" : "no") + ")\n";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000126 txt += " xml_debug: Enable XML debbugging module (" + (withDebug? "yes" : "no") + ")\n";
127 txt += " mem_debug: Enable memory debugger (" + (withMemDebug? "yes" : "no") + ")\n";
Igor Zlatkovic8e040972002-09-20 13:39:53 +0000128 txt += " regexps: Enable regular expressions (" + (withRegExps? "yes" : "no") + ")\n";
Daniel Veillardce1648b2005-01-04 15:10:22 +0000129 txt += " modules: Enable module support (" + (withModules? "yes" : "no") + ")\n";
Daniel Veillard141310a2003-10-06 08:47:56 +0000130 txt += " tree: Enable tree api (" + (withTree? "yes" : "no") + ")\n";
131 txt += " reader: Enable xmlReader api (" + (withReader? "yes" : "no") + ")\n";
Daniel Veillardea048932003-10-21 09:27:57 +0000132 txt += " writer: Enable xmlWriter api (" + (withWriter? "yes" : "no") + ")\n";
Daniel Veillard141310a2003-10-06 08:47:56 +0000133 txt += " walker: Enable xmlDocWalker api (" + (withWalker? "yes" : "no") + ")\n";
Igor Zlatkovicc5a29ca2003-12-11 13:56:54 +0000134 txt += " pattern: Enable xmlPattern api (" + (withPattern? "yes" : "no") + ")\n";
Daniel Veillard141310a2003-10-06 08:47:56 +0000135 txt += " push: Enable push api (" + (withPush? "yes" : "no") + ")\n";
136 txt += " valid: Enable DTD validation support (" + (withValid? "yes" : "no") + ")\n";
137 txt += " sax1: Enable SAX1 api (" + (withSax1? "yes" : "no") + ")\n";
138 txt += " legacy: Enable Deprecated api's (" + (withLegacy? "yes" : "no") + ")\n";
139 txt += " output: Enable serialization support (" + (withOutput? "yes" : "no") + ")\n";
Igor Zlatkovica6f2d902002-04-16 17:57:17 +0000140 txt += " schemas: Enable XML Schema support (" + (withSchemas? "yes" : "no") + ")\n";
Igor Zlatkovic853514f2002-11-22 21:41:09 +0000141 txt += " python: Build Python bindings (" + (withPython? "yes" : "no") + ")\n";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000142 txt += "\nWin32 build options, default value given in parentheses:\n\n";
Igor Zlatkovic72f92a82003-06-14 16:48:26 +0000143 txt += " compiler: Compiler to be used [msvc|mingw|bcb] (" + compiler + ")\n";
Igor Zlatkovic4f928212003-11-27 18:39:01 +0000144 txt += " cruntime: C-runtime compiler option (only msvc) (" + cruntime + ")\n";
Igor Zlatkovicc7646e62003-12-01 11:33:27 +0000145 txt += " dynruntime: Use the dynamic RTL (only bcb) (" + dynruntime + ")\n";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000146 txt += " debug: Build unoptimised debug executables (" + (buildDebug? "yes" : "no") + ")\n";
147 txt += " static: Link xmllint statically to libxml2 (" + (buildStatic? "yes" : "no") + ")\n";
148 txt += " prefix: Base directory for the installation (" + buildPrefix + ")\n";
149 txt += " bindir: Directory where xmllint and friends should be installed\n";
150 txt += " (" + buildBinPrefix + ")\n";
151 txt += " incdir: Directory where headers should be installed\n";
152 txt += " (" + buildIncPrefix + ")\n";
153 txt += " libdir: Directory where static and import libraries should be\n";
154 txt += " installed (" + buildLibPrefix + ")\n";
155 txt += " sodir: Directory where shared libraries should be installed\n";
156 txt += " (" + buildSoPrefix + ")\n";
157 txt += " include: Additional search path for the compiler, particularily\n";
158 txt += " where iconv headers can be found (" + buildInclude + ")\n";
159 txt += " lib: Additional search path for the linker, particularily\n";
160 txt += " where iconv library can be found (" + buildLib + ")\n";
161 WScript.Echo(txt);
162}
163
164/* Discovers the version we are working with by reading the apropriate
165 configuration file. Despite its name, this also writes the configuration
166 file included by our makefile. */
167function discoverVersion()
168{
Igor Zlatkovic8ea667f2004-08-24 14:42:29 +0000169 var fso, cf, vf, ln, s, iDot, iSlash;
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000170 fso = new ActiveXObject("Scripting.FileSystemObject");
Igor Zlatkovic8ea667f2004-08-24 14:42:29 +0000171 verCvs = "";
172 if (useCvsVer && fso.FileExists("..\\CVS\\Entries")) {
173 cf = fso.OpenTextFile("..\\CVS\\Entries", 1);
174 while (cf.AtEndOfStream != true) {
175 ln = cf.ReadLine();
176 s = new String(ln);
177 if (s.search(/^\/ChangeLog\//) != -1) {
178 iDot = s.indexOf(".");
179 iSlash = s.indexOf("/", iDot);
180 verCvs = "CVS" + s.substring(iDot + 1, iSlash);
181 break;
182 }
183 }
184 cf.Close();
185 }
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000186 cf = fso.OpenTextFile(configFile, 1);
Igor Zlatkovicbd1a3062002-11-14 17:43:24 +0000187 if (compiler == "msvc")
188 versionFile = ".\\config.msvc";
189 else if (compiler == "mingw")
190 versionFile = ".\\config.mingw";
Igor Zlatkovic72f92a82003-06-14 16:48:26 +0000191 else if (compiler == "bcb")
192 versionFile = ".\\config.bcb";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000193 vf = fso.CreateTextFile(versionFile, true);
194 vf.WriteLine("# " + versionFile);
195 vf.WriteLine("# This file is generated automatically by " + WScript.ScriptName + ".");
196 vf.WriteBlankLines(1);
197 while (cf.AtEndOfStream != true) {
198 ln = cf.ReadLine();
199 s = new String(ln);
Daniel Veillard70b18562003-09-24 21:45:21 +0000200 if (s.search(/^LIBXML_MAJOR_VERSION=/) != -1) {
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000201 vf.WriteLine(s);
202 verMajor = s.substring(s.indexOf("=") + 1, s.length)
Daniel Veillard70b18562003-09-24 21:45:21 +0000203 } else if(s.search(/^LIBXML_MINOR_VERSION=/) != -1) {
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000204 vf.WriteLine(s);
205 verMinor = s.substring(s.indexOf("=") + 1, s.length)
Daniel Veillard70b18562003-09-24 21:45:21 +0000206 } else if(s.search(/^LIBXML_MICRO_VERSION=/) != -1) {
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000207 vf.WriteLine(s);
208 verMicro = s.substring(s.indexOf("=") + 1, s.length)
Daniel Veillard70b18562003-09-24 21:45:21 +0000209 } else if(s.search(/^LIBXML_MICRO_VERSION_SUFFIX=/) != -1) {
210 vf.WriteLine(s);
211 verMicroSuffix = s.substring(s.indexOf("=") + 1, s.length)
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000212 }
213 }
214 cf.Close();
215 vf.WriteLine("XML_SRCDIR=" + srcDirXml);
216 vf.WriteLine("UTILS_SRCDIR=" + srcDirUtils);
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000217 vf.WriteLine("WITH_TRIO=" + (withTrio? "1" : "0"));
Igor Zlatkovic8f536a82002-10-31 16:01:00 +0000218 vf.WriteLine("WITH_THREADS=" + withThreads);
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000219 vf.WriteLine("WITH_FTP=" + (withFtp? "1" : "0"));
220 vf.WriteLine("WITH_HTTP=" + (withHttp? "1" : "0"));
221 vf.WriteLine("WITH_HTML=" + (withHtml? "1" : "0"));
222 vf.WriteLine("WITH_C14N=" + (withC14n? "1" : "0"));
223 vf.WriteLine("WITH_CATALOG=" + (withCatalog? "1" : "0"));
224 vf.WriteLine("WITH_DOCB=" + (withDocb? "1" : "0"));
225 vf.WriteLine("WITH_XPATH=" + (withXpath? "1" : "0"));
226 vf.WriteLine("WITH_XPTR=" + (withXptr? "1" : "0"));
227 vf.WriteLine("WITH_XINCLUDE=" + (withXinclude? "1" : "0"));
228 vf.WriteLine("WITH_ICONV=" + (withIconv? "1" : "0"));
William M. Brack6d13f332003-08-08 16:40:36 +0000229 vf.WriteLine("WITH_ISO8859X=" + (withIso8859x? "1" : "0"));
Igor Zlatkovic3acadf42002-09-20 16:40:17 +0000230 vf.WriteLine("WITH_ZLIB=" + (withZlib? "1" : "0"));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000231 vf.WriteLine("WITH_DEBUG=" + (withDebug? "1" : "0"));
232 vf.WriteLine("WITH_MEM_DEBUG=" + (withMemDebug? "1" : "0"));
Igor Zlatkovica6f2d902002-04-16 17:57:17 +0000233 vf.WriteLine("WITH_SCHEMAS=" + (withSchemas? "1" : "0"));
Igor Zlatkovic8e040972002-09-20 13:39:53 +0000234 vf.WriteLine("WITH_REGEXPS=" + (withRegExps? "1" : "0"));
Daniel Veillardce1648b2005-01-04 15:10:22 +0000235 vf.WriteLine("WITH_MODULES=" + (withModules? "1" : "0"));
Daniel Veillard141310a2003-10-06 08:47:56 +0000236 vf.WriteLine("WITH_TREE=" + (withTree? "1" : "0"));
237 vf.WriteLine("WITH_READER=" + (withReader? "1" : "0"));
Daniel Veillardea048932003-10-21 09:27:57 +0000238 vf.WriteLine("WITH_WRITER=" + (withWriter? "1" : "0"));
Daniel Veillard141310a2003-10-06 08:47:56 +0000239 vf.WriteLine("WITH_WALKER=" + (withWalker? "1" : "0"));
Igor Zlatkovicc5a29ca2003-12-11 13:56:54 +0000240 vf.WriteLine("WITH_PATTERN=" + (withPattern? "1" : "0"));
Daniel Veillard141310a2003-10-06 08:47:56 +0000241 vf.WriteLine("WITH_PUSH=" + (withPush? "1" : "0"));
242 vf.WriteLine("WITH_VALID=" + (withValid? "1" : "0"));
243 vf.WriteLine("WITH_SAX1=" + (withSax1? "1" : "0"));
244 vf.WriteLine("WITH_LEGACY=" + (withLegacy? "1" : "0"));
245 vf.WriteLine("WITH_OUTPUT=" + (withOutput? "1" : "0"));
Igor Zlatkovic853514f2002-11-22 21:41:09 +0000246 vf.WriteLine("WITH_PYTHON=" + (withPython? "1" : "0"));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000247 vf.WriteLine("DEBUG=" + (buildDebug? "1" : "0"));
248 vf.WriteLine("STATIC=" + (buildStatic? "1" : "0"));
249 vf.WriteLine("PREFIX=" + buildPrefix);
250 vf.WriteLine("BINPREFIX=" + buildBinPrefix);
251 vf.WriteLine("INCPREFIX=" + buildIncPrefix);
252 vf.WriteLine("LIBPREFIX=" + buildLibPrefix);
253 vf.WriteLine("SOPREFIX=" + buildSoPrefix);
Igor Zlatkovicbd1a3062002-11-14 17:43:24 +0000254 if (compiler == "msvc") {
255 vf.WriteLine("INCLUDE=$(INCLUDE);" + buildInclude);
256 vf.WriteLine("LIB=$(LIB);" + buildLib);
Igor Zlatkovic4f928212003-11-27 18:39:01 +0000257 vf.WriteLine("CRUNTIME=" + cruntime);
Igor Zlatkovicbd1a3062002-11-14 17:43:24 +0000258 } else if (compiler == "mingw") {
259 vf.WriteLine("INCLUDE+=;" + buildInclude);
260 vf.WriteLine("LIB+=;" + buildLib);
Igor Zlatkovic72f92a82003-06-14 16:48:26 +0000261 } else if (compiler == "bcb") {
262 vf.WriteLine("INCLUDE=" + buildInclude);
263 vf.WriteLine("LIB=" + buildLib);
Igor Zlatkovicc7646e62003-12-01 11:33:27 +0000264 vf.WriteLine("DYNRUNTIME=" + (dynruntime? "1" : "0"));
Igor Zlatkovic72f92a82003-06-14 16:48:26 +0000265 }
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000266 vf.Close();
267}
268
269/* Configures libxml. This one will generate xmlversion.h from xmlversion.h.in
270 taking what the user passed on the command line into account. */
271function configureLibxml()
272{
273 var fso, ofi, of, ln, s;
274 fso = new ActiveXObject("Scripting.FileSystemObject");
275 ofi = fso.OpenTextFile(optsFileIn, 1);
276 of = fso.CreateTextFile(optsFile, true);
277 while (ofi.AtEndOfStream != true) {
278 ln = ofi.ReadLine();
279 s = new String(ln);
280 if (s.search(/\@VERSION\@/) != -1) {
281 of.WriteLine(s.replace(/\@VERSION\@/,
Daniel Veillard70b18562003-09-24 21:45:21 +0000282 verMajor + "." + verMinor + "." + verMicro + verMicroSuffix));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000283 } else if (s.search(/\@LIBXML_VERSION_NUMBER\@/) != -1) {
284 of.WriteLine(s.replace(/\@LIBXML_VERSION_NUMBER\@/,
285 verMajor*10000 + verMinor*100 + verMicro*1));
Igor Zlatkovic8ea667f2004-08-24 14:42:29 +0000286 } else if (s.search(/\@LIBXML_VERSION_EXTRA\@/) != -1) {
287 of.WriteLine(s.replace(/\@LIBXML_VERSION_EXTRA\@/, verCvs));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000288 } else if (s.search(/\@WITH_TRIO\@/) != -1) {
289 of.WriteLine(s.replace(/\@WITH_TRIO\@/, withTrio? "1" : "0"));
290 } else if (s.search(/\@WITH_THREADS\@/) != -1) {
Igor Zlatkovic8f536a82002-10-31 16:01:00 +0000291 of.WriteLine(s.replace(/\@WITH_THREADS\@/, withThreads == "no"? "0" : "1"));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000292 } else if (s.search(/\@WITH_FTP\@/) != -1) {
293 of.WriteLine(s.replace(/\@WITH_FTP\@/, withFtp? "1" : "0"));
294 } else if (s.search(/\@WITH_HTTP\@/) != -1) {
295 of.WriteLine(s.replace(/\@WITH_HTTP\@/, withHttp? "1" : "0"));
296 } else if (s.search(/\@WITH_HTML\@/) != -1) {
297 of.WriteLine(s.replace(/\@WITH_HTML\@/, withHtml? "1" : "0"));
298 } else if (s.search(/\@WITH_C14N\@/) != -1) {
299 of.WriteLine(s.replace(/\@WITH_C14N\@/, withC14n? "1" : "0"));
300 } else if (s.search(/\@WITH_CATALOG\@/) != -1) {
301 of.WriteLine(s.replace(/\@WITH_CATALOG\@/, withCatalog? "1" : "0"));
302 } else if (s.search(/\@WITH_DOCB\@/) != -1) {
303 of.WriteLine(s.replace(/\@WITH_DOCB\@/, withDocb? "1" : "0"));
304 } else if (s.search(/\@WITH_XPATH\@/) != -1) {
305 of.WriteLine(s.replace(/\@WITH_XPATH\@/, withXpath? "1" : "0"));
306 } else if (s.search(/\@WITH_XPTR\@/) != -1) {
307 of.WriteLine(s.replace(/\@WITH_XPTR\@/, withXptr? "1" : "0"));
308 } else if (s.search(/\@WITH_XINCLUDE\@/) != -1) {
309 of.WriteLine(s.replace(/\@WITH_XINCLUDE\@/, withXinclude? "1" : "0"));
310 } else if (s.search(/\@WITH_ICONV\@/) != -1) {
311 of.WriteLine(s.replace(/\@WITH_ICONV\@/, withIconv? "1" : "0"));
William M. Brack6d13f332003-08-08 16:40:36 +0000312 } else if (s.search(/\@WITH_ISO8859X\@/) != -1) {
313 of.WriteLine(s.replace(/\@WITH_ISO8859X\@/, withIso8859x? "1" : "0"));
Igor Zlatkovic3acadf42002-09-20 16:40:17 +0000314 } else if (s.search(/\@WITH_ZLIB\@/) != -1) {
315 of.WriteLine(s.replace(/\@WITH_ZLIB\@/, withZlib? "1" : "0"));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000316 } else if (s.search(/\@WITH_DEBUG\@/) != -1) {
317 of.WriteLine(s.replace(/\@WITH_DEBUG\@/, withDebug? "1" : "0"));
318 } else if (s.search(/\@WITH_MEM_DEBUG\@/) != -1) {
319 of.WriteLine(s.replace(/\@WITH_MEM_DEBUG\@/, withMemDebug? "1" : "0"));
Igor Zlatkovica6f2d902002-04-16 17:57:17 +0000320 } else if (s.search(/\@WITH_SCHEMAS\@/) != -1) {
321 of.WriteLine(s.replace(/\@WITH_SCHEMAS\@/, withSchemas? "1" : "0"));
Igor Zlatkovic8e040972002-09-20 13:39:53 +0000322 } else if (s.search(/\@WITH_REGEXPS\@/) != -1) {
323 of.WriteLine(s.replace(/\@WITH_REGEXPS\@/, withRegExps? "1" : "0"));
Daniel Veillardce1648b2005-01-04 15:10:22 +0000324 } else if (s.search(/\@WITH_MODULES\@/) != -1) {
325 of.WriteLine(s.replace(/\@WITH_MODULES\@/, withModules? "1" : "0"));
326 } else if (s.search(/\@MODULE_EXTENSION\@/) != -1) {
327 of.WriteLine(s.replace(/\@MODULE_EXTENSION\@/, ".dll"));
Daniel Veillard141310a2003-10-06 08:47:56 +0000328 } else if (s.search(/\@WITH_TREE\@/) != -1) {
329 of.WriteLine(s.replace(/\@WITH_TREE\@/, withTree? "1" : "0"));
330 } else if (s.search(/\@WITH_READER\@/) != -1) {
331 of.WriteLine(s.replace(/\@WITH_READER\@/, withReader? "1" : "0"));
Daniel Veillardea048932003-10-21 09:27:57 +0000332 } else if (s.search(/\@WITH_WRITER\@/) != -1) {
333 of.WriteLine(s.replace(/\@WITH_WRITER\@/, withWriter? "1" : "0"));
Daniel Veillard141310a2003-10-06 08:47:56 +0000334 } else if (s.search(/\@WITH_WALKER\@/) != -1) {
335 of.WriteLine(s.replace(/\@WITH_WALKER\@/, withWalker? "1" : "0"));
Igor Zlatkovicc5a29ca2003-12-11 13:56:54 +0000336 } else if (s.search(/\@WITH_PATTERN\@/) != -1) {
337 of.WriteLine(s.replace(/\@WITH_PATTERN\@/, withPattern? "1" : "0"));
Daniel Veillard141310a2003-10-06 08:47:56 +0000338 } else if (s.search(/\@WITH_PUSH\@/) != -1) {
339 of.WriteLine(s.replace(/\@WITH_PUSH\@/, withPush? "1" : "0"));
340 } else if (s.search(/\@WITH_VALID\@/) != -1) {
341 of.WriteLine(s.replace(/\@WITH_VALID\@/, withValid? "1" : "0"));
342 } else if (s.search(/\@WITH_SAX1\@/) != -1) {
343 of.WriteLine(s.replace(/\@WITH_SAX1\@/, withSax1? "1" : "0"));
344 } else if (s.search(/\@WITH_LEGACY\@/) != -1) {
345 of.WriteLine(s.replace(/\@WITH_LEGACY\@/, withLegacy? "1" : "0"));
346 } else if (s.search(/\@WITH_OUTPUT\@/) != -1) {
347 of.WriteLine(s.replace(/\@WITH_OUTPUT\@/, withOutput? "1" : "0"));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000348 } else
349 of.WriteLine(ln);
350 }
351 ofi.Close();
352 of.Close();
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000353}
Igor Zlatkovic853514f2002-11-22 21:41:09 +0000354/* Configures Python bindings. Otherwise identical to the above */
355function configureLibxmlPy()
356{
357 var pyOptsFileIn = srcDirXml + "\\python\\setup.py.in";
358 var pyOptsFile = srcDirXml + "\\python\\setup.py";
359 var fso, ofi, of, ln, s;
360 fso = new ActiveXObject("Scripting.FileSystemObject");
361 ofi = fso.OpenTextFile(pyOptsFileIn, 1);
362 of = fso.CreateTextFile(pyOptsFile, true);
363 while (ofi.AtEndOfStream != true) {
364 ln = ofi.ReadLine();
365 s = new String(ln);
366 if (s.search(/\@LIBXML_VERSION\@/) != -1) {
367 of.WriteLine(s.replace(/\@LIBXML_VERSION\@/,
368 verMajor + "." + verMinor + "." + verMicro));
369 } else if (s.search(/\@prefix\@/) != -1) {
370 of.WriteLine(s.replace(/\@prefix\@/, buildPrefix));
Daniel Veillard94bb2f12003-04-27 22:14:07 +0000371 } else if (s.search(/\@WITH_THREADS\@/) != -1) {
372 of.WriteLine(s.replace(/\@WITH_THREADS\@/, withThreads == "no"? "0" : "1"));
Igor Zlatkovic853514f2002-11-22 21:41:09 +0000373 } else
374 of.WriteLine(ln);
375 }
376 ofi.Close();
377 of.Close();
378}
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000379
380/* Creates the readme file for the binary distribution of 'bname', for the
381 version 'ver' in the file 'file'. This one is called from the Makefile when
382 generating a binary distribution. The parameters are passed by make. */
383function genReadme(bname, ver, file)
384{
385 var fso, f;
386 fso = new ActiveXObject("Scripting.FileSystemObject");
387 f = fso.CreateTextFile(file, true);
388 f.WriteLine(" " + bname + " " + ver);
389 f.WriteLine(" --------------");
390 f.WriteBlankLines(1);
391 f.WriteLine(" This is " + bname + ", version " + ver + ", binary package for the native Win32/IA32");
392 f.WriteLine("platform.");
393 f.WriteBlankLines(1);
Igor Zlatkovic72c28582004-06-09 14:32:47 +0000394 f.WriteLine(" The files in this package do not require any special installation");
395 f.WriteLine("steps. Extract the contents of the archive whereever you wish and");
396 f.WriteLine("make sure that your tools which use " + bname + " can find it.");
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000397 f.WriteBlankLines(1);
Igor Zlatkovic72c28582004-06-09 14:32:47 +0000398 f.WriteLine(" For example, if you want to run the supplied utilities from the command");
399 f.WriteLine("line, you can, if you wish, add the 'bin' subdirectory to the PATH");
400 f.WriteLine("environment variable.");
401 f.WriteLine(" If you want to make programmes in C which use " + bname + ", you'll");
402 f.WriteLine("likely know how to use the contents of this package. If you don't, please");
403 f.WriteLine("refer to your compiler's documentation.");
Igor Zlatkovic0ceeb8e2002-09-10 19:07:02 +0000404 f.WriteBlankLines(1);
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000405 f.WriteLine(" If there is something you cannot keep for yourself, such as a problem,");
406 f.WriteLine("a cheer of joy, a comment or a suggestion, feel free to contact me using");
407 f.WriteLine("the address below.");
408 f.WriteBlankLines(1);
Daniel Veillardbeb70bd2002-12-18 14:53:54 +0000409 f.WriteLine(" Igor Zlatkovic (igor@zlatkovic.com)");
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000410 f.Close();
411}
412
William M. Brack6d13f332003-08-08 16:40:36 +0000413
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000414/*
415 * main(),
416 * Execution begins here.
417 */
418
419// Parse the command-line arguments.
420for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) {
421 var arg, opt;
422 arg = WScript.Arguments(i);
423 opt = arg.substring(0, arg.indexOf("="));
424 if (opt.length == 0)
425 opt = arg.substring(0, arg.indexOf(":"));
426 if (opt.length > 0) {
427 if (opt == "trio")
428 withTrio = strToBool(arg.substring(opt.length + 1, arg.length));
429 else if (opt == "threads")
Igor Zlatkovic8f536a82002-10-31 16:01:00 +0000430 withThreads = arg.substring(opt.length + 1, arg.length);
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000431 else if (opt == "ftp")
432 withFtp = strToBool(arg.substring(opt.length + 1, arg.length));
433 else if (opt == "http")
434 withHttp = strToBool(arg.substring(opt.length + 1, arg.length));
435 else if (opt == "html")
436 withHtml = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovic9425ce22002-04-10 21:57:11 +0000437 else if (opt == "c14n")
438 withC14n = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000439 else if (opt == "catalog")
440 withCatalog = strToBool(arg.substring(opt.length + 1, arg.length));
441 else if (opt == "docb")
442 withDocb = strToBool(arg.substring(opt.length + 1, arg.length));
443 else if (opt == "xpath")
444 withXpath = strToBool(arg.substring(opt.length + 1, arg.length));
445 else if (opt == "xptr")
446 withXptr = strToBool(arg.substring(opt.length + 1, arg.length));
447 else if (opt == "xinclude")
448 withXinclude = strToBool(arg.substring(opt.length + 1, arg.length));
449 else if (opt == "iconv")
450 withIconv = strToBool(arg.substring(opt.length + 1, arg.length));
William M. Brack6d13f332003-08-08 16:40:36 +0000451 else if (opt == "iso8859x")
452 withIso8859x = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovic3acadf42002-09-20 16:40:17 +0000453 else if (opt == "zlib")
454 withZlib = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000455 else if (opt == "xml_debug")
456 withDebug = strToBool(arg.substring(opt.length + 1, arg.length));
457 else if (opt == "mem_debug")
458 withMemDebug = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovica6f2d902002-04-16 17:57:17 +0000459 else if (opt == "schemas")
460 withSchemas = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovic8e040972002-09-20 13:39:53 +0000461 else if (opt == "regexps")
462 withRegExps = strToBool(arg.substring(opt.length + 1, arg.length));
Daniel Veillard141310a2003-10-06 08:47:56 +0000463 else if (opt == "tree")
464 withTree = strToBool(arg.substring(opt.length + 1, arg.length));
465 else if (opt == "reader")
466 withReader = strToBool(arg.substring(opt.length + 1, arg.length));
Daniel Veillardea048932003-10-21 09:27:57 +0000467 else if (opt == "writer")
468 withWriter = strToBool(arg.substring(opt.length + 1, arg.length));
Daniel Veillard141310a2003-10-06 08:47:56 +0000469 else if (opt == "walker")
470 withWalker = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovicc5a29ca2003-12-11 13:56:54 +0000471 else if (opt == "pattern")
472 withPattern = strToBool(arg.substring(opt.length + 1, arg.length));
Daniel Veillard141310a2003-10-06 08:47:56 +0000473 else if (opt == "push")
474 withPush = strToBool(arg.substring(opt.length + 1, arg.length));
475 else if (opt == "valid")
476 withValid = strToBool(arg.substring(opt.length + 1, arg.length));
477 else if (opt == "sax1")
478 withSax1 = strToBool(arg.substring(opt.length + 1, arg.length));
479 else if (opt == "legacy")
480 withLegacy = strToBool(arg.substring(opt.length + 1, arg.length));
481 else if (opt == "output")
482 withOutput = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovic853514f2002-11-22 21:41:09 +0000483 else if (opt == "python")
484 withPython = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovicbd1a3062002-11-14 17:43:24 +0000485 else if (opt == "compiler")
486 compiler = arg.substring(opt.length + 1, arg.length);
Igor Zlatkovic4f928212003-11-27 18:39:01 +0000487 else if (opt == "cruntime")
488 cruntime = arg.substring(opt.length + 1, arg.length);
Igor Zlatkovicc7646e62003-12-01 11:33:27 +0000489 else if (opt == "dynruntime")
490 dynruntime = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000491 else if (opt == "debug")
492 buildDebug = strToBool(arg.substring(opt.length + 1, arg.length));
493 else if (opt == "static")
494 buildStatic = strToBool(arg.substring(opt.length + 1, arg.length));
495 else if (opt == "prefix")
496 buildPrefix = arg.substring(opt.length + 1, arg.length);
497 else if (opt == "incdir")
498 buildIncPrefix = arg.substring(opt.length + 1, arg.length);
499 else if (opt == "bindir")
500 buildBinPrefix = arg.substring(opt.length + 1, arg.length);
501 else if (opt == "libdir")
502 buildLibPrefix = arg.substring(opt.length + 1, arg.length);
503 else if (opt == "sodir")
504 buildSoPrefix = arg.substring(opt.length + 1, arg.length);
505 else if (opt == "incdir")
506 buildIncPrefix = arg.substring(opt.length + 1, arg.length);
507 else if (opt == "include")
508 buildInclude = arg.substring(opt.length + 1, arg.length);
509 else if (opt == "lib")
510 buildLib = arg.substring(opt.length + 1, arg.length);
Igor Zlatkovic8ea667f2004-08-24 14:42:29 +0000511 else if (opt == "release")
512 useCvsVer = false;
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000513 else
514 error = 1;
515 } else if (i == 0) {
516 if (arg == "genreadme") {
517 // This command comes from the Makefile and will not be checked
518 // for errors, because Makefile will always supply right the parameters.
519 genReadme(WScript.Arguments(1), WScript.Arguments(2), WScript.Arguments(3));
520 WScript.Quit(0);
521 } else if (arg == "help") {
522 usage();
523 WScript.Quit(0);
524 }
William M. Brack6d13f332003-08-08 16:40:36 +0000525
Igor Zlatkovic01c0ced2003-08-28 10:49:25 +0000526 } else {
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000527 error = 1;
Igor Zlatkovic01c0ced2003-08-28 10:49:25 +0000528 }
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000529}
530
William M. Brack6d13f332003-08-08 16:40:36 +0000531
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000532// If we fail here, it is because the user supplied an unrecognised argument.
533if (error != 0) {
534 usage();
535 WScript.Quit(error);
536}
Igor Zlatkovic01c0ced2003-08-28 10:49:25 +0000537dirSep = "\\";
538if (compiler == "mingw")
539 dirSep = "/";
540if (buildBinPrefix == "")
541 buildBinPrefix = "$(PREFIX)" + dirSep + "bin";
542if (buildIncPrefix == "")
543 buildIncPrefix = "$(PREFIX)" + dirSep + "include";
544if (buildLibPrefix == "")
545 buildLibPrefix = "$(PREFIX)" + dirSep + "lib";
546if (buildSoPrefix == "")
547 buildSoPrefix = "$(PREFIX)" + dirSep + "lib";
William M. Brack6d13f332003-08-08 16:40:36 +0000548
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000549// Discover the version.
550discoverVersion();
551if (error != 0) {
552 WScript.Echo("Version discovery failed, aborting.");
553 WScript.Quit(error);
554}
William M. Brack6d13f332003-08-08 16:40:36 +0000555
Igor Zlatkovic8ea667f2004-08-24 14:42:29 +0000556var outVerString = baseName + " version: " + verMajor + "." + verMinor + "." + verMicro;
557if (verMicroSuffix && verMicroSuffix != "")
558 outVerString += "-" + verMicroSuffix;
559if (verCvs && verCvs != "")
560 outVerString += "-" + verCvs;
561WScript.Echo(outVerString);
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000562
563// Configure libxml.
564configureLibxml();
565if (error != 0) {
566 WScript.Echo("Configuration failed, aborting.");
567 WScript.Quit(error);
568}
William M. Brack6d13f332003-08-08 16:40:36 +0000569
Igor Zlatkovic853514f2002-11-22 21:41:09 +0000570if (withPython == true) {
571 configureLibxmlPy();
572 if (error != 0) {
573 WScript.Echo("Configuration failed, aborting.");
574 WScript.Quit(error);
575 }
William M. Brack6d13f332003-08-08 16:40:36 +0000576
Igor Zlatkovic853514f2002-11-22 21:41:09 +0000577}
578
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000579// Create the makefile.
580var fso = new ActiveXObject("Scripting.FileSystemObject");
Igor Zlatkovicbd1a3062002-11-14 17:43:24 +0000581var makefile = ".\\Makefile.msvc";
582if (compiler == "mingw")
583 makefile = ".\\Makefile.mingw";
Igor Zlatkovice8b5b0f2003-06-16 07:12:50 +0000584else if (compiler == "bcb")
585 makefile = ".\\Makefile.bcb";
Igor Zlatkovicbd1a3062002-11-14 17:43:24 +0000586fso.CopyFile(makefile, ".\\Makefile", true);
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000587WScript.Echo("Created Makefile.");
Igor Zlatkovic1bab92d2003-08-28 10:24:40 +0000588// Create the config.h.
589var confighsrc = "..\\include\\win32config.h";
590var configh = "..\\config.h";
Daniel Veillard6b9d6952003-11-05 09:50:55 +0000591var f = fso.FileExists(configh);
592if (f) {
593 var t = fso.GetFile(configh);
594 t.Attributes =0;
595}
Igor Zlatkovic1bab92d2003-08-28 10:24:40 +0000596fso.CopyFile(confighsrc, configh, true);
597WScript.Echo("Created config.h.");
598
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000599
600// Display the final configuration.
601var txtOut = "\nXML processor configuration\n";
602txtOut += "---------------------------\n";
603txtOut += " Trio: " + boolToStr(withTrio) + "\n";
Igor Zlatkovic8f536a82002-10-31 16:01:00 +0000604txtOut += " Thread safety: " + withThreads + "\n";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000605txtOut += " FTP client: " + boolToStr(withFtp) + "\n";
606txtOut += " HTTP client: " + boolToStr(withHttp) + "\n";
607txtOut += " HTML processor: " + boolToStr(withHtml) + "\n";
608txtOut += " C14N support: " + boolToStr(withC14n) + "\n";
609txtOut += " Catalog support: " + boolToStr(withCatalog) + "\n";
610txtOut += " DocBook support: " + boolToStr(withDocb) + "\n";
611txtOut += " XPath support: " + boolToStr(withXpath) + "\n";
612txtOut += " XPointer support: " + boolToStr(withXptr) + "\n";
613txtOut += " XInclude support: " + boolToStr(withXinclude) + "\n";
Igor Zlatkovic3acadf42002-09-20 16:40:17 +0000614txtOut += " iconv support: " + boolToStr(withIconv) + "\n";
William M. Brack6d13f332003-08-08 16:40:36 +0000615txtOut += " iso8859x support: " + boolToStr(withIso8859x) + "\n";
Igor Zlatkovic3acadf42002-09-20 16:40:17 +0000616txtOut += " zlib support: " + boolToStr(withZlib) + "\n";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000617txtOut += " Debugging module: " + boolToStr(withDebug) + "\n";
618txtOut += " Memory debugging: " + boolToStr(withMemDebug) + "\n";
Igor Zlatkovic8e040972002-09-20 13:39:53 +0000619txtOut += " Regexp support: " + boolToStr(withRegExps) + "\n";
Daniel Veillardce1648b2005-01-04 15:10:22 +0000620txtOut += " Module support: " + boolToStr(withModules) + "\n";
Daniel Veillard141310a2003-10-06 08:47:56 +0000621txtOut += " Tree support: " + boolToStr(withTree) + "\n";
622txtOut += " Reader support: " + boolToStr(withReader) + "\n";
Daniel Veillardea048932003-10-21 09:27:57 +0000623txtOut += " Writer support: " + boolToStr(withWriter) + "\n";
Daniel Veillard141310a2003-10-06 08:47:56 +0000624txtOut += " Walker support: " + boolToStr(withWalker) + "\n";
Igor Zlatkovicc5a29ca2003-12-11 13:56:54 +0000625txtOut += " Pattern support: " + boolToStr(withPattern) + "\n";
Daniel Veillard141310a2003-10-06 08:47:56 +0000626txtOut += " Push support: " + boolToStr(withPush) + "\n";
627txtOut += "Validation support: " + boolToStr(withValid) + "\n";
628txtOut += " SAX1 support: " + boolToStr(withSax1) + "\n";
629txtOut += " Legacy support: " + boolToStr(withLegacy) + "\n";
630txtOut += " Output support: " + boolToStr(withOutput) + "\n";
Igor Zlatkovica6f2d902002-04-16 17:57:17 +0000631txtOut += "XML Schema support: " + boolToStr(withSchemas) + "\n";
Igor Zlatkovic853514f2002-11-22 21:41:09 +0000632txtOut += " Python bindings: " + boolToStr(withPython) + "\n";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000633txtOut += "\n";
634txtOut += "Win32 build configuration\n";
635txtOut += "-------------------------\n";
Igor Zlatkovicbd1a3062002-11-14 17:43:24 +0000636txtOut += " Compiler: " + compiler + "\n";
Igor Zlatkovic4f928212003-11-27 18:39:01 +0000637if (compiler == "msvc")
638 txtOut += " C-Runtime option: " + cruntime + "\n";
Igor Zlatkovicc7646e62003-12-01 11:33:27 +0000639else if (compiler == "bcb")
640 txtOut += " Use dynamic RTL: " + dynruntime + "\n";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000641txtOut += " Debug symbols: " + boolToStr(buildDebug) + "\n";
642txtOut += " Static xmllint: " + boolToStr(buildStatic) + "\n";
643txtOut += " Install prefix: " + buildPrefix + "\n";
644txtOut += " Put tools in: " + buildBinPrefix + "\n";
645txtOut += " Put headers in: " + buildIncPrefix + "\n";
646txtOut += "Put static libs in: " + buildLibPrefix + "\n";
647txtOut += "Put shared libs in: " + buildSoPrefix + "\n";
648txtOut += " Include path: " + buildInclude + "\n";
649txtOut += " Lib path: " + buildLib + "\n";
650WScript.Echo(txtOut);
651
William M. Brack6d13f332003-08-08 16:40:36 +0000652//
653