Skip to content

Commit

Permalink
Jamfile cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtum committed Sep 4, 2024
1 parent a9121c2 commit d398528
Show file tree
Hide file tree
Showing 30 changed files with 59 additions and 67 deletions.
30 changes: 2 additions & 28 deletions build.jam
Original file line number Diff line number Diff line change
Expand Up @@ -36,39 +36,13 @@ project /boost/beast
;

explicit
[ alias boost_beast : build//boost_beast ]
[ alias boost_beast_asio : build//boost_beast_asio ]
[ alias boost_beast_asio_ssl : build//boost_beast_asio_ssl ]
[ alias all : boost_beast boost_beast_asio boost_beast_asio_ssl example test ]
# Old-style targets. Remove once the rest of Beast changes.
[ alias lib-beast : boost_beast ]
[ alias lib-asio : boost_beast_asio ]
[ alias lib-asio-ssl : boost_beast_asio_ssl ]
[ alias boost_beast : : : : <library>$(boost_dependencies) ]
[ alias all : boost_beast example test ]
;

call-if : boost-library beast
: install boost_beast boost_beast_asio boost_beast_asio_ssl
;

feature.feature boost.beast.allow-deprecated : on off : propagated ;
feature.feature boost.beast.separate-compilation : on off : propagated ;
feature.feature boost.beast.valgrind : on off : optional propagated ;

variant beast_coverage
: debug
: <cxxflags>"-msse4.2 --coverage"
<linkflags>"--coverage"
;

variant beast_valgrind
: release
: <boost.beast.valgrind>on
;

variant beast_ubasan
: release
: <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=address,undefined -fsanitize-blacklist=libs/beast/tools/blacklist.supp"
<linkflags>"-fsanitize=address,undefined"
<define>BOOST_USE_ASAN=1
;

6 changes: 3 additions & 3 deletions build/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ explicit
[ searched-lib network ] # HAIKU
;

lib boost_beast_asio
lib lib-asio
: lib_asio.cpp
: requirements
<link>static
;

lib boost_beast_asio_ssl
lib lib-asio-ssl
: lib_asio_ssl.cpp
: requirements
<link>static
Expand All @@ -92,7 +92,7 @@ lib boost_beast_asio_ssl
[ ac.check-library /openssl//crypto : <library>/openssl//crypto/<link>shared : <build>no ]
;

lib boost_beast
lib lib-beast
: lib_beast.cpp
: requirements
<link>static
Expand Down
4 changes: 2 additions & 2 deletions example/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ project /boost/beast/example
cxx11_template_aliases
cxx11_variadic_templates
]
<library>/boost/beast//lib-asio/<link>static
<boost.beast.separate-compilation>on:<library>/boost/beast//lib-beast/<link>static
<library>/boost/beast/build//lib-asio/<link>static
<boost.beast.separate-compilation>on:<library>/boost/beast/build//lib-beast/<link>static
<include>..
;

Expand Down
2 changes: 1 addition & 1 deletion example/advanced/server-flex-awaitable/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
<library>/boost/scope//boost_scope
;

Expand Down
2 changes: 1 addition & 1 deletion example/advanced/server-flex/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe advanced-server-flex :
Expand Down
2 changes: 1 addition & 1 deletion example/http/client/async-ssl-system-executor/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe http-client-async-ssl-system-executor :
Expand Down
2 changes: 1 addition & 1 deletion example/http/client/async-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe http-client-async-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/http/client/awaitable-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe http-client-awaitable-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/http/client/coro-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe http-client-coro-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/http/client/sync-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe http-client-sync-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/http/server/async-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe http-server-async-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/http/server/coro-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe http-server-coro-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/http/server/flex/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe http-server-flex :
Expand Down
2 changes: 1 addition & 1 deletion example/http/server/stackless-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe http-server-stackless-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/http/server/sync-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe http-server-sync-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/websocket/client/async-ssl-system-executor/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe websocket-client-async-ssl-system-executor :
Expand Down
2 changes: 1 addition & 1 deletion example/websocket/client/async-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe websocket-client-async-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/websocket/client/coro-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe websocket-client-coro-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/websocket/client/sync-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe websocket-client-sync-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/websocket/server/async-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe websocket-server-async-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/websocket/server/coro-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe websocket-server-coro-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/websocket/server/stackless-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe websocket-server-stackless-ssl :
Expand Down
2 changes: 1 addition & 1 deletion example/websocket/server/sync-ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ac ;

project
: requirements
[ ac.check-library /boost/beast//lib-asio-ssl : <library>/boost/beast//lib-asio-ssl/<link>static : <build>no ]
[ ac.check-library /boost/beast/build//lib-asio-ssl : <library>/boost/beast/build//lib-asio-ssl/<link>static : <build>no ]
;

exe websocket-server-sync-ssl :
Expand Down
22 changes: 20 additions & 2 deletions test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ import testing ;
import-search /boost/config/checks ;
import config : requires ;

variant beast_coverage
: debug
: <cxxflags>"-msse4.2 --coverage"
<linkflags>"--coverage"
;

variant beast_valgrind
: release
: <boost.beast.valgrind>on
;

variant beast_ubasan
: release
: <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=address,undefined -fsanitize-blacklist=libs/beast/tools/blacklist.supp"
<linkflags>"-fsanitize=address,undefined"
<define>BOOST_USE_ASAN=1
;

project /boost/beast/test
: requirements
[ requires
Expand All @@ -23,8 +41,8 @@ project /boost/beast/test
]
<define>BOOST_BEAST_TESTS
<target-os>darwin:<define>Z_HAVE_UNISTD_H=1
<library>/boost/beast//lib-asio/<link>static
<boost.beast.separate-compilation>on:<library>/boost/beast//lib-beast/<link>static
<library>/boost/beast/build//lib-asio/<link>static
<boost.beast.separate-compilation>on:<library>/boost/beast/build//lib-beast/<link>static
<library>/boost/filesystem//boost_filesystem/<link>static
<library>/boost/context//boost_context/<link>static
<address-sanitizer>norecover:<context-impl>ucontext
Expand Down
2 changes: 1 addition & 1 deletion test/beast/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
alias run-tests :
[ compile core.cpp ]
[ compile http.cpp ]
[ compile ssl.cpp /boost/beast//lib-asio-ssl ]
[ compile ssl.cpp /boost/beast/build//lib-asio-ssl ]
[ compile version.cpp ]
[ compile websocket.cpp ]
[ compile zlib.cpp ]
Expand Down
6 changes: 3 additions & 3 deletions test/beast/_experimental/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local RUN_TESTS ;
for local f in $(SOURCES)
{
RUN_TESTS += [ run $(f)
/boost/beast//lib-asio-ssl
/boost/beast/build//lib-asio-ssl
/boost/beast/test//lib-test
] ;
}
Expand All @@ -28,14 +28,14 @@ alias run-tests : $(RUN_TESTS) ;

exe fat-tests :
$(SOURCES)
/boost/beast//lib-asio-ssl
/boost/beast/build//lib-asio-ssl
/boost/beast/test//lib-test
;

explicit fat-tests ;

run $(SOURCES)
/boost/beast//lib-asio-ssl
/boost/beast/build//lib-asio-ssl
/boost/beast/test//lib-test
: : : : run-fat-tests ;

Expand Down
6 changes: 3 additions & 3 deletions test/beast/ssl/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local RUN_TESTS ;
for local f in $(SOURCES)
{
RUN_TESTS += [ run $(f)
/boost/beast//lib-asio-ssl
/boost/beast/build//lib-asio-ssl
/boost/beast/test//lib-test
] ;
}
Expand All @@ -26,14 +26,14 @@ alias run-tests : $(RUN_TESTS) ;
exe fat-tests
:
$(SOURCES)
/boost/beast//lib-asio-ssl
/boost/beast/build//lib-asio-ssl
/boost/beast/test//lib-test
;

explicit fat-tests ;

run $(SOURCES)
/boost/beast//lib-asio-ssl
/boost/beast/build//lib-asio-ssl
/boost/beast/test//lib-test
: : : : run-fat-tests ;

Expand Down
6 changes: 3 additions & 3 deletions test/beast/websocket/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ local RUN_TESTS ;
for local f in $(SOURCES)
{
RUN_TESTS += [ run $(f)
/boost/beast//lib-asio-ssl
/boost/beast/build//lib-asio-ssl
/boost/beast/test//lib-test
] ;
}
Expand All @@ -51,14 +51,14 @@ alias run-tests : $(RUN_TESTS) ;
exe fat-tests
:
$(SOURCES)
/boost/beast//lib-asio-ssl
/boost/beast/build//lib-asio-ssl
/boost/beast/test//lib-test
;

explicit fat-tests ;

run $(SOURCES)
/boost/beast//lib-asio-ssl
/boost/beast/build//lib-asio-ssl
/boost/beast/test//lib-test
: : : : run-fat-tests ;

Expand Down
2 changes: 1 addition & 1 deletion test/doc/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ project
<include>../.. ;

local libs =
/boost/beast//lib-asio-ssl
/boost/beast/build//lib-asio-ssl
/boost/beast/test//lib-test
;

Expand Down
2 changes: 1 addition & 1 deletion test/example/common/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local SOURCES =
local RUN_TESTS ;

local libs =
/boost/beast//lib-asio-ssl
/boost/beast/build//lib-asio-ssl
/boost/beast/test//lib-test
;

Expand Down

0 comments on commit d398528

Please sign in to comment.