forked from arvidn/libsimulator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJamfile
115 lines (95 loc) · 2.07 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# This Jamfile requires boost-build v2 to build.
import path ;
import modules ;
import os ;
import testing ;
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
ECHO "BOOST_ROOT =" $(BOOST_ROOT) ;
ECHO "OS =" [ os.name ] ;
lib wsock32 : : <name>wsock32 <link>shared ;
lib ws2_32 : : <name>ws2_32 <link>shared ;
if $(BOOST_ROOT)
{
use-project /boost : $(BOOST_ROOT) ;
alias boost_chrono : /boost/chrono//boost_chrono ;
alias boost_system : /boost/system//boost_system ;
}
else
{
local boost-lib-search-path =
<search>/opt/local/lib
<search>/usr/lib
<search>/usr/local/lib
<search>/sw/lib
<search>/usr/g++/lib
;
local boost-include-path =
<include>/opt/local/include
<include>/usr/local/include
<include>/usr/sfw/include
;
lib boost_chrono : : <name>boost_chrono $(boost-lib-search-path)
: : $(boost-include-path) ;
lib boost_system : : <name>boost_system $(boost-lib-search-path)
: : $(boost-include-path) ;
}
SOURCES =
simulator
simulation
io_service
high_resolution_timer
high_resolution_clock
tcp_socket
udp_socket
queue
acceptor
default_config
http_server
socks_server
resolver
http_proxy
sink_forwarder
pcap
;
lib simulator
: # sources
src/$(SOURCES).cpp
: # requirements
<include>include
<library>boost_chrono
<library>boost_system
<target-os>windows:<library>ws2_32
<target-os>windows:<library>wsock32
<link>shared:<define>SIMULATOR_BUILDING_SHARED
<define>_CRT_SECURE_NO_WARNINGS
# disable auto-link
<define>BOOST_ALL_NO_LIB
<toolset>gcc:<cxxflags>-std=c++11
: # default build
<warnings>all
<warnings-as-errors>on
: # usage requirements
<define>BOOST_ASIO_DISABLE_BOOST_DATE_TIME
<include>include
<link>shared:<define>SIMULATOR_LINKING_SHARED
<toolset>gcc:<cxxflags>-std=c++11
;
project
: requirements
<library>simulator
# disable auto-link
<define>BOOST_ALL_NO_LIB
: default-build
<link>static
;
test-suite simulator-tests : [ run
test/main.cpp
test/resolver.cpp
test/multi_homed.cpp
test/timer.cpp
test/acceptor.cpp
test/multi_accept.cpp
test/null_buffers.cpp
test/udp_socket.cpp
test/parse_request.cpp
] ;