-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathJamroot
55 lines (47 loc) · 923 Bytes
/
Jamroot
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
import modules ;
import package ;
path-constant URDL_ROOT : . ;
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
if $(BOOST_ROOT)
{
use-project /boost : $(BOOST_ROOT) ;
}
rule handle-static-runtime ( properties * )
{
if <link>shared in $(properties) && <runtime-link>static in $(properties)
{
return <build>no ;
}
}
project
:
build-dir build/bin
:
requirements
<threading>multi
<conditional>@handle-static-runtime
:
default-build
debug release
<threading>multi
<link>shared <link>static
<runtime-link>shared <runtime-link>static
;
install lib
:
build
:
<location>lib
<install-type>LIB
;
local patterns = *.hpp *.ipp ;
local dirs = include/urdl include/urdl/* ;
package.install install
:
<install-source-root>include
:
:
build
:
[ glob $(dirs)/$(patterns) ]
;