-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJamroot
128 lines (116 loc) · 3.82 KB
/
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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import modules ;
path-constant TOP : . ;
path-constant SRC : src ;
path-constant OBJ : obj ;
path-constant BIN : bin ;
path-constant DEPS : deps ;
path-constant MISSIO_ROOT : $(DEPS)/missio ;
path-constant ASIO_ROOT : $(DEPS)/asio/asio ;
path-constant ASIO_INCLUDE : $(ASIO_ROOT)/include ;
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
if ! $(BOOST_ROOT)
{
echo ;
echo "Required environment variable BOOST_ROOT is not set" ;
echo "Please set it to point to the root of BOOST distribution" ;
exit ;
}
use-project /boost : $(BOOST_ROOT) ;
use-project /missio : $(MISSIO_ROOT) ;
project /chat/daemon
:
requirements
<warnings>on
#<warnings-as-errors>on
<include>$(SRC)
<include>$(ASIO_INCLUDE)
<include>$(MISSIO_ROOT)
<include>$(BOOST_ROOT)
<define>ASIO_STANDALONE
<define>BOOST_ALL_NO_LIB
<define>BOOST_SYSTEM_NO_DEPRECATED
<define>BOOST_FILESYSTEM_VERSION=3
<define>BOOST_FILESYSTEM_NO_DEPRECATED
<define>BOOST_SPIRIT_USE_PHOENIX_V3
<target-os>windows:<define>WIN32
<target-os>windows:<define>_WIN32
<target-os>windows:<define>NOMINMAX
<target-os>windows:<define>UNICODE
<target-os>windows:<define>_UNICODE
<target-os>windows:<define>WIN32_LEAN_AND_MEAN
<target-os>windows:<define>_WIN32_WINNT=0x0601
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
<toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
<toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
<toolset>msvc:<define>_CRT_NONSTDC_NO_DEPRECATE
<toolset>msvc:<cxxflags>/wd4100
<toolset>msvc:<cxxflags>/wd4456
<toolset>msvc:<cxxflags>/wd4458
<toolset>msvc:<cxxflags>/wd4459
<toolset>msvc:<cxxflags>/wd4512
<toolset>msvc:<cxxflags>/wd4521
<toolset>msvc:<cxxflags>/wd4522
<toolset>msvc:<exception-handling>on
<toolset>msvc:<asynch-exceptions>on
<toolset>gcc:<cxxflags>-std=c++17
<toolset>gcc:<cxxflags>-Wempty-body
<toolset>gcc:<cxxflags>-Wsign-compare
<toolset>gcc:<cxxflags>-Wtype-limits
<toolset>gcc:<cxxflags>-Wno-unused-variable
<toolset>gcc:<cxxflags>-Wno-unused-parameter
<toolset>gcc:<cxxflags>-Wno-unused-local-typedefs
<toolset>gcc:<cxxflags>-fdiagnostics-show-option
<toolset>gcc,<target-os>linux:<cxxflags>-rdynamic
<toolset>gcc,<target-os>linux:<cxxflags>-export-dynamic
<runtime-link>static:<boost-link>static
<runtime-link>shared:<boost-link>shared
:
default-build
release debug
<threading>multi
<runtime-link>static
<link>static
:
source-location $(SRC)
:
build-dir $(OBJ)
;
# Windows libraries
lib psapi ;
lib user32 ;
lib ws2_32 ;
lib mswsock ;
lib shlwapi ;
lib dbghelp ;
exe spchatd
:
## sources ##
[ glob-tree *.cpp *.c : .svn ]
/missio/format//missio_format
/missio/unicode//missio_unicode
/missio/logging//missio_logging
/boost/system//boost_system
/boost/thread//boost_thread
/boost/date_time//boost_date_time
/boost/filesystem//boost_filesystem
/boost/program_options//boost_program_options
:
## requirements ##
<target-os>windows:<library>psapi
<target-os>windows:<library>user32
<target-os>windows:<library>ws2_32
<target-os>windows:<library>mswsock
<target-os>windows:<library>shlwapi
<target-os>windows:<library>dbghelp
;
install install-spchatd
:
## sources ##
spchatd
:
## build requirements ##
<variant>release:<location>$(BIN)/release
<variant>profile:<location>$(BIN)/profile
<variant>debug:<location>$(BIN)/debug
;