mirror of
https://github.com/boostorg/charconv.git
synced 2026-01-27 06:42:18 +00:00
* Make the library modular usable. * Switch to library requirements instead of source. As source puts extra source in install targets. * Add missing NO_LIB usage requirements. * Add requires-b2 check to top-level build file. * Update dependencies. * Bump B2 require to 5.2 * Move inter-lib dependencies to a project variable and into the build targets.
36 lines
877 B
Plaintext
36 lines
877 B
Plaintext
# Copyright 2022 Peter Dimov
|
|
# Copyright 2023 Matt Borland
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# https://www.boost.org/LICENSE_1_0.txt
|
|
|
|
require-b2 5.0.1 ;
|
|
import-search /boost/config/checks ;
|
|
|
|
import config : requires ;
|
|
|
|
project : common-requirements <library>$(boost_dependencies) ;
|
|
|
|
local SOURCES = from_chars.cpp to_chars.cpp ;
|
|
|
|
lib quadmath ;
|
|
|
|
lib boost_charconv
|
|
|
|
# sources
|
|
: ../src/$(SOURCES)
|
|
|
|
# requirements
|
|
: <link>shared:<define>BOOST_CHARCONV_DYN_LINK=1
|
|
<define>BOOST_CHARCONV_SOURCE=1
|
|
|
|
[ requires cxx11_variadic_templates cxx11_decltype ]
|
|
[ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <library>"quadmath" <define>BOOST_CHARCONV_HAS_QUADMATH ]
|
|
|
|
# default-build
|
|
:
|
|
|
|
# usage-requirements
|
|
: <link>shared:<define>BOOST_CHARCONV_DYN_LINK=1
|
|
<define>BOOST_CHARCONV_NO_LIB=1
|
|
;
|