forked from xnd-project/xnd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
76 lines (54 loc) · 1.52 KB
/
INSTALL.txt
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
The whole build is handled by cmake, which supports a multitude of build
programs. Since the Python modules are used for testing, they are built
by default if Python is found.
Here are a couple of common usage scenarios:
Unix: in-tree development
=========================
For convenience, edit the ./configure cmake-wrapper script and set the build
type and the Python root directory.
./configure .
make -j10
make ntest
make xtest
make nptest
make xptest
make gptest
# Do NOT run this outside of the xnd directory!
./distclean.sh
Release install
===============
The Python modules are not installed, they are just for testing. Single-Config
generators default to "Release" automatically. Multi-Config generators (except
for "Ninja Multi-Config") default to "Debug" and require an explicit build type.
Unix: Single-Config generator (make)
------------------------------------
mkdir build
cd build
cmake ..
make -j10
# Tests: optional
make ntest
make xtest
# Python Tests: optional
make nptest
make xptest
make gptest
make install
Portable version
----------------
This will use "make" on Unix and "msbuild" on Windows.
# Windows only:
vcvarsall x64
# All:
mkdir build
cd build
cmake ..
cmake --build . --config Release --target all
# Tests: optional
cmake --build . --config Release --target ntest
cmake --build . --config Release --target xtest
# Python Tests: optional
cmake --build . --config Release --target nptest
cmake --build . --config Release --target xptest
cmake --build . --config Release --target gptest
cmake --install .