@@ -63,9 +63,9 @@ explicit WinDbg ;
63
63
mp-run-simple has_windbg_cached.cpp : : : <library>Dbgeng <library>ole32 : WinDbgCached ;
64
64
explicit WinDbgCached ;
65
65
66
- rule build-stacktrace-feature ( name : props * )
66
+ rule build-stacktrace-noop ( props * )
67
67
{
68
- local enabled = [ property.select <boost.stacktrace.$(name) > : $(props) ] ;
68
+ local enabled = [ property.select <boost.stacktrace.noop > : $(props) ] ;
69
69
switch $(enabled:G=)
70
70
{
71
71
case "on" : return ;
@@ -80,13 +80,23 @@ lib boost_stacktrace_noop
80
80
<warnings>all
81
81
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
82
82
# Enable build when explicitly requested
83
- <conditional>@$( build-stacktrace-feature noop)
83
+ <conditional>@build-stacktrace-noop
84
84
: # default build
85
85
: # usage-requirements
86
86
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
87
87
<define>BOOST_STACKTRACE_NO_LIB=1
88
88
;
89
89
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
+
90
100
lib boost_stacktrace_backtrace
91
101
: # sources
92
102
../src/backtrace.cpp
@@ -96,7 +106,7 @@ lib boost_stacktrace_backtrace
96
106
<library>backtrace
97
107
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
98
108
[ check-target-builds libbacktrace : : <build>no ]
99
- <conditional>@$( build-stacktrace-feature backtrace)
109
+ <conditional>@build-stacktrace-backtrace
100
110
: # default build
101
111
: # usage-requirements
102
112
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
@@ -134,6 +144,16 @@ lib boost_stacktrace_addr2line
134
144
<define>BOOST_STACKTRACE_NO_LIB=1
135
145
;
136
146
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
+
137
157
lib boost_stacktrace_basic
138
158
: # sources
139
159
../src/basic.cpp
@@ -142,13 +162,23 @@ lib boost_stacktrace_basic
142
162
<target-os>linux:<library>dl
143
163
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
144
164
[ check-target-builds WinDbg : <build>no ]
145
- <conditional>@$( build-stacktrace-feature basic)
165
+ <conditional>@build-stacktrace-basic
146
166
: # default build
147
167
: # usage-requirements
148
168
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
149
169
<define>BOOST_STACKTRACE_NO_LIB=1
150
170
;
151
171
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
+
152
182
lib boost_stacktrace_windbg
153
183
: # sources
154
184
../src/windbg.cpp
@@ -157,13 +187,23 @@ lib boost_stacktrace_windbg
157
187
<library>Dbgeng <library>ole32
158
188
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
159
189
[ check-target-builds WinDbg : : <build>no ]
160
- <conditional>@$( build-stacktrace-feature windbg)
190
+ <conditional>@build-stacktrace-windbg
161
191
: # default build
162
192
: # usage-requirements
163
193
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
164
194
<define>BOOST_STACKTRACE_NO_LIB=1
165
195
;
166
196
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
+
167
207
lib boost_stacktrace_windbg_cached
168
208
: # sources
169
209
../src/windbg_cached.cpp
@@ -172,7 +212,7 @@ lib boost_stacktrace_windbg_cached
172
212
<library>Dbgeng <library>ole32
173
213
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
174
214
[ check-target-builds WinDbgCached : : <build>no ]
175
- <conditional>@$( build-stacktrace-feature windbg-cached)
215
+ <conditional>@build-stacktrace-windbg-cached
176
216
: # default build
177
217
: # usage-requirements
178
218
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
0 commit comments