Skip to content

Commit 331a98b

Browse files
committed
test_helpers is a separate object file
1 parent 6699585 commit 331a98b

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

test/unit/Jamfile

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,31 @@ import ac ;
1212

1313
using zlib ;
1414

15+
lib test_helpers_lib
16+
: test_helpers.cpp
17+
../../../url/extra/test_suite/test_main.cpp
18+
../../../url/extra/test_suite/test_suite.cpp
19+
: requirements
20+
<library>/boost/http//boost_http
21+
<library>/boost/url//boost_url
22+
<include>.
23+
<include>../..
24+
<include>../../../url/extra/test_suite
25+
<link>static
26+
: usage-requirements
27+
<include>.
28+
<include>../..
29+
<include>../../../url/extra/test_suite
30+
;
31+
1532
project
1633
: requirements
1734
$(c11-requires)
1835
<library>/boost/http//boost_http
1936
<library>/boost/url//boost_url
2037
[ ac.check-library /boost/http//boost_http_zlib : <library>/boost/http//boost_http_zlib : ]
2138
[ ac.check-library /boost/http//boost_http_brotli : <library>/boost/http//boost_http_brotli : ]
22-
<source>../../../url/extra/test_suite/test_main.cpp
23-
<source>../../../url/extra/test_suite/test_suite.cpp
24-
<source>./test_helpers.cpp
39+
<library>test_helpers_lib
2540
<include>.
2641
<include>../..
2742
<include>../../../url/extra/test_suite
@@ -30,7 +45,7 @@ project
3045
<target-os>darwin,<undefined-sanitizer>norecover:<link>static
3146
;
3247

33-
for local f in [ glob-tree-ex . : *.cpp : file*.cpp ]
48+
for local f in [ glob-tree-ex . : *.cpp : file*.cpp test_helpers.cpp ]
3449
{
3550
run $(f) ;
3651
}

0 commit comments

Comments
 (0)