Skip to content

Commit e7ab86c

Browse files
authored
Update Jamfile.v2
1 parent 54934a3 commit e7ab86c

File tree

1 file changed

+47
-7
lines changed

1 file changed

+47
-7
lines changed

build/Jamfile.v2

+47-7
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ explicit WinDbg ;
6363
mp-run-simple has_windbg_cached.cpp : : : <library>Dbgeng <library>ole32 : WinDbgCached ;
6464
explicit WinDbgCached ;
6565

66-
rule build-stacktrace-feature ( name : props * )
66+
rule build-stacktrace-noop ( props * )
6767
{
68-
local enabled = [ property.select <boost.stacktrace.$(name)> : $(props) ] ;
68+
local enabled = [ property.select <boost.stacktrace.noop> : $(props) ] ;
6969
switch $(enabled:G=)
7070
{
7171
case "on" : return ;
@@ -80,13 +80,23 @@ lib boost_stacktrace_noop
8080
<warnings>all
8181
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
8282
# Enable build when explicitly requested
83-
<conditional>@$(build-stacktrace-feature noop)
83+
<conditional>@build-stacktrace-noop
8484
: # default build
8585
: # usage-requirements
8686
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
8787
<define>BOOST_STACKTRACE_NO_LIB=1
8888
;
8989

90+
rule build-stacktrace-backtrace ( props * )
91+
{
92+
local enabled = [ property.select <boost.stacktrace.backtrace> : $(props) ] ;
93+
switch $(enabled:G=)
94+
{
95+
case "on" : return ;
96+
case "off" : return <build>no ;
97+
}
98+
}
99+
90100
lib boost_stacktrace_backtrace
91101
: # sources
92102
../src/backtrace.cpp
@@ -96,7 +106,7 @@ lib boost_stacktrace_backtrace
96106
<library>backtrace
97107
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
98108
[ check-target-builds libbacktrace : : <build>no ]
99-
<conditional>@$(build-stacktrace-feature backtrace)
109+
<conditional>@build-stacktrace-backtrace
100110
: # default build
101111
: # usage-requirements
102112
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
@@ -134,6 +144,16 @@ lib boost_stacktrace_addr2line
134144
<define>BOOST_STACKTRACE_NO_LIB=1
135145
;
136146

147+
rule build-stacktrace-basic ( props * )
148+
{
149+
local enabled = [ property.select <boost.stacktrace.basic> : $(props) ] ;
150+
switch $(enabled:G=)
151+
{
152+
case "on" : return ;
153+
case "off" : return <build>no ;
154+
}
155+
}
156+
137157
lib boost_stacktrace_basic
138158
: # sources
139159
../src/basic.cpp
@@ -142,13 +162,23 @@ lib boost_stacktrace_basic
142162
<target-os>linux:<library>dl
143163
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
144164
[ check-target-builds WinDbg : <build>no ]
145-
<conditional>@$(build-stacktrace-feature basic)
165+
<conditional>@build-stacktrace-basic
146166
: # default build
147167
: # usage-requirements
148168
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
149169
<define>BOOST_STACKTRACE_NO_LIB=1
150170
;
151171

172+
rule build-stacktrace-windbg ( props * )
173+
{
174+
local enabled = [ property.select <boost.stacktrace.windbg> : $(props) ] ;
175+
switch $(enabled:G=)
176+
{
177+
case "on" : return ;
178+
case "off" : return <build>no ;
179+
}
180+
}
181+
152182
lib boost_stacktrace_windbg
153183
: # sources
154184
../src/windbg.cpp
@@ -157,13 +187,23 @@ lib boost_stacktrace_windbg
157187
<library>Dbgeng <library>ole32
158188
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
159189
[ check-target-builds WinDbg : : <build>no ]
160-
<conditional>@$(build-stacktrace-feature windbg)
190+
<conditional>@build-stacktrace-windbg
161191
: # default build
162192
: # usage-requirements
163193
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
164194
<define>BOOST_STACKTRACE_NO_LIB=1
165195
;
166196

197+
rule build-stacktrace-windbg-cached ( props * )
198+
{
199+
local enabled = [ property.select <boost.stacktrace.windbg-cached> : $(props) ] ;
200+
switch $(enabled:G=)
201+
{
202+
case "on" : return ;
203+
case "off" : return <build>no ;
204+
}
205+
}
206+
167207
lib boost_stacktrace_windbg_cached
168208
: # sources
169209
../src/windbg_cached.cpp
@@ -172,7 +212,7 @@ lib boost_stacktrace_windbg_cached
172212
<library>Dbgeng <library>ole32
173213
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
174214
[ check-target-builds WinDbgCached : : <build>no ]
175-
<conditional>@$(build-stacktrace-feature windbg-cached)
215+
<conditional>@build-stacktrace-windbg-cached
176216
: # default build
177217
: # usage-requirements
178218
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1

0 commit comments

Comments
 (0)