mirror of
https://github.com/boostorg/system.git
synced 2025-07-29 20:17:13 +02:00
Switch Boost.System to header-only in b2
This commit is contained in:
@ -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
|
||||
;
|
||||
|
@ -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 ;
|
@ -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
|
Reference in New Issue
Block a user