-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathJamfile
executable file
·92 lines (75 loc) · 2 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
import modules ;
import os ;
ECHO "OS =" [ os.name ] ;
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
if [ os.name ] = MACOSX
{
BOOST_ROOT = ./deps/boost ;
}
else if [ os.name ] = NT
{
BOOST_ROOT = ./deps/boost ;
}
else if [ os.name ] = LINUX
{
BOOST_ROOT = ./deps/boost ;
}
else
{
if ! $(BOOST_ROOT)
{
BOOST_ROOT = ./deps/boost ;
}
}
ECHO "BOOST_ROOT =" $(BOOST_ROOT) ;
if $(BOOST_ROOT)
{
use-project /boost : $(BOOST_ROOT) ;
}
SOURCES =
configuration
stack_impl
stack
mixer_manager
;
local usage-requirements =
<include>./include
<include>./dark/include
<include>./deps
<toolset>gcc:<include>$(BOOST_ROOT)
<toolset>clang-darwin:<include>$(BOOST_ROOT)
<toolset>darwin:<include>$(BOOST_ROOT)
<toolset>msvc:<include>$(BOOST_ROOT)
<toolset>gcc:<include>./deps/openssl/include
<toolset>clang-darwin:<include>./deps/platforms/osx/openssl/include
<toolset>darwin:<include>./deps/platforms/osx/openssl/include
<toolset>msvc:<include>./deps/platforms/windows/openssl/include
<toolset>msvc,<variant>debug:<include>$(BOOST_ROOT)/build/debug/include
<toolset>msvc,<variant>release:<include>$(BOOST_ROOT)/build/release/include
<variant>release:<define>NDEBUG
<define>_FILE_OFFSET_BITS=64
<toolset>clang-darwin:<define>BOOST_NO_CXX11_NUMERIC_LIMITS
<toolset>msvc:<define>_WIN32_WINNT=0x0501
<toolset>msvc:<define>_UNICODE
<toolset>msvc:<define>UNICODE
<toolset>msvc:<cxxflags>/Zc:wchar_t
<toolset>msvc:<cxxflags>/Zc:forScope
<toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
<toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
<toolset>msvc:<define>_WIN32_WINNT=0x0501
<toolset>msvc:<define>BOOST_ALL_NO_LIB=1
<toolset>msvc,<variant>release:<linkflags>/OPT:ICF=5
<toolset>msvc,<variant>release:<linkflags>/OPT:REF
;
project dark ;
lib dark
: # sources
src/$(SOURCES).cpp
: # requirements
<threading>multi
$(usage-requirements)
: # default build
<link>static
: # usage requirements
$(usage-requirements)
;