-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathJamfile
77 lines (65 loc) · 1.4 KB
/
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
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
import feature : feature ;
install stage-test : udp_test : <location>. ;
install stage : utrack : <location>. ;
feature pcap : off on win receive-only : composite propagated link-incompatible ;
feature.compose <pcap>win : <define>USE_WINPCAP ;
feature.compose <pcap>receive-only : <define>USE_SYSTEM_SEND_SOCKET ;
explicit stage-test ;
explicit stage ;
lib libpcap : : <name>pcap : <search>/opt/local/lib
: <include>/opt/local/include <define>USE_PCAP ;
lib libwpcap : : <name>wpcap : <search>"c:\\Program Files\\wpdpack\\lib"
:
<include>"c:\\Program Files\\wpdpack\\include"
<define>WPCAP <define>USE_PCAP ;
rule pcap ( properties * )
{
local result ;
if <pcap>off in $(properties)
{
result += <source>socket_system.cpp ;
}
else
{
if <target-os>windows in $(properties)
{
result += <library>libwpcap ;
}
else
{
result += <library>libpcap ;
}
result += <source>socket_pcap.cpp ;
}
return $(result) ;
}
lib ws2 : : <name>ws2_32 ;
lib iphlp : : <name>iphlpapi ;
exe udp_test
:
test_announce.cpp
utils.cpp
stack.cpp
:
<conditional>@pcap
<target-os>windows:<library>ws2
<target-os>windows:<library>iphlp
<threading>multi
;
explicit udp_test ;
exe utrack
:
main.cpp
swarm.cpp
announce_thread.cpp
siphash24.c
key_rotate.cpp
receive_thread.cpp
utils.cpp
stack.cpp
:
<target-os>windows:<library>ws2
<target-os>windows:<library>iphlp
<conditional>@pcap
<threading>multi
;