Switch Boost.System to header-only in b2

This commit is contained in:
Peter Dimov
2025-06-26 16:37:21 +03:00
parent db00e1848e
commit 7a495bb46d
3 changed files with 1 additions and 53 deletions

View File

@ -16,10 +16,9 @@ constant boost_dependencies :
project /boost/system ;
explicit
[ alias boost_system : build//boost_system ]
[ alias boost_system : : : : <include>include <library>$(boost_dependencies) ]
[ alias all : boost_system test ]
;
call-if : boost-library system
: install boost_system
;

View File

@ -1,20 +0,0 @@
# Boost System Library Build Jamfile
# Copyright 2002, 2006 Beman Dawes
# Copyright 2024 Peter Dimov
# Distributed under the Boost Software License, Version 1.0.
# https://www.boost.org/LICENSE_1_0.txt
# See library home page at https://www.boost.org/libs/system
project
: common-requirements
<include>../include
<library>$(boost_dependencies)
<link>shared:<define>BOOST_SYSTEM_DYN_LINK=1
<link>static:<define>BOOST_SYSTEM_STATIC_LINK=1
<define>BOOST_SYSTEM_NO_LIB=1
;
SOURCES = error_code ;
lib boost_system : ../src/$(SOURCES).cpp ;

View File

@ -1,31 +0,0 @@
// error_code stub implementation, for compatibility only
// Copyright Beman Dawes 2002, 2006
// Copyright Peter Dimov 2018
// 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)
// See library home page at http://www.boost.org/libs/system
//----------------------------------------------------------------------------//
// define BOOST_SYSTEM_SOURCE so that <boost/system/config.hpp> knows
// the library is being built (possibly exporting rather than importing code)
#define BOOST_SYSTEM_SOURCE
#include <boost/system/config.hpp>
namespace boost
{
namespace system
{
BOOST_SYSTEM_DECL void dummy_exported_function()
{
}
} // namespace system
} // namespace boost