diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..bbf8bcb --- /dev/null +++ b/build.jam @@ -0,0 +1,18 @@ +# Copyright Andrey Semashev 2025 +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +require-b2 5.2 ; + +project /boost/sync ; + +explicit + [ alias boost_sync : build//boost_sync ] + [ alias boost_sync_with_support : build//boost_sync_with_support ] + [ alias all : boost_sync boost_sync_with_support test ] + ; + +call-if : boost-library sync + : install boost_sync + ; diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index c07fe24..ac3eb9d 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -1,7 +1,7 @@ # Copyright 2006-2007 Roland Schwarz. # Copyright 2007 Anthony Williams # Copyright 2011-2012 Vicente J.Botet Escriba. -# Copyright 2013 Andrey Semashev +# Copyright 2013-2025 Andrey Semashev # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) @@ -30,7 +30,33 @@ import indirect ; import path ; import configure ; -project boost/sync +constant boost_sync_public_deps : + /boost/assert//boost_assert + /boost/atomic//boost_atomic + /boost/config//boost_config + /boost/core//boost_core + /boost/move//boost_move + /boost/mpl//boost_mpl + /boost/preprocessor//boost_preprocessor + /boost/static_assert//boost_static_assert + /boost/system//boost_system + /boost/throw_exception//boost_throw_exception + windows:/boost/winapi//boost_winapi + ; + +constant boost_sync_private_deps : + /boost/intrusive//boost_intrusive + ; + +constant boost_sync_support_public_deps : + /boost/sync//boost_sync + /boost/chrono//boost_chrono + /boost/date_time//boost_date_time + /boost/ratio//boost_ratio + /boost/static_assert//boost_static_assert + ; + +project : source-location ../src : requirements multi @@ -171,10 +197,17 @@ lib boost_sync sync_platform_sources : @requirements + $(boost_sync_private_deps) + $(boost_sync_public_deps) : : @usage-requirements + $(boost_sync_public_deps) ; - -boost-install boost_sync ; +alias boost_sync_with_support + : requirements + $(boost_sync_support_public_deps) + : usage-requirements + $(boost_sync_support_public_deps) + ; diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index a7b0e2b..e044d42 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -11,7 +11,7 @@ project : requirements multi true - /boost/sync//boost_sync + /boost/sync//boost_sync_with_support /boost/thread//boost_thread /boost/date_time//boost_date_time ;