blob: 8450439cae6aec740200f3cbbdb828219d4b5155 [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 *
7 * March 2002, Igor Zlatkovic <igor@stud.fh-frankfurt.de>
8 */
9
10/* The source directory, relative to the one where this file resides. */
11var srcDirXml = "..";
12var srcDirUtils = "..";
13/* The directory where we put the binaries after compilation. */
14var binDir = "binaries";
15/* Base name of what we are building. */
16var baseName = "libxml2";
17/* Configure file which contains the version and the output file where
18 we can store our build configuration. */
19var configFile = srcDirXml + "\\configure.in";
20var versionFile = ".\\configure.txt";
21/* Input and output files regarding the libxml features. The second
22 output file is there for the compatibility reasons, otherwise it
23 is identical to the first. */
24var optsFileIn = srcDirXml + "\\include\\libxml\\xmlversion.h.in";
25var optsFile = srcDirXml + "\\include\\libxml\\xmlversion.h";
26var optsFile2 = srcDirXml + "\\include\\libxml\\xmlwin32version.h";
27/* Version strings for the binary distribution. Will be filled later
28 in the code. */
29var verMajor;
30var verMinor;
31var verMicro;
32/* Libxml features. */
33var withTrio = false;
34var withThreads = false;
35var withFtp = true;
36var withHttp = true;
37var withHtml = true;
38var withC14n = true;
39var withCatalog = true;
40var withDocb = true;
41var withXpath = true;
42var withXptr = true;
43var withXinclude = true;
44var withIconv = true;
45var 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;
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +000049/* Win32 build options. */
50var buildDebug = 0;
51var buildStatic = 0;
52var buildPrefix = ".";
53var buildBinPrefix = "$(PREFIX)\\bin";
54var buildIncPrefix = "$(PREFIX)\\include";
55var buildLibPrefix = "$(PREFIX)\\lib";
56var buildSoPrefix = "$(PREFIX)\\lib";
57var buildInclude = ".";
58var buildLib = ".";
59/* Local stuff */
60var error = 0;
61
62/* Helper function, transforms the option variable into the 'Enabled'
63 or 'Disabled' string. */
64function boolToStr(opt)
65{
66 if (opt == false)
67 return "Disabled";
68 else if (opt == true)
69 return "Enabled";
70 error = 1;
71 return "Undefined";
72}
73
74/* Helper function, transforms the argument string into a boolean
75 value. */
76function strToBool(opt)
77{
78 if (opt == 0 || opt == "no")
79 return false;
80 else if (opt == 1 || opt == "yes")
81 return true;
82 error = 1;
83 return false;
84}
85
86/* Displays the details about how to use this script. */
87function usage()
88{
89 var txt;
90 txt = "Usage:\n";
91 txt += " cscript " + WScript.ScriptName + " <options>\n";
92 txt += " cscript " + WScript.ScriptName + " help\n\n";
93 txt += "Options can be specified in the form <option>=<value>, where the value is\n";
94 txt += "either 'yes' or 'no'.\n\n";
95 txt += "XML processor options, default value given in parentheses:\n\n";
96 txt += " trio: Enable TRIO string manipulator (" + (withTrio? "yes" : "no") + ")\n";
97 txt += " threads: Enable thread safety (" + (withThreads? "yes" : "no") + ") \n";
98 txt += " ftp: Enable FTP client (" + (withFtp? "yes" : "no") + ")\n";
99 txt += " http: Enable HTTP client (" + (withHttp? "yes" : "no") + ")\n";
100 txt += " html: Enable HTML processor (" + (withHtml? "yes" : "no") + ")\n";
101 txt += " c14n: Enable C14N support (" + (withC14n? "yes" : "no") + ")\n";
102 txt += " catalog: Enable catalog support (" + (withCatalog? "yes" : "no") + ")\n";
103 txt += " docb: Enable DocBook support (" + (withDocb? "yes" : "no") + ")\n";
104 txt += " xpath: Enable XPath support (" + (withXpath? "yes" : "no") + ")\n";
105 txt += " xptr: Enable XPointer support (" + (withXptr? "yes" : "no") + ")\n";
106 txt += " xinclude: Enable XInclude support (" + (withXinclude? "yes" : "no") + ")\n";
107 txt += " iconv: Enable ICONV support (" + (withIconv? "yes" : "no") + ")\n";
108 txt += " xml_debug: Enable XML debbugging module (" + (withDebug? "yes" : "no") + ")\n";
109 txt += " mem_debug: Enable memory debugger (" + (withMemDebug? "yes" : "no") + ")\n";
Igor Zlatkovic8e040972002-09-20 13:39:53 +0000110 txt += " regexps: Enable regular expressions (" + (withRegExps? "yes" : "no") + ")\n";
Igor Zlatkovica6f2d902002-04-16 17:57:17 +0000111 txt += " schemas: Enable XML Schema support (" + (withSchemas? "yes" : "no") + ")\n";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000112 txt += "\nWin32 build options, default value given in parentheses:\n\n";
113 txt += " debug: Build unoptimised debug executables (" + (buildDebug? "yes" : "no") + ")\n";
114 txt += " static: Link xmllint statically to libxml2 (" + (buildStatic? "yes" : "no") + ")\n";
115 txt += " prefix: Base directory for the installation (" + buildPrefix + ")\n";
116 txt += " bindir: Directory where xmllint and friends should be installed\n";
117 txt += " (" + buildBinPrefix + ")\n";
118 txt += " incdir: Directory where headers should be installed\n";
119 txt += " (" + buildIncPrefix + ")\n";
120 txt += " libdir: Directory where static and import libraries should be\n";
121 txt += " installed (" + buildLibPrefix + ")\n";
122 txt += " sodir: Directory where shared libraries should be installed\n";
123 txt += " (" + buildSoPrefix + ")\n";
124 txt += " include: Additional search path for the compiler, particularily\n";
125 txt += " where iconv headers can be found (" + buildInclude + ")\n";
126 txt += " lib: Additional search path for the linker, particularily\n";
127 txt += " where iconv library can be found (" + buildLib + ")\n";
128 WScript.Echo(txt);
129}
130
131/* Discovers the version we are working with by reading the apropriate
132 configuration file. Despite its name, this also writes the configuration
133 file included by our makefile. */
134function discoverVersion()
135{
136 var fso, cf, vf, ln, s;
137 fso = new ActiveXObject("Scripting.FileSystemObject");
138 cf = fso.OpenTextFile(configFile, 1);
139 vf = fso.CreateTextFile(versionFile, true);
140 vf.WriteLine("# " + versionFile);
141 vf.WriteLine("# This file is generated automatically by " + WScript.ScriptName + ".");
142 vf.WriteBlankLines(1);
143 while (cf.AtEndOfStream != true) {
144 ln = cf.ReadLine();
145 s = new String(ln);
146 if (s.search(/^LIBXML_MAJOR_VERSION/) != -1) {
147 vf.WriteLine(s);
148 verMajor = s.substring(s.indexOf("=") + 1, s.length)
149 } else if(s.search(/^LIBXML_MINOR_VERSION/) != -1) {
150 vf.WriteLine(s);
151 verMinor = s.substring(s.indexOf("=") + 1, s.length)
152 } else if(s.search(/^LIBXML_MICRO_VERSION/) != -1) {
153 vf.WriteLine(s);
154 verMicro = s.substring(s.indexOf("=") + 1, s.length)
155 }
156 }
157 cf.Close();
158 vf.WriteLine("XML_SRCDIR=" + srcDirXml);
159 vf.WriteLine("UTILS_SRCDIR=" + srcDirUtils);
160 vf.WriteLine("BINDIR=" + binDir);
161 vf.WriteLine("WITH_TRIO=" + (withTrio? "1" : "0"));
162 vf.WriteLine("WITH_THREADS=" + (withThreads? "1" : "0"));
163 vf.WriteLine("WITH_FTP=" + (withFtp? "1" : "0"));
164 vf.WriteLine("WITH_HTTP=" + (withHttp? "1" : "0"));
165 vf.WriteLine("WITH_HTML=" + (withHtml? "1" : "0"));
166 vf.WriteLine("WITH_C14N=" + (withC14n? "1" : "0"));
167 vf.WriteLine("WITH_CATALOG=" + (withCatalog? "1" : "0"));
168 vf.WriteLine("WITH_DOCB=" + (withDocb? "1" : "0"));
169 vf.WriteLine("WITH_XPATH=" + (withXpath? "1" : "0"));
170 vf.WriteLine("WITH_XPTR=" + (withXptr? "1" : "0"));
171 vf.WriteLine("WITH_XINCLUDE=" + (withXinclude? "1" : "0"));
172 vf.WriteLine("WITH_ICONV=" + (withIconv? "1" : "0"));
173 vf.WriteLine("WITH_DEBUG=" + (withDebug? "1" : "0"));
174 vf.WriteLine("WITH_MEM_DEBUG=" + (withMemDebug? "1" : "0"));
Igor Zlatkovica6f2d902002-04-16 17:57:17 +0000175 vf.WriteLine("WITH_SCHEMAS=" + (withSchemas? "1" : "0"));
Igor Zlatkovic8e040972002-09-20 13:39:53 +0000176 vf.WriteLine("WITH_REGEXPS=" + (withRegExps? "1" : "0"));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000177 vf.WriteLine("DEBUG=" + (buildDebug? "1" : "0"));
178 vf.WriteLine("STATIC=" + (buildStatic? "1" : "0"));
179 vf.WriteLine("PREFIX=" + buildPrefix);
180 vf.WriteLine("BINPREFIX=" + buildBinPrefix);
181 vf.WriteLine("INCPREFIX=" + buildIncPrefix);
182 vf.WriteLine("LIBPREFIX=" + buildLibPrefix);
183 vf.WriteLine("SOPREFIX=" + buildSoPrefix);
184 vf.WriteLine("INCLUDE=$(INCLUDE);" + buildInclude);
185 vf.WriteLine("LIB=$(LIB);" + buildLib);
186 vf.Close();
187}
188
189/* Configures libxml. This one will generate xmlversion.h from xmlversion.h.in
190 taking what the user passed on the command line into account. */
191function configureLibxml()
192{
193 var fso, ofi, of, ln, s;
194 fso = new ActiveXObject("Scripting.FileSystemObject");
195 ofi = fso.OpenTextFile(optsFileIn, 1);
196 of = fso.CreateTextFile(optsFile, true);
197 while (ofi.AtEndOfStream != true) {
198 ln = ofi.ReadLine();
199 s = new String(ln);
200 if (s.search(/\@VERSION\@/) != -1) {
201 of.WriteLine(s.replace(/\@VERSION\@/,
202 verMajor + "." + verMinor + "." + verMicro));
203 } else if (s.search(/\@LIBXML_VERSION_NUMBER\@/) != -1) {
204 of.WriteLine(s.replace(/\@LIBXML_VERSION_NUMBER\@/,
205 verMajor*10000 + verMinor*100 + verMicro*1));
206 } else if (s.search(/\@WITH_TRIO\@/) != -1) {
207 of.WriteLine(s.replace(/\@WITH_TRIO\@/, withTrio? "1" : "0"));
208 } else if (s.search(/\@WITH_THREADS\@/) != -1) {
209 of.WriteLine(s.replace(/\@WITH_THREADS\@/, withThreads? "1" : "0"));
210 } else if (s.search(/\@WITH_FTP\@/) != -1) {
211 of.WriteLine(s.replace(/\@WITH_FTP\@/, withFtp? "1" : "0"));
212 } else if (s.search(/\@WITH_HTTP\@/) != -1) {
213 of.WriteLine(s.replace(/\@WITH_HTTP\@/, withHttp? "1" : "0"));
214 } else if (s.search(/\@WITH_HTML\@/) != -1) {
215 of.WriteLine(s.replace(/\@WITH_HTML\@/, withHtml? "1" : "0"));
216 } else if (s.search(/\@WITH_C14N\@/) != -1) {
217 of.WriteLine(s.replace(/\@WITH_C14N\@/, withC14n? "1" : "0"));
218 } else if (s.search(/\@WITH_CATALOG\@/) != -1) {
219 of.WriteLine(s.replace(/\@WITH_CATALOG\@/, withCatalog? "1" : "0"));
220 } else if (s.search(/\@WITH_DOCB\@/) != -1) {
221 of.WriteLine(s.replace(/\@WITH_DOCB\@/, withDocb? "1" : "0"));
222 } else if (s.search(/\@WITH_XPATH\@/) != -1) {
223 of.WriteLine(s.replace(/\@WITH_XPATH\@/, withXpath? "1" : "0"));
224 } else if (s.search(/\@WITH_XPTR\@/) != -1) {
225 of.WriteLine(s.replace(/\@WITH_XPTR\@/, withXptr? "1" : "0"));
226 } else if (s.search(/\@WITH_XINCLUDE\@/) != -1) {
227 of.WriteLine(s.replace(/\@WITH_XINCLUDE\@/, withXinclude? "1" : "0"));
228 } else if (s.search(/\@WITH_ICONV\@/) != -1) {
229 of.WriteLine(s.replace(/\@WITH_ICONV\@/, withIconv? "1" : "0"));
230 } else if (s.search(/\@WITH_DEBUG\@/) != -1) {
231 of.WriteLine(s.replace(/\@WITH_DEBUG\@/, withDebug? "1" : "0"));
232 } else if (s.search(/\@WITH_MEM_DEBUG\@/) != -1) {
233 of.WriteLine(s.replace(/\@WITH_MEM_DEBUG\@/, withMemDebug? "1" : "0"));
Igor Zlatkovica6f2d902002-04-16 17:57:17 +0000234 } else if (s.search(/\@WITH_SCHEMAS\@/) != -1) {
235 of.WriteLine(s.replace(/\@WITH_SCHEMAS\@/, withSchemas? "1" : "0"));
Igor Zlatkovic8e040972002-09-20 13:39:53 +0000236 } else if (s.search(/\@WITH_REGEXPS\@/) != -1) {
237 of.WriteLine(s.replace(/\@WITH_REGEXPS\@/, withRegExps? "1" : "0"));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000238 } else
239 of.WriteLine(ln);
240 }
241 ofi.Close();
242 of.Close();
243 fso.CopyFile(optsFile, optsFile2, true);
244}
245
246/* Creates the readme file for the binary distribution of 'bname', for the
247 version 'ver' in the file 'file'. This one is called from the Makefile when
248 generating a binary distribution. The parameters are passed by make. */
249function genReadme(bname, ver, file)
250{
251 var fso, f;
252 fso = new ActiveXObject("Scripting.FileSystemObject");
253 f = fso.CreateTextFile(file, true);
254 f.WriteLine(" " + bname + " " + ver);
255 f.WriteLine(" --------------");
256 f.WriteBlankLines(1);
257 f.WriteLine(" This is " + bname + ", version " + ver + ", binary package for the native Win32/IA32");
258 f.WriteLine("platform.");
259 f.WriteBlankLines(1);
260 f.WriteLine(" The directory named 'include' contains the header files. Place its");
261 f.WriteLine("contents somewhere where it can be found by the compiler.");
262 f.WriteLine(" The directory which answers to the name 'lib' contains the static and");
263 f.WriteLine("dynamic libraries. Place them somewhere where they can be found by the");
264 f.WriteLine("linker. The files whose names end with '_a.lib' are aimed for static");
265 f.WriteLine("linking, the other files are lib/dll pairs.");
266 f.WriteLine(" The directory called 'util' contains various programs which count as a");
267 f.WriteLine("part of " + bname + ".");
268 f.WriteBlankLines(1);
Igor Zlatkovic0ceeb8e2002-09-10 19:07:02 +0000269 f.WriteLine(" If you plan to develop your own programme, in C, which uses " + bname + ", then");
270 f.WriteLine("you should know what to do with the files in the binary package. If you don't,");
271 f.WriteLine("know this, then please, please do some research on how to use a");
272 f.WriteLine("third-party library in a C programme. The topic belongs to the very basics");
273 f.WriteLine("and you will not be able to do much without that knowledge.");
274 f.WriteBlankLines(1);
275 f.WriteLine(" If you wish to use " + bname + " solely through the supplied utilities, such as");
276 f.WriteLine("xmllint or xsltproc, then all you need to do is place the");
277 f.WriteLine("contents of the 'lib' and 'util' directories from the binary package in a");
278 f.WriteLine("directory on your disc which is mentioned in your PATH environment");
279 f.WriteLine("variable. You can use an existing directory which is allready in the");
280 f.WriteLine("path, such as 'C:\WINDOWS', or 'C:\WINNT'. You can also create a new");
281 f.WriteLine("directory for " + bname + " and place the files there, but be sure to modify");
282 f.WriteLine("the PATH environment variable and add that new directory to its list.");
283 f.WriteBlankLines(1);
284 f.WriteLine(" If you use other software which needs " + bname + ", such as Apache");
285 f.WriteLine("Web Server in certain configurations, then please consult the");
286 f.WriteLine("documentation of that software and see if it mentions something about");
287 f.WriteLine("how it uses " + bname + " and how it expects it to be installed. If you find");
288 f.WriteLine("nothing, then the default installation, as described in the previous");
289 f.WriteLine("paragraph, should be suficient.");
290 f.WriteBlankLines(1);
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000291 f.WriteLine(" If there is something you cannot keep for yourself, such as a problem,");
292 f.WriteLine("a cheer of joy, a comment or a suggestion, feel free to contact me using");
293 f.WriteLine("the address below.");
294 f.WriteBlankLines(1);
295 f.WriteLine(" Igor Zlatkovic (igor@stud.fh-frankfurt.de)");
296 f.Close();
297}
298
299/*
300 * main(),
301 * Execution begins here.
302 */
303
304// Parse the command-line arguments.
305for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) {
306 var arg, opt;
307 arg = WScript.Arguments(i);
308 opt = arg.substring(0, arg.indexOf("="));
309 if (opt.length == 0)
310 opt = arg.substring(0, arg.indexOf(":"));
311 if (opt.length > 0) {
312 if (opt == "trio")
313 withTrio = strToBool(arg.substring(opt.length + 1, arg.length));
314 else if (opt == "threads")
315 withThreads = strToBool(arg.substring(opt.length + 1, arg.length));
316 else if (opt == "ftp")
317 withFtp = strToBool(arg.substring(opt.length + 1, arg.length));
318 else if (opt == "http")
319 withHttp = strToBool(arg.substring(opt.length + 1, arg.length));
320 else if (opt == "html")
321 withHtml = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovic9425ce22002-04-10 21:57:11 +0000322 else if (opt == "c14n")
323 withC14n = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000324 else if (opt == "catalog")
325 withCatalog = strToBool(arg.substring(opt.length + 1, arg.length));
326 else if (opt == "docb")
327 withDocb = strToBool(arg.substring(opt.length + 1, arg.length));
328 else if (opt == "xpath")
329 withXpath = strToBool(arg.substring(opt.length + 1, arg.length));
330 else if (opt == "xptr")
331 withXptr = strToBool(arg.substring(opt.length + 1, arg.length));
332 else if (opt == "xinclude")
333 withXinclude = strToBool(arg.substring(opt.length + 1, arg.length));
334 else if (opt == "iconv")
335 withIconv = strToBool(arg.substring(opt.length + 1, arg.length));
336 else if (opt == "xml_debug")
337 withDebug = strToBool(arg.substring(opt.length + 1, arg.length));
338 else if (opt == "mem_debug")
339 withMemDebug = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovica6f2d902002-04-16 17:57:17 +0000340 else if (opt == "schemas")
341 withSchemas = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovic8e040972002-09-20 13:39:53 +0000342 else if (opt == "regexps")
343 withRegExps = strToBool(arg.substring(opt.length + 1, arg.length));
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000344 else if (opt == "debug")
345 buildDebug = strToBool(arg.substring(opt.length + 1, arg.length));
346 else if (opt == "static")
347 buildStatic = strToBool(arg.substring(opt.length + 1, arg.length));
348 else if (opt == "prefix")
349 buildPrefix = arg.substring(opt.length + 1, arg.length);
350 else if (opt == "incdir")
351 buildIncPrefix = arg.substring(opt.length + 1, arg.length);
352 else if (opt == "bindir")
353 buildBinPrefix = arg.substring(opt.length + 1, arg.length);
354 else if (opt == "libdir")
355 buildLibPrefix = arg.substring(opt.length + 1, arg.length);
356 else if (opt == "sodir")
357 buildSoPrefix = arg.substring(opt.length + 1, arg.length);
358 else if (opt == "incdir")
359 buildIncPrefix = arg.substring(opt.length + 1, arg.length);
360 else if (opt == "include")
361 buildInclude = arg.substring(opt.length + 1, arg.length);
362 else if (opt == "lib")
363 buildLib = arg.substring(opt.length + 1, arg.length);
364 else
365 error = 1;
366 } else if (i == 0) {
367 if (arg == "genreadme") {
368 // This command comes from the Makefile and will not be checked
369 // for errors, because Makefile will always supply right the parameters.
370 genReadme(WScript.Arguments(1), WScript.Arguments(2), WScript.Arguments(3));
371 WScript.Quit(0);
372 } else if (arg == "help") {
373 usage();
374 WScript.Quit(0);
375 }
376 } else
377 error = 1;
378}
379
380// If we fail here, it is because the user supplied an unrecognised argument.
381if (error != 0) {
382 usage();
383 WScript.Quit(error);
384}
385
386// Discover the version.
387discoverVersion();
388if (error != 0) {
389 WScript.Echo("Version discovery failed, aborting.");
390 WScript.Quit(error);
391}
392WScript.Echo(baseName + " version: " + verMajor + "." + verMinor + "." + verMicro);
393
394// Configure libxml.
395configureLibxml();
396if (error != 0) {
397 WScript.Echo("Configuration failed, aborting.");
398 WScript.Quit(error);
399}
400
401// Create the makefile.
402var fso = new ActiveXObject("Scripting.FileSystemObject");
403fso.CopyFile(".\\Makefile.msvc", ".\\Makefile", true);
404WScript.Echo("Created Makefile.");
405
406// Display the final configuration.
407var txtOut = "\nXML processor configuration\n";
408txtOut += "---------------------------\n";
409txtOut += " Trio: " + boolToStr(withTrio) + "\n";
410txtOut += " Thread safety: " + boolToStr(withThreads) + "\n";
411txtOut += " FTP client: " + boolToStr(withFtp) + "\n";
412txtOut += " HTTP client: " + boolToStr(withHttp) + "\n";
413txtOut += " HTML processor: " + boolToStr(withHtml) + "\n";
414txtOut += " C14N support: " + boolToStr(withC14n) + "\n";
415txtOut += " Catalog support: " + boolToStr(withCatalog) + "\n";
416txtOut += " DocBook support: " + boolToStr(withDocb) + "\n";
417txtOut += " XPath support: " + boolToStr(withXpath) + "\n";
418txtOut += " XPointer support: " + boolToStr(withXptr) + "\n";
419txtOut += " XInclude support: " + boolToStr(withXinclude) + "\n";
420txtOut += " ICONV support: " + boolToStr(withIconv) + "\n";
421txtOut += " Debugging module: " + boolToStr(withDebug) + "\n";
422txtOut += " Memory debugging: " + boolToStr(withMemDebug) + "\n";
Igor Zlatkovic8e040972002-09-20 13:39:53 +0000423txtOut += " Regexp support: " + boolToStr(withRegExps) + "\n";
Igor Zlatkovica6f2d902002-04-16 17:57:17 +0000424txtOut += "XML Schema support: " + boolToStr(withSchemas) + "\n";
Igor Zlatkovicac97f6e2002-03-24 21:00:26 +0000425txtOut += "\n";
426txtOut += "Win32 build configuration\n";
427txtOut += "-------------------------\n";
428txtOut += " Debug symbols: " + boolToStr(buildDebug) + "\n";
429txtOut += " Static xmllint: " + boolToStr(buildStatic) + "\n";
430txtOut += " Install prefix: " + buildPrefix + "\n";
431txtOut += " Put tools in: " + buildBinPrefix + "\n";
432txtOut += " Put headers in: " + buildIncPrefix + "\n";
433txtOut += "Put static libs in: " + buildLibPrefix + "\n";
434txtOut += "Put shared libs in: " + buildSoPrefix + "\n";
435txtOut += " Include path: " + buildInclude + "\n";
436txtOut += " Lib path: " + buildLib + "\n";
437WScript.Echo(txtOut);
438
439// Done.