stabilize build system: depends, installer, boost/bdb fixes, cross targets groundwork

This commit is contained in:
2026-02-24 18:38:47 +00:00
parent da8c28aaeb
commit 65cb2619a7
13106 changed files with 2484322 additions and 1804 deletions
@@ -0,0 +1,33 @@
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2014 Erik Erlandson
//
// 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)
#ifndef BOOST_UNITS_SYSTEMS_INFORMATION_BIT_HPP_INCLUDED
#define BOOST_UNITS_SYSTEMS_INFORMATION_BIT_HPP_INCLUDED
#include <boost/units/systems/information/byte.hpp>
#include <boost/units/base_units/information/bit.hpp>
namespace boost {
namespace units {
namespace information {
namespace hu {
namespace bit {
typedef unit<information_dimension, make_system<bit_base_unit>::type> info;
} // namespace bit
} // namespace hu
BOOST_UNITS_STATIC_CONSTANT(bit, hu::bit::info);
BOOST_UNITS_STATIC_CONSTANT(bits, hu::bit::info);
} // namespace information
} // namespace units
} // namespace boost
#endif // BOOST_UNITS_SYSTEMS_INFORMATION_BIT_HPP_INCLUDED
@@ -0,0 +1,45 @@
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2014 Erik Erlandson
//
// 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)
#ifndef BOOST_UNITS_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED
#define BOOST_UNITS_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED
#include <boost/units/make_system.hpp>
#include <boost/units/unit.hpp>
#include <boost/units/static_constant.hpp>
#include <boost/units/base_units/information/byte.hpp>
namespace boost {
namespace units {
namespace information {
typedef make_system<byte_base_unit>::type system;
typedef unit<dimensionless_type, system> dimensionless;
namespace hu {
namespace byte {
typedef unit<information_dimension, system> info;
} // namespace bit
} // namespace hu
BOOST_UNITS_STATIC_CONSTANT(byte, hu::byte::info);
BOOST_UNITS_STATIC_CONSTANT(bytes, hu::byte::info);
// I'm going to define boost::units::information::info (the "default")
// to be hu::byte::info -- other variants such as hu::bit::info, hu::nat::info, etc
// must be explicitly referred to
typedef hu::byte::info info;
} // namespace information
} // namespace units
} // namespace boost
#endif // BOOST_UNITS_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED
@@ -0,0 +1,33 @@
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2014 Erik Erlandson
//
// 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)
#ifndef BOOST_UNITS_SYSTEMS_INFORMATION_HARTLEY_HPP_INCLUDED
#define BOOST_UNITS_SYSTEMS_INFORMATION_HARTLEY_HPP_INCLUDED
#include <boost/units/systems/information/byte.hpp>
#include <boost/units/base_units/information/hartley.hpp>
namespace boost {
namespace units {
namespace information {
namespace hu {
namespace hartley {
typedef unit<information_dimension, make_system<hartley_base_unit>::type> info;
} // namespace bit
} // namespace hu
BOOST_UNITS_STATIC_CONSTANT(hartley, hu::hartley::info);
BOOST_UNITS_STATIC_CONSTANT(hartleys, hu::hartley::info);
} // namespace information
} // namespace units
} // namespace boost
#endif // BOOST_UNITS_SYSTEMS_INFORMATION_HARTLEY_HPP_INCLUDED
@@ -0,0 +1,33 @@
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2014 Erik Erlandson
//
// 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)
#ifndef BOOST_UNITS_SYSTEMS_INFORMATION_NAT_HPP_INCLUDED
#define BOOST_UNITS_SYSTEMS_INFORMATION_NAT_HPP_INCLUDED
#include <boost/units/systems/information/byte.hpp>
#include <boost/units/base_units/information/nat.hpp>
namespace boost {
namespace units {
namespace information {
namespace hu {
namespace nat {
typedef unit<information_dimension, make_system<nat_base_unit>::type> info;
} // namespace bit
} // namespace hu
BOOST_UNITS_STATIC_CONSTANT(nat, hu::nat::info);
BOOST_UNITS_STATIC_CONSTANT(nats, hu::nat::info);
} // namespace information
} // namespace units
} // namespace boost
#endif // BOOST_UNITS_SYSTEMS_INFORMATION_NAT_HPP_INCLUDED
@@ -0,0 +1,45 @@
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2014 Erik Erlandson
//
// 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)
#ifndef BOOST_UNITS_SYSTEMS_INFORMATION_PREFIXES_HPP_INCLUDED
#define BOOST_UNITS_SYSTEMS_INFORMATION_PREFIXES_HPP_INCLUDED
#include <boost/units/make_scaled_unit.hpp>
#include <boost/units/static_rational.hpp>
#include <boost/units/scale.hpp>
#include <boost/units/systems/information/byte.hpp>
#define BOOST_UNITS_INFOSYS_PREFIX(exponent, name) \
typedef make_scaled_unit<dimensionless, scale<2, static_rational<exponent> > >::type name ## _pf_type; \
BOOST_UNITS_STATIC_CONSTANT(name, name ## _pf_type)
namespace boost {
namespace units {
namespace information {
// Note, these are defined (somewhat arbitrarily) against the 'byte' system.
// They work smoothly with bit_information, nat_information, etc, so it is
// transparent to the user.
BOOST_UNITS_INFOSYS_PREFIX(10, kibi);
BOOST_UNITS_INFOSYS_PREFIX(20, mebi);
BOOST_UNITS_INFOSYS_PREFIX(30, gibi);
BOOST_UNITS_INFOSYS_PREFIX(40, tebi);
BOOST_UNITS_INFOSYS_PREFIX(50, pebi);
BOOST_UNITS_INFOSYS_PREFIX(60, exbi);
BOOST_UNITS_INFOSYS_PREFIX(70, zebi);
BOOST_UNITS_INFOSYS_PREFIX(80, yobi);
} // namespace information
} // namespace units
} // namespace boost
#undef BOOST_UNITS_INFOSYS_PREFIX
#endif // BOOST_UNITS_SYSTEMS_INFORMATION_PREFIXES_HPP_INCLUDED
@@ -0,0 +1,33 @@
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2014 Erik Erlandson
//
// 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)
#ifndef BOOST_UNITS_SYSTEMS_INFORMATION_SHANNON_HPP_INCLUDED
#define BOOST_UNITS_SYSTEMS_INFORMATION_SHANNON_HPP_INCLUDED
#include <boost/units/systems/information/byte.hpp>
#include <boost/units/base_units/information/shannon.hpp>
namespace boost {
namespace units {
namespace information {
namespace hu {
namespace shannon {
typedef unit<information_dimension, make_system<shannon_base_unit>::type> info;
} // namespace bit
} // namespace hu
BOOST_UNITS_STATIC_CONSTANT(shannon, hu::shannon::info);
BOOST_UNITS_STATIC_CONSTANT(shannons, hu::shannon::info);
} // namespace information
} // namespace units
} // namespace boost
#endif // BOOST_UNITS_SYSTEMS_INFORMATION_SHANNON_HPP_INCLUDED