Merge branch 'grafikrobot-modular' into develop

This commit is contained in:
Ion Gaztañaga
2024-08-19 00:03:23 +02:00
6 changed files with 78 additions and 56 deletions

View File

@@ -1,5 +0,0 @@
import testing ;
# Tests from Jamfiles in individual library test subdirectories
build-project example ; # test-suite interprocess_example
build-project test ; # test-suite interprocess_test

31
build.jam Normal file
View File

@@ -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/container//boost_container
/boost/core//boost_core
/boost/intrusive//boost_intrusive
/boost/move//boost_move
/boost/static_assert//boost_static_assert
/boost/type_traits//boost_type_traits
/boost/winapi//boost_winapi ;
project /boost/interprocess
: common-requirements
<include>include
;
explicit
[ alias boost_interprocess : : : : <library>$(boost_dependencies) ]
[ alias all : boost_interprocess example test ]
;
call-if : boost-library interprocess
;

View File

@@ -15,15 +15,15 @@ path-constant here : . ;
doxygen autodoc
:
[ glob ../../../boost/interprocess/*.hpp ]
[ glob ../../../boost/interprocess/allocators/*.hpp ]
[ glob ../../../boost/interprocess/containers/*.hpp ]
[ glob ../../../boost/interprocess/indexes/*.hpp ]
[ glob ../../../boost/interprocess/ipc/*.hpp ]
[ glob ../../../boost/interprocess/mem_algo/*.hpp ]
[ glob ../../../boost/interprocess/smart_ptr/*.hpp ]
[ glob ../../../boost/interprocess/streams/*.hpp ]
[ glob ../../../boost/interprocess/sync/*.hpp ]
[ glob ../include/boost/interprocess/*.hpp ]
[ glob ../include/boost/interprocess/allocators/*.hpp ]
[ glob ../include/boost/interprocess/containers/*.hpp ]
[ glob ../include/boost/interprocess/indexes/*.hpp ]
[ glob ../include/boost/interprocess/ipc/*.hpp ]
[ glob ../include/boost/interprocess/mem_algo/*.hpp ]
[ glob ../include/boost/interprocess/smart_ptr/*.hpp ]
[ glob ../include/boost/interprocess/streams/*.hpp ]
[ glob ../include/boost/interprocess/sync/*.hpp ]
:
<doxygen:param>EXTRACT_ALL=NO
<doxygen:param>HIDE_UNDOC_MEMBERS=YES

View File

@@ -6528,7 +6528,7 @@ will manage the index. `segment_manager` will define interesting internal types
For example, the index type `flat_map_index` based in `boost::interprocess::flat_map`
is just defined as:
[import ../../../boost/interprocess/indexes/flat_map_index.hpp]
[import ../include/boost/interprocess/indexes/flat_map_index.hpp]
[flat_map_index]

View File

@@ -11,42 +11,36 @@
# Boost Software License, Version 1.0. (See accompanying file
# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
import testing ;
# this rule enumerates through all the sources and invokes
# the run rule for each source, the result is a list of all
# the run rules, which we can pass on to the test_suite rule:
project : requirements
<library>/boost/interprocess//boost_interprocess
<toolset>acc:<linkflags>-lrt
<toolset>acc-pa_risc:<linkflags>-lrt
<toolset>gcc,<target-os>windows:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
<target-os>hpux,<toolset>gcc:<linkflags>"-Wl,+as,mpas"
<target-os>windows,<toolset>clang:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
<target-os>linux:<linkflags>"-lrt"
<library>/boost/multi_index//boost_multi_index
<library>/boost/unordered//boost_unordered
;
rule test_all
{
local all_rules = ;
for local fileb in [ glob comp*.cpp ]
{
all_rules += [ link $(fileb)
: # additional args
<toolset>acc:<linkflags>-lrt
<toolset>acc-pa_risc:<linkflags>-lrt
<toolset>gcc,<target-os>windows:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
<target-os>hpux,<toolset>gcc:<linkflags>"-Wl,+as,mpas"
<target-os>windows,<toolset>clang:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
<target-os>linux:<linkflags>"-lrt"
: # test-files
: # requirements
] ;
all_rules += [ link $(fileb) ] ;
}
for local fileb in [ glob doc_*.cpp ]
{
all_rules += [ run $(fileb)
: # additional args
: # test-files
: # requirements
<toolset>acc:<linkflags>-lrt
<toolset>acc-pa_risc:<linkflags>-lrt
<toolset>gcc-mingw:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
<target-os>hpux,<toolset>gcc:<linkflags>"-Wl,+as,mpas"
<target-os>windows,<toolset>clang:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
<target-os>linux:<linkflags>"-lrt"
] ;
all_rules += [ run $(fileb) ] ;
}
return $(all_rules) ;

View File

@@ -15,23 +15,25 @@
# the run rule for each source, the result is a list of all
# the run rules, which we can pass on to the test_suite rule:
rule test_all
{
local all_rules = ;
for local fileb in [ glob *.cpp ]
{
all_rules += [ run $(fileb)
: # additional args
: # test-files
: # requirements
project : requirements
<library>/boost/interprocess//boost_interprocess
<library>/boost/date_time//boost_date_time
<toolset>acc:<linkflags>-lrt
<toolset>acc-pa_risc:<linkflags>-lrt
<toolset>gcc,<target-os>windows:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
<target-os>hpux,<toolset>gcc:<linkflags>"-Wl,+as,mpas"
<target-os>windows,<toolset>clang:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
<target-os>linux:<linkflags>"-lrt"
] ;
<library>/boost/chrono//boost_chrono
;
rule test_all
{
local all_rules = ;
for local fileb in [ glob *.cpp ]
{
all_rules += [ run $(fileb) ] ;
}
return $(all_rules) ;