-
Notifications
You must be signed in to change notification settings - Fork 11
/
Jamfile
52 lines (37 loc) · 996 Bytes
/
Jamfile
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
import modules ;
import feature : feature ;
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
use-project /torrent : ../libtorrent ;
if $(BOOST_ROOT)
{
use-project /boost : $(BOOST_ROOT) ;
}
feature disk-log : off on : composite propagated ;
feature.compose <disk-log>on : <define>DISK_ACCESS_LOG ;
lib dl : : <link>shared <name>dl ;
SOURCES =
block_device
block_allocator
block_affinity
pool_allocator
;
lib torrentfs
: # sources
src/$(SOURCES).cpp
: # requirements
<target-os>linux:<library>dl
<threading>multi
<library>/torrent//torrent/<boost-link>static/<link>static
<include>$(BOOST_ROOT)
<link>shared:<define>TORRENT_BUILDING_SHARED
: # default build
<link>static
: # usage requirements
<include>src
<library>/torrent//torrent/<boost-link>static/<link>static
<include>$(BOOST_ROOT)
<link>shared:<define>TORRENT_LINKING_SHARED
;
exe btfs : src/btfs.cpp : <library>torrentfs/<link>static : <link>static ;
explicit stage ;
install stage : btfs : <location>. ;