|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| amiga/ | | 03-May-2024 | - | 3,589 | 2,742 |
| bcb5/ | | 03-May-2024 | - | 2,830 | 2,430 |
| conftools/ | | 03-May-2024 | - | 13,774 | 10,790 |
| doc/ | | 03-May-2024 | - | 3,214 | 2,856 |
| examples/ | | 03-May-2024 | - | 381 | 296 |
| lib/ | | 03-May-2024 | - | 14,575 | 12,274 |
| m4/ | | 03-May-2024 | - | 8,469 | 7,629 |
| tests/ | | 03-May-2024 | - | 2,392 | 1,860 |
| vms/ | | 03-May-2024 | - | 148 | 92 |
| win32/ | | 03-May-2024 | - | 179 | 143 |
| xmlwf/ | | 03-May-2024 | - | 2,405 | 2,142 |
| Android.mk | D | 03-May-2024 | 2.3 KiB | 103 | 65 |
| CMake.README | D | 03-May-2024 | 1.7 KiB | 43 | 36 |
| CMakeLists.txt | D | 03-May-2024 | 3.2 KiB | 112 | 88 |
| Changes | D | 03-May-2024 | 11.1 KiB | 206 | 194 |
| CleanSpec.mk | D | 03-May-2024 | 2.2 KiB | 50 | 0 |
| ConfigureChecks.cmake | D | 03-May-2024 | 1.5 KiB | 45 | 38 |
| MANIFEST | D | 03-May-2024 | 2.5 KiB | 142 | 141 |
| MODULE_LICENSE_BSD_LIKE | D | 03-May-2024 | 0 | | |
| Makefile | D | 03-May-2024 | 6.6 KiB | 202 | 135 |
| Makefile.in | D | 03-May-2024 | 6.9 KiB | 202 | 136 |
| NOTICE | D | 03-May-2024 | 1.2 KiB | 23 | 19 |
| README | D | 03-May-2024 | 5.7 KiB | 140 | 102 |
| aclocal.m4 | D | 03-May-2024 | 297.4 KiB | 8,461 | 7,617 |
| configure | D | 03-May-2024 | 552.3 KiB | 18,633 | 14,567 |
| configure.in | D | 03-May-2024 | 4.5 KiB | 156 | 130 |
| expat.dsw | D | 03-May-2024 | 1.9 KiB | 111 | 76 |
| expat.pc | D | 03-May-2024 | 232 | 12 | 10 |
| expat.pc.in | D | 03-May-2024 | 231 | 12 | 10 |
| expat_config.h | D | 03-May-2024 | 2.9 KiB | 104 | 28 |
| expat_config.h.cmake | D | 03-May-2024 | 2.7 KiB | 92 | 62 |
| expat_config.h.in | D | 03-May-2024 | 2.7 KiB | 103 | 69 |
| libtool | D | 03-May-2024 | 291.9 KiB | 10,236 | 7,478 |
CMake.README
1== How to build expat with cmake (experimental) ==
2
3The cmake based buildsystem for expat works on Windows (cygwin, mingw, Visual
4Studio) and should work on all other platform cmake supports.
5
6Assuming ~/expat-2.1.0 is the source directory of expat, add a subdirectory
7build and change into that directory:
8~/expat-2.1.0$ mkdir build && cd build
9~/expat-2.1.0/build$
10
11From that directory, call cmake first, then call make, make test and
12make install in the usual way:
13~/expat-2.1.0/build$ cmake ..
14-- The C compiler identification is GNU
15-- The CXX compiler identification is GNU
16....
17-- Configuring done
18-- Generating done
19-- Build files have been written to: /home/patrick/expat-2.1.0/build
20
21If you want to specify the install location for your files, append
22-DCMAKE_INSTALL_PREFIX=/your/install/path to the cmake call.
23
24~/expat-2.1.0/build$ make && make test && make install
25Scanning dependencies of target expat
26[ 5%] Building C object CMakeFiles/expat.dir/lib/xmlparse.c.o
27[ 11%] Building C object CMakeFiles/expat.dir/lib/xmlrole.c.o
28....
29-- Installing: /usr/local/lib/pkgconfig/expat.pc
30-- Installing: /usr/local/bin/xmlwf
31-- Installing: /usr/local/share/man/man1/xmlwf.1
32
33For Windows builds, you must make sure to call cmake from an environment where
34your compiler is reachable, that means either you call it from the
35Visual Studio Command Prompt or when using mingw, you must open a cmd.exe and
36make sure that gcc can be called. On Windows, you also might want to specify a
37special Generator for CMake:
38for Visual Studio builds do:
39cmake .. -G "Visual Studio 10" && vcexpress expat.sln
40for mingw builds do:
41cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=D:\expat-install
42 && gmake && gmake install
43
README
1
2 Expat, Release 2.1.0
3
4This is Expat, a C library for parsing XML, written by James Clark.
5Expat is a stream-oriented XML parser. This means that you register
6handlers with the parser before starting the parse. These handlers
7are called when the parser discovers the associated structures in the
8document being parsed. A start tag is an example of the kind of
9structures for which you may register handlers.
10
11Windows users should use the expat_win32bin package, which includes
12both precompiled libraries and executables, and source code for
13developers.
14
15Expat is free software. You may copy, distribute, and modify it under
16the terms of the License contained in the file COPYING distributed
17with this package. This license is the same as the MIT/X Consortium
18license.
19
20Versions of Expat that have an odd minor version (the middle number in
21the release above), are development releases and should be considered
22as beta software. Releases with even minor version numbers are
23intended to be production grade software.
24
25If you are building Expat from a check-out from the CVS repository,
26you need to run a script that generates the configure script using the
27GNU autoconf and libtool tools. To do this, you need to have
28autoconf 2.58 or newer. Run the script like this:
29
30 ./buildconf.sh
31
32Once this has been done, follow the same instructions as for building
33from a source distribution.
34
35To build Expat from a source distribution, you first run the
36configuration shell script in the top level distribution directory:
37
38 ./configure
39
40There are many options which you may provide to configure (which you
41can discover by running configure with the --help option). But the
42one of most interest is the one that sets the installation directory.
43By default, the configure script will set things up to install
44libexpat into /usr/local/lib, expat.h into /usr/local/include, and
45xmlwf into /usr/local/bin. If, for example, you'd prefer to install
46into /home/me/mystuff/lib, /home/me/mystuff/include, and
47/home/me/mystuff/bin, you can tell configure about that with:
48
49 ./configure --prefix=/home/me/mystuff
50
51Another interesting option is to enable 64-bit integer support for
52line and column numbers and the over-all byte index:
53
54 ./configure CPPFLAGS=-DXML_LARGE_SIZE
55
56However, such a modification would be a breaking change to the ABI
57and is therefore not recommended for general use - e.g. as part of
58a Linux distribution - but rather for builds with special requirements.
59
60After running the configure script, the "make" command will build
61things and "make install" will install things into their proper
62location. Have a look at the "Makefile" to learn about additional
63"make" options. Note that you need to have write permission into
64the directories into which things will be installed.
65
66If you are interested in building Expat to provide document
67information in UTF-16 encoding rather than the default UTF-8, follow
68these instructions (after having run "make distclean"):
69
70 1. For UTF-16 output as unsigned short (and version/error
71 strings as char), run:
72
73 ./configure CPPFLAGS=-DXML_UNICODE
74
75 For UTF-16 output as wchar_t (incl. version/error strings),
76 run:
77
78 ./configure CFLAGS="-g -O2 -fshort-wchar" \
79 CPPFLAGS=-DXML_UNICODE_WCHAR_T
80
81 2. Edit the MakeFile, changing:
82
83 LIBRARY = libexpat.la
84
85 to:
86
87 LIBRARY = libexpatw.la
88
89 (Note the additional "w" in the library name.)
90
91 3. Run "make buildlib" (which builds the library only).
92 Or, to save step 2, run "make buildlib LIBRARY=libexpatw.la".
93
94 4. Run "make installlib" (which installs the library only).
95 Or, if step 2 was omitted, run "make installlib LIBRARY=libexpatw.la".
96
97Using DESTDIR or INSTALL_ROOT is enabled, with INSTALL_ROOT being the default
98value for DESTDIR, and the rest of the make file using only DESTDIR.
99It works as follows:
100 $ make install DESTDIR=/path/to/image
101overrides the in-makefile set DESTDIR, while both
102 $ INSTALL_ROOT=/path/to/image make install
103 $ make install INSTALL_ROOT=/path/to/image
104use DESTDIR=$(INSTALL_ROOT), even if DESTDIR eventually is defined in the
105environment, because variable-setting priority is
1061) commandline
1072) in-makefile
1083) environment
109
110Note: This only applies to the Expat library itself, building UTF-16 versions
111of xmlwf and the tests is currently not supported.
112
113Note for Solaris users: The "ar" command is usually located in
114"/usr/ccs/bin", which is not in the default PATH. You will need to
115add this to your path for the "make" command, and probably also switch
116to GNU make (the "make" found in /usr/ccs/bin does not seem to work
117properly -- appearantly it does not understand .PHONY directives). If
118you're using ksh or bash, use this command to build:
119
120 PATH=/usr/ccs/bin:$PATH make
121
122When using Expat with a project using autoconf for configuration, you
123can use the probing macro in conftools/expat.m4 to determine how to
124include Expat. See the comments at the top of that file for more
125information.
126
127A reference manual is available in the file doc/reference.html in this
128distribution.
129
130The homepage for this project is http://www.libexpat.org/. There
131are links there to connect you to the bug reports page. If you need
132to report a bug when you don't have access to a browser, you may also
133send a bug report by email to expat-bugs@mail.libexpat.org.
134
135Discussion related to the direction of future expat development takes
136place on expat-discuss@mail.libexpat.org. Archives of this list and
137other Expat-related lists may be found at:
138
139 http://mail.libexpat.org/mailman/listinfo/
140