libxml2.bkl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. <?xml version="1.0" ?>
  2. <!-- Author: Francesco Montorsi <frm@users.sourceforge.net> -->
  3. <!-- Date: 30/8/2004 -->
  4. <!-- Last revision: 26/1/2005 -->
  5. <!-- LIBXML2 BAKEFILE -->
  6. <!-- -->
  7. <!-- The bakefile used to build the library and the test -->
  8. <!-- programs. The makefiles output is put: -->
  9. <!-- -->
  10. <!-- - in the ..\LIB folder -->
  11. <!-- - in the ..\BIN folder -->
  12. <!-- -->
  13. <makefile>
  14. <using module="datafiles"/>
  15. <requires version="0.1.5"/>
  16. <!-- This is a bakefile, that is, a generic template used to -->
  17. <!-- generate makefiles ALL supported compilers. -->
  18. <!-- To use this project file you need Bakefile installed. -->
  19. <!-- With the command "bakefile_gen" you can regen all the -->
  20. <!-- makefiles and project files. -->
  21. <!-- See http://bakefile.sourceforge.net for more info. -->
  22. <!--
  23. This file is divided in:
  24. - generic options
  25. - generic variables
  26. - libxml2 options
  27. - libxml2 variables
  28. - about config.h creation
  29. - templates
  30. - libxml2 library target
  31. - libxml2 test program targets
  32. -->
  33. <!-- -->
  34. <!-- GENERIC OPTIONS -->
  35. <!-- -->
  36. <!-- This is a standard option that determines -->
  37. <!-- whether the user wants to build this library as -->
  38. <!-- a dll or as a static library. -->
  39. <option name="SHARED">
  40. <values>0,1</values>
  41. <values-description>,DLL</values-description>
  42. <default-value>0</default-value>
  43. <description>If set to zero a STATIC libxml library will be built</description>
  44. </option>
  45. <!-- Configuration for building the bakefile with -->
  46. <!-- unicode strings or not (unicode or ansi). -->
  47. <option name="UNICODE">
  48. <values>0,1</values>
  49. <values-description>,Unicode</values-description>
  50. <default-value>0</default-value>
  51. <description>Compile Unicode build?</description>
  52. </option>
  53. <!-- There are several options that deal with build -->
  54. <!-- types. First, there's this one, BUILD. -->
  55. <!-- -->
  56. <!-- BUILD determines whether or not we want to build -->
  57. <!-- in release or debug mode. Note that in practice -->
  58. <!-- this means modifying the optimize tag, which by -->
  59. <!-- default is set to off. In this case debug means -->
  60. <!-- off (no optimizations), and release means speed -->
  61. <!-- (fast with inlining). There is also a size option -->
  62. <!-- that is not addressed in this example bakefile. -->
  63. <option name="BUILD">
  64. <values>debug,release</values>
  65. <values-description>Debug,Release</values-description>
  66. <default-value>release</default-value>
  67. <description>
  68. Type of compiled binaries
  69. </description>
  70. </option>
  71. <!-- -->
  72. <!-- GENERIC VARIABLES -->
  73. <!-- -->
  74. <!-- Set the ISDLL variable, so that we can use it -->
  75. <!-- inside an if statement later on (options not -->
  76. <!-- allowed in if statements). -->
  77. <set var="ISDLL" cond="SHARED=='1'">1</set>
  78. <set var="ISDLL" cond="SHARED=='0'">0</set>
  79. <!-- The unicode define we want. By default bakefile -->
  80. <!-- makes variables an empty string, so if unicode -->
  81. <!-- is not defined $(UNICODE_DEFINE) would expand -->
  82. <!-- to nothing (literally). -->
  83. <set var="UNICODE_DEFINE">
  84. <if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if>
  85. </set>
  86. <!-- The debug define we need with win32 compilers -->
  87. <!-- (on Linux, the wx-config program is used). -->
  88. <set var="DEBUG_DEFINE">
  89. <if cond="FORMAT!='autoconf' and BUILD=='debug'">
  90. __WXDEBUG__
  91. </if>
  92. </set>
  93. <!-- Value we will use later on for the debug-info -->
  94. <!-- tag inside our templates. -->
  95. <set var="DEBUGINFO">
  96. <if cond="BUILD=='debug'">on</if>
  97. <if cond="BUILD=='release'">off</if>
  98. </set>
  99. <!-- Value we will use later on for the debug-runtime -->
  100. <!-- tag inside our templates. -->
  101. <set var="DEBUGRUNTIME">
  102. <if cond="BUILD=='debug'">on</if>
  103. <if cond="BUILD=='release'">off</if>
  104. </set>
  105. <!-- Value for optimize tag. -->
  106. <set var="OPTIMIZEFLAG">
  107. <if cond="BUILD=='debug'">off</if>
  108. <if cond="BUILD=='release'">speed</if>
  109. </set>
  110. <!-- Level of warnings. Here we max it out in debug -->
  111. <!-- mode, and turn them off in release mode. -->
  112. <set var="WARNINGS">
  113. <if cond="BUILD=='debug'">max</if>
  114. <if cond="BUILD=='release'">no</if>
  115. </set>
  116. <!-- Set MYCPPFLAGS as empty; maybe it will be filled later... -->
  117. <set var="MYCPPFLAGS"></set>
  118. <if cond="FORMAT=='mingw' or FORMAT=='autoconf'">
  119. <!-- With GCC, settings warnings to MAX would force -->
  120. <!-- Bakefile to call GCC with "-W -Wall" which generates -->
  121. <!-- a *lot* of warnings about wxWidgets headers... -->
  122. <!-- this is why "-W -Wall" is here replaced by "-Wall". -->
  123. <set var="WARNINGS">default</set>
  124. <set var="MYCPPFLAGS">-Wall</set>
  125. </if>
  126. <!-- -->
  127. <!-- LIBXML2 OPTIONS -->
  128. <!-- -->
  129. <!-- Note #1: not all of them are used by win32 makefiles -->
  130. <!-- -->
  131. <!-- Note #2: since all combinations of non-path options are -->
  132. <!-- translated into different 'configurations' by -->
  133. <!-- Bakefile when using the MSVC6PRJ output, we must -->
  134. <!-- avoid to create a 10 MB libxml2.dsp file forcing -->
  135. <!-- some options to their default values... this -->
  136. <!-- behaviour can be overridden by the -->
  137. <!-- FULL_OPTIONS_SUPPORT -->
  138. <!-- variable defined below... -->
  139. <set var="FULL_OPTIONS_SUPPORT">
  140. <if cond="FORMAT=='msvc6prj'">0</if>
  141. <if cond="FORMAT!='msvc6prj'">1</if>
  142. </set>
  143. <option name="ICONV_DIR" category="path">
  144. <default-value>c:\iconv</default-value>
  145. <description>The iconv library main folder</description>
  146. </option>
  147. <option name="WITH_TRIO">
  148. <values>0,1</values>
  149. <default-value>0</default-value>
  150. <description>Enable TRIO string manipulator</description>
  151. </option>
  152. <!-- see the note #2 -->
  153. <if cond="FULL_OPTIONS_SUPPORT=='0'">
  154. <set var="WITH_THREADS">native</set>
  155. </if>
  156. <if cond="FULL_OPTIONS_SUPPORT=='1'">
  157. <option name="WITH_THREADS">
  158. <values>no,ctls,native,posix</values>
  159. <default-value>native</default-value>
  160. <description>Enable thread safety</description>
  161. </option>
  162. </if>
  163. <option name="WITH_FTP">
  164. <values>0,1</values>
  165. <default-value>1</default-value>
  166. <description>Enable FTP client</description>
  167. </option>
  168. <option name="WITH_HTTP">
  169. <values>0,1</values>
  170. <default-value>1</default-value>
  171. <description>Enable HTTP client</description>
  172. </option>
  173. <option name="WITH_C14N">
  174. <values>0,1</values>
  175. <default-value>1</default-value>
  176. <description>Enable C14N support</description>
  177. </option>
  178. <option name="WITH_CATALOG">
  179. <values>0,1</values>
  180. <default-value>1</default-value>
  181. <description>Enable catalog support</description>
  182. </option>
  183. <option name="WITH_DOCB">
  184. <values>0,1</values>
  185. <default-value>1</default-value>
  186. <description>Enable DocBook support</description>
  187. </option>
  188. <option name="WITH_XPATH">
  189. <values>0,1</values>
  190. <default-value>1</default-value>
  191. <description>Enable XPath support</description>
  192. </option>
  193. <option name="WITH_XPTR">
  194. <values>0,1</values>
  195. <default-value>1</default-value>
  196. <description>Enable XPointer support</description>
  197. </option>
  198. <option name="WITH_XINCLUDE">
  199. <values>0,1</values>
  200. <default-value>1</default-value>
  201. <description>Enable XInclude support</description>
  202. </option>
  203. <!-- see the note #2 -->
  204. <if cond="FULL_OPTIONS_SUPPORT=='0'">
  205. <set var="WITH_ICONV">1</set>
  206. </if>
  207. <if cond="FULL_OPTIONS_SUPPORT=='1'">
  208. <option name="WITH_ICONV">
  209. <values>0,1</values>
  210. <default-value>1</default-value>
  211. <description>Enable iconv support</description>
  212. </option>
  213. </if>
  214. <option name="WITH_ISO8859X">
  215. <values>0,1</values>
  216. <default-value>0</default-value>
  217. <description>Enable iso8859x support</description>
  218. </option>
  219. <!-- see the note #2 -->
  220. <if cond="FULL_OPTIONS_SUPPORT=='0'">
  221. <set var="WITH_ZLIB">0</set>
  222. </if>
  223. <if cond="FULL_OPTIONS_SUPPORT=='1'">
  224. <option name="WITH_ZLIB">
  225. <values>0,1</values>
  226. <default-value>0</default-value>
  227. <description>Enable ZLIB support</description>
  228. </option>
  229. </if>
  230. <option name="WITH_REGEXPS">
  231. <values>0,1</values>
  232. <default-value>1</default-value>
  233. <description>Enable regular expressions</description>
  234. </option>
  235. <option name="WITH_TREE">
  236. <values>0,1</values>
  237. <default-value>1</default-value>
  238. <description>Enable tree api</description>
  239. </option>
  240. <option name="WITH_READER">
  241. <values>0,1</values>
  242. <default-value>1</default-value>
  243. <description>Enable xmlReader api</description>
  244. </option>
  245. <option name="WITH_WRITER">
  246. <values>0,1</values>
  247. <default-value>1</default-value>
  248. <description>Enable xmlWriter api</description>
  249. </option>
  250. <option name="WITH_WALKER">
  251. <values>0,1</values>
  252. <default-value>1</default-value>
  253. <description>Enable xmlDocWalker api</description>
  254. </option>
  255. <option name="WITH_PATTERN">
  256. <values>0,1</values>
  257. <default-value>1</default-value>
  258. <description>Enable xmlPattern api</description>
  259. </option>
  260. <option name="WITH_PUSH">
  261. <values>0,1</values>
  262. <default-value>1</default-value>
  263. <description>Enable push api</description>
  264. </option>
  265. <option name="WITH_VALID">
  266. <values>0,1</values>
  267. <default-value>1</default-value>
  268. <description>Enable DTD validation support</description>
  269. </option>
  270. <option name="WITH_SAX1">
  271. <values>0,1</values>
  272. <default-value>1</default-value>
  273. <description>Enable SAX1 api</description>
  274. </option>
  275. <option name="WITH_SCHEMAS">
  276. <values>0,1</values>
  277. <default-value>1</default-value>
  278. <description>Enable XML Schema support</description>
  279. </option>
  280. <option name="WITH_LEGACY">
  281. <values>0,1</values>
  282. <default-value>1</default-value>
  283. <description>Enable deprecated APIs</description>
  284. </option>
  285. <option name="WITH_OUTPUT">
  286. <values>0,1</values>
  287. <default-value>1</default-value>
  288. <description>Enable serialization support</description>
  289. </option>
  290. <option name="WITH_PYTHON">
  291. <values>0,1</values>
  292. <default-value>0</default-value>
  293. <description>Build Python bindings</description>
  294. </option>
  295. <!-- -->
  296. <!-- LIBXML2 VARIABLES -->
  297. <!-- -->
  298. <!-- Put all the objects files generated by -->
  299. <!-- the compilation in a subfolder of BUILD -->
  300. <set var="BUILDDIR">$(FORMAT)</set>
  301. <!-- This variable is set to 1 when the current output writer supports -->
  302. <!-- the __DEFINE_ARG variable. Otherwise it's set to zero. -->
  303. <set var="HAS_DEFINE_ARG">
  304. <if cond="FORMAT!='msvc6prj'">1</if>
  305. <if cond="FORMAT=='msvc6prj'">0</if>
  306. </set>
  307. <!-- The root directory of libxml2 -->
  308. <set var="XMLBASEDIR">..</set>
  309. <!-- The directory where libxml2' tests will be put -->
  310. <set var="XMLTESTDIR">$(XMLBASEDIR)$(DIRSEP)bin</set>
  311. <set var="LIBXML_MAJOR_VERSION">2</set>
  312. <set var="LIBXML_MINOR_VERSION">6</set>
  313. <set var="LIBXML_MICRO_VERSION">16</set>
  314. <!-- some defines related to threads -->
  315. <set var="THREADS_DEF">
  316. <if cond="HAS_DEFINE_ARG=='1' and WITH_THREADS=='native'">
  317. $(__DEFINE_ARG)_REENTRANT $(__DEFINE_ARG)HAVE_WIN32_THREADS
  318. </if>
  319. <if cond="HAS_DEFINE_ARG=='1' and WITH_THREADS=='ctls'">
  320. $(__DEFINE_ARG)_REENTRANT $(__DEFINE_ARG)HAVE_WIN32_THREADS $(__DEFINE_ARG)HAVE_COMPILER_TLS
  321. </if>
  322. <if cond="HAS_DEFINE_ARG=='1' and WITH_THREADS=='posix'">
  323. $(__DEFINE_ARG)_REENTRANT $(__DEFINE_ARG)HAVE_PTHREAD_H
  324. </if>
  325. </set>
  326. <if cond="FORMAT=='borland'">
  327. <set var="THREADS_DEF">
  328. <if cond="WITH_THREADS=='native'">$(THREADS_DEF) $(__DEFINE_ARG)__MT__</if>
  329. <if cond="WITH_THREADS=='ctls'">$(THREADS_DEF) $(__DEFINE_ARG)__MT__</if>
  330. <if cond="WITH_THREADS=='posix'">$(THREADS_DEF) $(__DEFINE_ARG)__MT__</if>
  331. </set>
  332. </if>
  333. <!-- some other conditional defines -->
  334. <set var="ZLIB_DEF"><if cond="WITH_ZLIB=='1'">HAVE_ZLIB_H</if></set>
  335. <set var="DEBUG_DEF"><if cond="BUILD=='debug'">_DEBUG</if></set>
  336. <set var="DEBUG_DEF"><if cond="BUILD=='release'">NDEBUG</if></set>
  337. <!-- this is very very important when compiling with MINGW: without this line,
  338. the test programs (and all the programs built with libxml2 which use xmlFree)
  339. won't build because of "undefined references to __xmlFree" -->
  340. <set var="STATIC_DEF"><if cond="SHARED=='0'">LIBXML_STATIC</if></set>
  341. <!-- some conditional libraries dependencies -->
  342. <set var="ICONV_LIB"><if cond="WITH_ICONV=='1'">iconv</if></set>
  343. <set var="WSOCK32_LIB"><if cond="WITH_THREADS=='native'">wsock32</if></set>
  344. <set var="ZLIB_LIB"><if cond="WITH_ZLIB=='1'">zdll</if></set>
  345. <set var="POSIX_LIB"><if cond="WITH_THREADS=='posix'">pthreadVC</if></set>
  346. <set var="XMLINCLUDEDIR">$(XMLBASEDIR)$(DIRSEP)include$(DIRSEP)libxml$(DIRSEP)</set>
  347. <!-- -->
  348. <!-- ABOUT CONFIG.H HEADER CREATION -->
  349. <!-- -->
  350. <set var="CONFIG_SRCNAME">win32config.h</set>
  351. <set var="CONFIG_DSTNAME">config.h</set>
  352. <if cond="FORMAT!='msvc6prj' and FORMAT!='autoconf' and FORMAT!='gnu'">
  353. <copy-file-to-file id="setup">
  354. <!-- On win32 we need to manually copy a default config.h file -->
  355. <!-- from the include/mc/msw folder to include/mc -->
  356. <src>../include/$(CONFIG_SRCNAME)</src>
  357. <dst>../$(CONFIG_DSTNAME)</dst>
  358. <dependency-of>all</dependency-of>
  359. <!-- With autoconf, we will use the configure script to translate -->
  360. <!-- include/mc/config.h.in to include/mc/config.h and thus we do -->
  361. <!-- not need to do anything here... -->
  362. </copy-file-to-file>
  363. </if>
  364. <if cond="FORMAT!='msvc6prj'">
  365. <mkdir id="setuplibdir"><dir>$(XMLBASEDIR)$(DIRSEP)lib</dir></mkdir>
  366. <mkdir id="setupbindir"><dir>$(XMLBASEDIR)$(DIRSEP)bin</dir></mkdir>
  367. <!-- Creates all output folders -->
  368. <phony id="setupdirs">
  369. <dependency-of>all</dependency-of>
  370. <depends>setuplibdir</depends>
  371. <depends>setupbindir</depends>
  372. </phony>
  373. </if>
  374. <!-- This defines a tag which includes headers on MSVC -->
  375. <!-- Note that $(value) is stuck in there by bakefile, -->
  376. <!-- and is the value between the beginning and end tag. -->
  377. <define-tag name="headers" rules="dll,lib,exe">
  378. <if cond="FORMAT=='msvc6prj'">
  379. <msvc-project-files>
  380. $(value)
  381. </msvc-project-files>
  382. </if>
  383. </define-tag>
  384. <!-- Creates the following custom build rule for MSVC6PRJ file:
  385. copies ..\include\win32config.h into ..\config.h
  386. NOTE: this tag must be used before the <sources> tag if you want that the configuration
  387. file will be created before any other source file is compiled... -->
  388. <define-tag name="msvc-copy-setup-h" rules="dll,lib,action">
  389. <if cond="FORMAT=='msvc6prj'">
  390. <headers>$(XMLBASEDIR)\include\$(CONFIG_SRCNAME)</headers>
  391. <set var="__subdir">$(value)</set>
  392. <set var="_custom_build_files" append="1">$(XMLBASEDIR)\include\$(CONFIG_SRCNAME)</set>
  393. <set var="_custom_build____include_win32config_h">
  394. Creating the configuration file ..\$(CONFIG_DSTNAME) from ..\include\$(CONFIG_SRCNAME)
  395. InputPath=..\include\$(CONFIG_SRCNAME)
  396. "..\$(CONFIG_DSTNAME)" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
  397. $(TAB)copy "$(DOLLAR)(InputPath)" ..\$(CONFIG_DSTNAME)
  398. </set>
  399. </if>
  400. </define-tag>
  401. <!-- -->
  402. <!-- TEMPLATES -->
  403. <!-- -->
  404. <!-- The basic template: used by all the targets -->
  405. <template id="base">
  406. <if cond="FORMAT=='mingw'">
  407. <define>HAVE_W32API_H</define>
  408. <ldflags>-mthreads</ldflags>
  409. </if>
  410. <cxxflags>$(MYCPPFLAGS)</cxxflags>
  411. <warnings>$(WARNINGS)</warnings>
  412. <define>$(UNICODE_DEFINE)</define>
  413. <optimize>$(OPTIMIZEFLAG)</optimize>
  414. <debug-info>$(DEBUGINFO)</debug-info>
  415. <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs>
  416. </template>
  417. <!-- The template used both by the library and by the test programs -->
  418. <template id="xml2" template="base">
  419. <!-- -I & -L equivalents -->
  420. <include>$(XMLBASEDIR)$(DIRSEP)include</include>
  421. <include>$(ICONV_DIR)$(DIRSEP)include</include>
  422. <lib-path>$(ICONV_DIR)$(DIRSEP)lib</lib-path>
  423. <!-- some conditional define flags -->
  424. <cflags>$(THREADS_DEF)</cflags>
  425. <define>$(ZLIB_DEF)</define>
  426. <define>$(DEBUG_DEF)</define>
  427. <define>$(STATIC_DEF)</define>
  428. <if cond="HAS_DEFINE_ARG=='0'">
  429. <!-- we are probably using an IDE output: defaults to WITH_THREADS=='native' -->
  430. <define>_REENTRANT</define>
  431. <define>HAVE_WIN32_THREADS</define>
  432. </if>
  433. <!-- these must always be defined on win32 -->
  434. <define>WIN32</define>
  435. <define>_WINDOWS</define>
  436. <define>_MBCS</define>
  437. <if cond="FORMAT=='borland'">
  438. <define>_NO_VCL</define>
  439. <define>EILSEQ=2</define>
  440. </if>
  441. </template>
  442. <!-- The template used by libxml2 test programs -->
  443. <template id="xml2test" template="xml2">
  444. <dirname>$(XMLTESTDIR)</dirname>
  445. <app-type>console</app-type>
  446. <library>libxml2</library>
  447. <sys-lib>$(ICONV_LIB)</sys-lib>
  448. <sys-lib>$(WSOCK32_LIB)</sys-lib>
  449. <sys-lib>$(ZLIB_LIB)</sys-lib>
  450. <sys-lib>$(POSIX_LIB)</sys-lib>
  451. </template>
  452. <!-- -->
  453. <!-- LIBXML2 LIBRARY TARGET -->
  454. <!-- -->
  455. <lib id="libxml2" template="xml2">
  456. <!-- this is useful only when using MSVC6PRJ -->
  457. <if cond="FORMAT=='msvc6prj'">
  458. <msvc-copy-setup-h/>
  459. <msvc-file-group>Config headers:*config.h</msvc-file-group>
  460. </if>
  461. <if cond="FORMAT!='msvc6prj'">
  462. <depends>setup</depends>
  463. <depends>setuplibdir</depends>
  464. </if>
  465. <!-- output folder -->
  466. <dirname>$(XMLBASEDIR)$(DIRSEP)lib</dirname>
  467. <!-- The output name must be "libxml2.lib" with all compilers.
  468. Since mingw format autoadds the "lib" prefix to the library
  469. name, we must intercept that case to avoid to get "liblibxml2.a" -->
  470. <if cond="FORMAT!='mingw'">
  471. <libname>libxml2</libname>
  472. </if>
  473. <if cond="FORMAT=='mingw'">
  474. <libname>xml2</libname>
  475. </if>
  476. <!-- the list of source files to compile -->
  477. <sources>
  478. $(XMLBASEDIR)$(DIRSEP)c14n.c
  479. $(XMLBASEDIR)$(DIRSEP)catalog.c
  480. $(XMLBASEDIR)$(DIRSEP)chvalid.c
  481. $(XMLBASEDIR)$(DIRSEP)debugXML.c
  482. $(XMLBASEDIR)$(DIRSEP)dict.c
  483. $(XMLBASEDIR)$(DIRSEP)DOCBparser.c
  484. $(XMLBASEDIR)$(DIRSEP)encoding.c
  485. $(XMLBASEDIR)$(DIRSEP)entities.c
  486. $(XMLBASEDIR)$(DIRSEP)error.c
  487. $(XMLBASEDIR)$(DIRSEP)globals.c
  488. $(XMLBASEDIR)$(DIRSEP)hash.c
  489. $(XMLBASEDIR)$(DIRSEP)HTMLparser.c
  490. $(XMLBASEDIR)$(DIRSEP)HTMLtree.c
  491. $(XMLBASEDIR)$(DIRSEP)legacy.c
  492. $(XMLBASEDIR)$(DIRSEP)list.c
  493. $(XMLBASEDIR)$(DIRSEP)nanoftp.c
  494. $(XMLBASEDIR)$(DIRSEP)nanohttp.c
  495. $(XMLBASEDIR)$(DIRSEP)parser.c
  496. $(XMLBASEDIR)$(DIRSEP)parserInternals.c
  497. $(XMLBASEDIR)$(DIRSEP)pattern.c
  498. $(XMLBASEDIR)$(DIRSEP)relaxng.c
  499. $(XMLBASEDIR)$(DIRSEP)SAX2.c
  500. $(XMLBASEDIR)$(DIRSEP)SAX.c
  501. $(XMLBASEDIR)$(DIRSEP)threads.c
  502. $(XMLBASEDIR)$(DIRSEP)tree.c
  503. $(XMLBASEDIR)$(DIRSEP)uri.c
  504. $(XMLBASEDIR)$(DIRSEP)valid.c
  505. $(XMLBASEDIR)$(DIRSEP)xinclude.c
  506. $(XMLBASEDIR)$(DIRSEP)xlink.c
  507. $(XMLBASEDIR)$(DIRSEP)xmlIO.c
  508. $(XMLBASEDIR)$(DIRSEP)xmlmemory.c
  509. $(XMLBASEDIR)$(DIRSEP)xmlreader.c
  510. $(XMLBASEDIR)$(DIRSEP)xmlregexp.c
  511. $(XMLBASEDIR)$(DIRSEP)xmlsave.c
  512. $(XMLBASEDIR)$(DIRSEP)xmlschemas.c
  513. $(XMLBASEDIR)$(DIRSEP)xmlschemastypes.c
  514. $(XMLBASEDIR)$(DIRSEP)xmlunicode.c
  515. $(XMLBASEDIR)$(DIRSEP)xmlwriter.c
  516. $(XMLBASEDIR)$(DIRSEP)xpath.c
  517. $(XMLBASEDIR)$(DIRSEP)xpointer.c
  518. $(XMLBASEDIR)$(DIRSEP)xmlstring.c
  519. </sources>
  520. <!-- the list of header files (for IDE projects) -->
  521. <headers>
  522. $(XMLINCLUDEDIR)c14n.h
  523. $(XMLINCLUDEDIR)catalog.h
  524. $(XMLINCLUDEDIR)chvalid.h
  525. $(XMLINCLUDEDIR)debugXML.h
  526. $(XMLINCLUDEDIR)dict.h
  527. $(XMLINCLUDEDIR)DOCBparser.h
  528. $(XMLINCLUDEDIR)encoding.h
  529. $(XMLINCLUDEDIR)entities.h
  530. $(XMLINCLUDEDIR)globals.h
  531. $(XMLINCLUDEDIR)hash.h
  532. $(XMLINCLUDEDIR)HTMLparser.h
  533. $(XMLINCLUDEDIR)HTMLtree.h
  534. $(XMLINCLUDEDIR)list.h
  535. $(XMLINCLUDEDIR)nanoftp.h
  536. $(XMLINCLUDEDIR)nanohttp.h
  537. $(XMLINCLUDEDIR)parser.h
  538. $(XMLINCLUDEDIR)parserInternals.h
  539. $(XMLINCLUDEDIR)pattern.h
  540. $(XMLINCLUDEDIR)relaxng.h
  541. $(XMLINCLUDEDIR)SAX.h
  542. $(XMLINCLUDEDIR)SAX2.h
  543. $(XMLINCLUDEDIR)schemasInternals.h
  544. $(XMLINCLUDEDIR)threads.h
  545. $(XMLINCLUDEDIR)tree.h
  546. $(XMLINCLUDEDIR)uri.h
  547. $(XMLINCLUDEDIR)valid.h
  548. $(XMLINCLUDEDIR)xinclude.h
  549. $(XMLINCLUDEDIR)xlink.h
  550. $(XMLINCLUDEDIR)xmlautomata.h
  551. $(XMLINCLUDEDIR)xmlerror.h
  552. $(XMLINCLUDEDIR)xmlexports.h
  553. $(XMLINCLUDEDIR)xmlIO.h
  554. $(XMLINCLUDEDIR)xmlmemory.h
  555. $(XMLINCLUDEDIR)xmlmodule.h
  556. $(XMLINCLUDEDIR)xmlreader.h
  557. $(XMLINCLUDEDIR)xmlregexp.h
  558. $(XMLINCLUDEDIR)xmlsave.h
  559. $(XMLINCLUDEDIR)xmlschemas.h
  560. $(XMLINCLUDEDIR)xmlschemastypes.h
  561. $(XMLINCLUDEDIR)xmlstring.h
  562. $(XMLINCLUDEDIR)xmlunicode.h
  563. $(XMLINCLUDEDIR)xmlversion.h
  564. $(XMLINCLUDEDIR)xmlwriter.h
  565. $(XMLINCLUDEDIR)xpath.h
  566. $(XMLINCLUDEDIR)xpathInternals.h
  567. $(XMLINCLUDEDIR)xpointer.h
  568. </headers>
  569. <!-- these ones are not inside the include/libxml folder -->
  570. <headers>
  571. $(XMLBASEDIR)$(DIRSEP)libxml.h
  572. $(XMLBASEDIR)$(DIRSEP)triodef.h
  573. $(XMLBASEDIR)$(DIRSEP)trionan.h
  574. $(XMLBASEDIR)$(DIRSEP)include$(DIRSEP)wsockcompat.h
  575. </headers>
  576. </lib>
  577. <!-- -->
  578. <!-- LIBXML2 test programs -->
  579. <!-- -->
  580. <set var="BUILD_ALL_TESTS">
  581. <!-- when using full options support with MSVC6PRJ we should
  582. avoid to create all the DSP files required for the test
  583. programs: they would take a _lot_ of space !! -->
  584. <if cond="FORMAT=='msvc6prj' and FULL_OPTIONS_SUPPORT=='1'">0</if>
  585. <!-- when creating a makefile or using MSVC6PRJ with limited
  586. options support, then we can build all the tests safely -->
  587. <if cond="FORMAT!='msvc6prj' or FULL_OPTIONS_SUPPORT=='0'">1</if>
  588. </set>
  589. <if cond="BUILD_ALL_TESTS=='1'">
  590. <exe id="testAutomata" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testAutomata.c</sources></exe>
  591. <exe id="testC14N" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testC14N.c</sources></exe>
  592. <exe id="testHTML" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testHTML.c</sources></exe>
  593. <exe id="testReader" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testReader.c</sources></exe>
  594. <exe id="testRegexp" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testRegexp.c</sources></exe>
  595. <exe id="testRelax" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testRelax.c</sources></exe>
  596. <exe id="testSax" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testSax.c</sources></exe>
  597. <exe id="testSchemas" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testSchemas.c</sources></exe>
  598. <exe id="testURI" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testURI.c</sources></exe>
  599. <exe id="testXPath" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testXPath.c</sources></exe>
  600. <exe id="xmllint" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)xmllint.c</sources></exe>
  601. <if cond="FORMAT=='autoconf'">
  602. <exe id="testdso" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testdso.c</sources></exe>
  603. </if>
  604. <!-- FIXME:
  605. <exe id="testModule" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testModule.c</sources></exe>
  606. <if cond="WITH_THREADS=='posix'">
  607. <exe id="testThreads" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testThreads.c</sources></exe>
  608. </if>
  609. <if cond="WITH_THREADS=='ctls' or WITH_THREADS=='native'">
  610. <exe id="testThreadsWin32" template="xml2test"><sources>$(XMLBASEDIR)$(DIRSEP)testThreadsWin32.c</sources></exe>
  611. </if>
  612. -->
  613. </if>
  614. </makefile>