mirror of
https://github.com/boostorg/fiber.git
synced 2026-07-21 13:13:32 +00:00
Merge pull request #322 from grafikrobot/modular
Add support for modular build structure.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# 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/context//boost_context
|
||||
/boost/core//boost_core
|
||||
/boost/intrusive//boost_intrusive
|
||||
/boost/predef//boost_predef
|
||||
/boost/smart_ptr//boost_smart_ptr ;
|
||||
|
||||
project /boost/fiber
|
||||
: common-requirements
|
||||
<include>include
|
||||
;
|
||||
|
||||
explicit
|
||||
[ alias boost_fiber : build//boost_fiber ]
|
||||
[ alias boost_fiber_numa : build//boost_fiber_numa ]
|
||||
[ alias all : boost_fiber examples examples/numa performance/fiber performance/fiber/numa test ]
|
||||
;
|
||||
|
||||
call-if : boost-library fiber
|
||||
: install boost_fiber boost_fiber_numa
|
||||
;
|
||||
|
||||
+15
-6
@@ -9,13 +9,24 @@ import feature ;
|
||||
import modules ;
|
||||
import testing ;
|
||||
import toolset ;
|
||||
import ../../config/checks/config : requires ;
|
||||
import-search /boost/config/checks ;
|
||||
import config : requires ;
|
||||
import-search /boost/context ;
|
||||
import boost-context-features ;
|
||||
|
||||
feature.feature numa : on : optional propagated composite ;
|
||||
feature.compose <numa>on : <define>BOOST_USE_NUMA ;
|
||||
|
||||
project boost/fiber
|
||||
constant boost_dependencies_private :
|
||||
/boost/algorithm//boost_algorithm
|
||||
/boost/filesystem//boost_filesystem
|
||||
/boost/format//boost_format
|
||||
;
|
||||
|
||||
project
|
||||
: common-requirements <library>$(boost_dependencies)
|
||||
: requirements
|
||||
<library>$(boost_dependencies_private)
|
||||
<library>/boost/context//boost_context
|
||||
<library>/boost/filesystem//boost_filesystem
|
||||
<target-os>solaris:<linkflags>"-llgrp"
|
||||
@@ -31,6 +42,7 @@ project boost/fiber
|
||||
<link>shared:<define>BOOST_FIBERS_DYN_LINK=1
|
||||
<optimization>speed:<define>BOOST_DISABLE_ASSERTS
|
||||
<variant>release:<define>BOOST_DISABLE_ASSERTS
|
||||
<define>BOOST_FIBERS_NO_LIB=1
|
||||
: source-location ../src
|
||||
;
|
||||
|
||||
@@ -65,7 +77,7 @@ lib boost_fiber
|
||||
recursive_timed_mutex.cpp
|
||||
timed_mutex.cpp
|
||||
scheduler.cpp
|
||||
: <link>shared:<library>../../context/build//boost_context
|
||||
: <link>shared:<library>/boost/context//boost_context
|
||||
[ requires cxx11_auto_declarations
|
||||
cxx11_constexpr
|
||||
cxx11_defaulted_functions
|
||||
@@ -145,6 +157,3 @@ lib boost_fiber_numa
|
||||
cxx11_thread_local
|
||||
cxx11_variadic_templates ]
|
||||
;
|
||||
|
||||
|
||||
boost-install boost_fiber boost_fiber_numa ;
|
||||
|
||||
+7
-7
@@ -14,7 +14,7 @@ import modules ;
|
||||
import os ;
|
||||
import toolset ;
|
||||
|
||||
project boost/fiber/example
|
||||
project
|
||||
: requirements
|
||||
<library>../build//boost_fiber
|
||||
<library>/boost/context//boost_context
|
||||
@@ -42,12 +42,12 @@ exe range_for : range_for.cpp ;
|
||||
exe priority : priority.cpp ;
|
||||
exe segmented_stack : segmented_stack.cpp ;
|
||||
exe simple : simple.cpp ;
|
||||
exe wait_stuff : wait_stuff.cpp ;
|
||||
exe wait_stuff : wait_stuff.cpp /boost/variant//boost_variant ;
|
||||
exe work_sharing : work_sharing.cpp ;
|
||||
exe work_stealing : work_stealing.cpp ;
|
||||
|
||||
exe asio/autoecho : asio/autoecho.cpp ;
|
||||
exe asio/exchange : asio/exchange.cpp ;
|
||||
exe asio/ps/publisher : asio/ps/publisher.cpp ;
|
||||
exe asio/ps/server : asio/ps/server.cpp ;
|
||||
exe asio/ps/subscriber : asio/ps/subscriber.cpp ;
|
||||
exe asio/autoecho : asio/autoecho.cpp /boost/asio//boost_asio ;
|
||||
exe asio/exchange : asio/exchange.cpp /boost/asio//boost_asio ;
|
||||
exe asio/ps/publisher : asio/ps/publisher.cpp /boost/asio//boost_asio ;
|
||||
exe asio/ps/server : asio/ps/server.cpp /boost/asio//boost_asio ;
|
||||
exe asio/ps/subscriber : asio/ps/subscriber.cpp /boost/asio//boost_asio ;
|
||||
|
||||
@@ -14,7 +14,7 @@ import modules ;
|
||||
import os ;
|
||||
import toolset ;
|
||||
|
||||
project boost/fiber/example/numa
|
||||
project
|
||||
: requirements
|
||||
<library>../../build//boost_fiber
|
||||
<library>../../build//boost_fiber_numa
|
||||
|
||||
@@ -13,7 +13,7 @@ import modules ;
|
||||
import os ;
|
||||
import toolset ;
|
||||
|
||||
project boost/fiber/performance/fiber
|
||||
project
|
||||
: requirements
|
||||
<library>/boost/fiber//boost_fiber
|
||||
<library>/boost/fiber//boost_fiber_numa
|
||||
|
||||
@@ -13,7 +13,7 @@ import modules ;
|
||||
import os ;
|
||||
import toolset ;
|
||||
|
||||
project boost/fiber/performance/fiber/numa
|
||||
project
|
||||
: requirements
|
||||
<library>/boost/fiber//boost_fiber
|
||||
<target-os>solaris:<linkflags>"-llgrp"
|
||||
|
||||
@@ -13,7 +13,7 @@ import modules ;
|
||||
import os ;
|
||||
import toolset ;
|
||||
|
||||
project boost/fiber/performance/thread
|
||||
project
|
||||
: requirements
|
||||
<link>static
|
||||
<threading>multi
|
||||
|
||||
+4
-3
@@ -13,11 +13,12 @@ import os ;
|
||||
import path ;
|
||||
import testing ;
|
||||
import toolset ;
|
||||
import ../../config/checks/config : requires ;
|
||||
import-search /boost/config/checks ;
|
||||
import config : requires ;
|
||||
|
||||
project boost/fiber/test
|
||||
project
|
||||
: requirements
|
||||
<library>../../test/build//boost_unit_test_framework
|
||||
<library>/boost/test//boost_unit_test_framework
|
||||
<library>/boost/context//boost_context
|
||||
<library>/boost/fiber//boost_fiber
|
||||
<library>/boost/thread//boost_thread
|
||||
|
||||
Reference in New Issue
Block a user