mirror of
https://github.com/boostorg/format.git
synced 2026-01-19 04:12:10 +00:00
Add support for modular build structure. (#102)
* Make the library modular usable. * Switch to library requirements instead of source. As source puts extra source in install targets. * Add missing lib reference. * Add requires-b2 check to top-level build file. * Bump B2 require to 5.2 * Change all <source> references to <library>. * Update copyright dates. * Move inter-lib dependencies to a project variable and into the build targets. * Update build deps.
This commit is contained in:
committed by
GitHub
parent
9c6964ae01
commit
f700da0dc9
21
Jamfile
21
Jamfile
@@ -1,21 +0,0 @@
|
||||
# Boost.Format Library Jamfile
|
||||
#
|
||||
# Copyright (c) 2003 Samuel Krempp
|
||||
#
|
||||
# Use, modification, and distribution are subject to 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)
|
||||
#
|
||||
|
||||
project
|
||||
: requirements
|
||||
<toolset>gcc-4.7:<cxxflags>-Wno-unused-parameter
|
||||
<warnings>pedantic
|
||||
<warnings-as-errors>on
|
||||
;
|
||||
|
||||
# please order by name to ease maintenance
|
||||
build-project benchmark ;
|
||||
build-project example ;
|
||||
build-project test ;
|
||||
build-project tools ;
|
||||
@@ -6,19 +6,21 @@
|
||||
# See www.boost.org/LICENSE_1_0.txt
|
||||
#
|
||||
|
||||
project libs/format/benchmark
|
||||
project
|
||||
: requirements
|
||||
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
|
||||
;
|
||||
<library>/boost/format//boost_format
|
||||
<library>/boost/timer//boost_timer
|
||||
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
|
||||
;
|
||||
|
||||
exe bench_format_no_locale
|
||||
: bench_format.cpp
|
||||
/boost/timer//boost_timer
|
||||
: <define>BOOST_NO_STD_LOCALE <location-prefix>no_locale
|
||||
: <define>BOOST_NO_STD_LOCALE <location-prefix>no_locale
|
||||
;
|
||||
|
||||
exe bench_format_normal
|
||||
: bench_format.cpp
|
||||
: bench_format.cpp
|
||||
/boost/timer//boost_timer
|
||||
: <location-prefix>normal
|
||||
;
|
||||
|
||||
37
build.jam
Normal file
37
build.jam
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright René Ferdinand Rivera Morell 2023-2024
|
||||
# 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 ;
|
||||
|
||||
constant boost_dependencies :
|
||||
/boost/assert//boost_assert
|
||||
/boost/config//boost_config
|
||||
/boost/core//boost_core
|
||||
/boost/optional//boost_optional
|
||||
/boost/smart_ptr//boost_smart_ptr
|
||||
/boost/throw_exception//boost_throw_exception
|
||||
/boost/utility//boost_utility ;
|
||||
|
||||
project /boost/format
|
||||
: common-requirements
|
||||
<include>include
|
||||
;
|
||||
|
||||
explicit
|
||||
[ alias boost_format : : : : <library>$(boost_dependencies) ]
|
||||
[ alias all
|
||||
: boost_format
|
||||
benchmark
|
||||
example
|
||||
test
|
||||
tools
|
||||
: <warnings>pedantic
|
||||
<warnings-as-errors>on
|
||||
]
|
||||
;
|
||||
|
||||
call-if : boost-library format
|
||||
;
|
||||
|
||||
@@ -7,10 +7,12 @@
|
||||
|
||||
import testing ;
|
||||
|
||||
project : requirements <library>/boost/format//boost_format ;
|
||||
|
||||
test-suite "format-examples"
|
||||
: [ run sample_advanced.cpp ]
|
||||
[ run sample_formats.cpp ]
|
||||
[ run sample_new_features.cpp ]
|
||||
[ run sample_userType.cpp ]
|
||||
[ run sample_userType.cpp : : : <library>/boost/numeric_conversion//boost_numeric_conversion ]
|
||||
;
|
||||
|
||||
|
||||
@@ -7,6 +7,11 @@
|
||||
|
||||
import testing ;
|
||||
|
||||
project : requirements
|
||||
<library>/boost/format//boost_format
|
||||
<library>/boost/algorithm//boost_algorithm
|
||||
;
|
||||
|
||||
test-suite "format"
|
||||
: [ run format_test1.cpp ]
|
||||
[ run format_test1.cpp : : : <toolset>msvc:<cxxflags>"/FIWindows.h" : format_test1_windows_h ]
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
|
||||
project
|
||||
: requirements
|
||||
<library>/boost/format//boost_format
|
||||
<define>_CRT_SECURE_NO_WARNINGS
|
||||
<link>static
|
||||
;
|
||||
|
||||
exe format_matrix
|
||||
exe format_matrix
|
||||
: format_matrix.cpp
|
||||
/boost/array//boost_array
|
||||
/boost/filesystem//boost_filesystem
|
||||
/boost/program_options//boost_program_options
|
||||
/boost/system//boost_system
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user