-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for modular build structure. (#318)
* Make the library modular usable. * Use searched-lib targets for external/OS/Windows libraries to avoid trying to refer to mangled names for them. And hence failing to find them. * Use the OS temp dir for creating test dir to avoid putting dirs in random location based on where one runs tests from. * Switch to library requirements instead of source. As source puts extra source in install targets. * Updated dependencies. * Add missing NO_LIB usage requirements. * Add missing import-search for cconfig/predef checks. * 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. * Split b2 dependencies into public and private. * Undo temp dir for test change. * Make winapi dep target-os specific. And remove direct atomic dep as it is already handled by conditional rule. * Remove bug targets from all build as that's not a regular project.
- Loading branch information
1 parent
dc94c80
commit 5746b3f
Showing
4 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# 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/container_hash//boost_container_hash | ||
/boost/detail//boost_detail | ||
/boost/io//boost_io | ||
/boost/iterator//boost_iterator | ||
/boost/smart_ptr//boost_smart_ptr | ||
/boost/system//boost_system | ||
/boost/type_traits//boost_type_traits ; | ||
|
||
project /boost/filesystem | ||
: common-requirements | ||
<include>include | ||
; | ||
|
||
explicit | ||
[ alias boost_filesystem : build//boost_filesystem ] | ||
[ alias all : boost_filesystem example test ] | ||
; | ||
|
||
call-if : boost-library filesystem | ||
: install boost_filesystem | ||
; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters