summaryrefslogtreecommitdiff
path: root/README_build
blob: 38f3681e0aff316586bb68ec48532c2fed5c404c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Building libsigc++

On Linux, you would ideally get libsigc++ from your distro's official package.
However, this is about building from source.

## Meson

libsigc++ uses Meson as one of its main build systems,
so you can build or install with the regular meson/ninja steps.
For instance:
  meson --prefix /opt/something --libdir lib yourbuilddir .
then
  cd yourbuilddir
  ninja
  ninja install
You can run the tests like so:
  ninja test
We create the tarball release like so:
  ninja dist


## autotools

libsigc++ uses autotools as one of its main build systems,
so you can build or install with the regular configure/make steps.
For instance:
  ./configure --prefix=/opt/something
then
  make
or
  make install
You can build the examples and tests, and run the tests, like so:
  make check
We create the tarball release like so:
  make distcheck


## CMake

You may also build libsigc++ with CMake, though it's fairly experimental for now.
For instance,
  cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/something .
then
  make
or
  make install
You can run the tests like so:
  make test


## Microsoft Visual C++

See MSVC_NMake/README.txt.