Skip to content

Commit 93f1d31

Browse files
committed
Convert README to README.md
1 parent 97b462f commit 93f1d31

File tree

1 file changed

+43
-17
lines changed

1 file changed

+43
-17
lines changed

README renamed to README.md

Lines changed: 43 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
libxml++
2-
--------
3-
1+
# libxml++
42
libxml++ (a.k.a. libxmlplusplus) provides a C++ interface to XML files. It uses
53
libxml2 to access the XML files, and in order to configure libxml++ you must
64
have both libxml2 and pkg-config installed.
75

8-
To get the latest version of libxml++, see
9-
https://libxmlplusplus.github.io/libxmlplusplus/
10-
To contact the developers, send e-mail to the mailing list at
11-
http://mail.gnome.org/mailman/listinfo/libxmlplusplus-list
12-
We welcome patches, but it helps to discuss them first.
6+
To get the latest version of libxml++, see the
7+
[libxml++ web site](https://libxmlplusplus.github.io/libxmlplusplus/)
8+
9+
To contact the developers, send e-mail to the
10+
[libxml++ mailing list](https://mail.gnome.org/mailman/listinfo/libxmlplusplus-list)
1311

1412
See the examples directory for example code.
1513

1614
Use pkg-config to discover the necessary include and linker arguments. For instance,
15+
```
1716
pkg-config libxml++-4.0 --cflags --libs
17+
```
1818
If you build with Autotools, ideally you would use PKG_CHECK_MODULES in your
1919
configure.ac file.
2020

21-
2221
# Building
2322

2423
Whenever possible, you should use the official binary packages approved by the
@@ -31,8 +30,10 @@ See MSVC_NMake/README
3130
## Building from a release tarball
3231

3332
Extract the tarball and go to the extracted directory:
33+
```
3434
$ tar xf libxml++-@LIBXMLXX_VERSION@.tar.xz
3535
$ cd libxml++-@LIBXMLXX_VERSION@
36+
```
3637

3738
It's easiest to build with Meson, if the tarball was made with Meson,
3839
and to build with Autotools, if the tarball was made with Autotools.
@@ -46,65 +47,90 @@ of untracked/.
4647

4748
Don't call the builddir 'build'. There is a directory called 'build' with
4849
files used by Autotools.
49-
50+
```
5051
$ meson --prefix /some_directory --libdir lib your_builddir .
5152
$ cd your_builddir
52-
53+
```
5354
If the tarball was made with Autotools, you must enable maintainer-mode:
55+
```
5456
$ meson configure -Dmaintainer-mode=true
55-
57+
```
5658
Then, regardless of how the tarball was made:
59+
```
5760
$ ninja
5861
$ ninja install
62+
```
5963
You can run the tests like so:
64+
```
6065
$ ninja test
66+
```
6167

6268
### Building from a tarball with Autotools
6369

6470
If the tarball was made with Autotools:
71+
```
6572
$ ./configure --prefix=/some_directory
73+
```
6674
If the tarball was made with Meson, you must enable maintainer-mode:
75+
```
6776
$ ./autogen.sh --prefix=/some_directory
68-
77+
```
6978
Then, regardless of how the tarball was made:
79+
```
7080
$ make
7181
$ make install
82+
```
7283
You can build the examples and tests, and run the tests, like so:
84+
```
7385
$ make check
86+
```
7487

7588
## Building from git
7689

7790
Building from git can be difficult so you should prefer building from
7891
a release tarball unless you need to work on the libxml++ code itself.
7992

8093
jhbuild can be a good help
81-
https://gitlab.gnome.org/GNOME/jhbuild
82-
https://wiki.gnome.org/Projects/Jhbuild
94+
- https://gitlab.gnome.org/GNOME/jhbuild
95+
- https://wiki.gnome.org/Projects/Jhbuild
96+
- https://gnome.pages.gitlab.gnome.org/jhbuild
8397

8498
### Building from git with Meson
8599

86100
Maintainer-mode is enabled by default when you build from a git clone.
87101

88102
Don't call the builddir 'build'. There is a directory called 'build' with
89103
files used by Autotools.
90-
104+
```
91105
$ meson --prefix /some_directory --libdir lib your_builddir .
92106
$ cd your_builddir
93107
$ ninja
94108
$ ninja install
109+
```
95110
You can run the tests like so:
111+
```
96112
$ ninja test
113+
```
97114
You can create a tarball like so:
115+
```
98116
$ ninja dist
117+
```
99118

100119
### Building from git with Autotools
101-
120+
```
102121
$ ./autogen.sh --prefix=/some_directory
103122
$ make
104123
$ make install
124+
```
105125
You can build the examples and tests, and run the tests, like so:
126+
```
106127
$ make check
128+
```
107129
You can create a tarball like so:
130+
```
108131
$ make distcheck
132+
```
109133
or
134+
```
110135
$ make dist
136+
```

0 commit comments

Comments
 (0)