Skip to content

Commit 9d026fa

Browse files
committed
README.md, README_build: Describe building with Meson
1 parent 4f14748 commit 9d026fa

File tree

2 files changed

+47
-3
lines changed

2 files changed

+47
-3
lines changed

README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ packages.
3333

3434
Building from the [libsigc++ release tarball](https://github.com/libsigcplusplus/libsigcplusplus/releases) is easier than building from git.
3535

36+
### Building from a tarball with Meson
37+
38+
For instance:
39+
```sh
40+
$ meson --prefix /usr/local --libdir lib yourbuilddir .
41+
$ cd yourbuilddir
42+
$ ninja
43+
$ ninja install
44+
```
45+
46+
### Building from a tarball with autotools
47+
3648
For instance:
3749
```sh
3850
$ ./configure --prefix=/usr/local
@@ -45,8 +57,21 @@ $ make install
4557
Building from git can be difficult so you should prefer building from a release
4658
tarball unless you need to work on the libsigc++ code itself.
4759

48-
To build from git you may use either the autotools build (used by most
49-
developers) or CMake (should work too).
60+
To build from git you may use either the meson build (added in December 2019),
61+
the autotools build (used by most developers in the past) or CMake (should work too).
62+
63+
### Building from git with Meson
64+
65+
You must have meson properly installed (meson, ninja, etc) and you
66+
will also need [mm-common](https://gitlab.gnome.org/GNOME/mm-common/)
67+
version 1.0.0 or higher.
68+
69+
```sh
70+
$ meson --prefix /usr/local --libdir lib yourbuilddir .
71+
$ cd yourbuilddir
72+
$ ninja
73+
$ ninja test
74+
```
5075

5176
### Building from git with autotools
5277

@@ -73,3 +98,6 @@ $ cmake path/to/libsigcplusplus
7398
$ make
7499
```
75100

101+
## Building with Microsoft Visual C++
102+
103+
See MSVC_NMake/README.txt.

README_build

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,25 @@
33
On Linux, you would ideally get libsigc++ from your distro's official package.
44
However, this is about building from source.
55

6+
## Meson
7+
8+
libsigc++ uses Meson as one of its main build systems,
9+
so you can build or install with the regular meson/ninja steps.
10+
For instance:
11+
meson --prefix /opt/something --libdir lib yourbuilddir .
12+
then
13+
cd yourbuilddir
14+
ninja
15+
ninja install
16+
You can run the tests like so:
17+
ninja test
18+
We create the tarball release like so:
19+
ninja dist
20+
21+
622
## autotools
723

8-
libsigc++ uses autotools as its main build system,
24+
libsigc++ uses autotools as one of its main build systems,
925
so you can build or install with the regular configure/make steps.
1026
For instance:
1127
./configure --prefix=/opt/something

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy