-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildfile
58 lines (54 loc) · 1.45 KB
/
buildfile
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
# Eigen Library
# The relative include paths of the unsupported modules
# need to be kept valid and they should not pollute
# the system's include folder with an 'unsupported' directory.
# So, the Eigen library and the unsupported Eigen modules will
# both be put in another directory 'Eigen'
# in the system's include folder when installed.
#
./: lib{Eigen}: Eigen/hxx{**. **.h}
{
export.metadata = 1 Eigen
Eigen.unsupported = [bool] $config.Eigen.unsupported
cxx.export.poptions =+ "-I$src_root"
cxx.pkgconfig.include = include/Eigen/
}
#
cxx.poptions =+ "-I$src_root"
#
Eigen/hxx{*}:
{
install = include/Eigen/Eigen/
install.subdirs = true
}
# Add unsupported modules when enabled.
#
lib{Eigen}: unsupported/Eigen/hxx{**. **.h}: include = $config.Eigen.unsupported
#
if $config.Eigen.unsupported
{
cxx.poptions =+ "-I$src_root/unsupported"
lib{Eigen}:
{
cxx.export.poptions =+ "-I$src_root/unsupported"
cxx.pkgconfig.include =+ include/Eigen/unsupported/
}
}
#
unsupported/hxx{*}:
{
install = include/Eigen/unsupported/
install.subdirs = true
}
# Run some custom tests.
#
./: tests/ manifest legal{COPYING*}
tests/: install = false
# Install UPSTREAM.README.md as README.md
# and README.md as PACKAGE.README.md
# to make the package README.md the default
# for the build2 package repository web view.
#
./: doc{UPSTREAM.README.md README.md}
doc{UPSTREAM.README.md}@./: install = doc/README.md
doc{README.md}@./: install = doc/PACKAGE.README.md