diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
commit | 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch) | |
tree | e5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/boost/libs/headers | |
parent | Initial commit. (diff) | |
download | ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.tar.xz ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.zip |
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/libs/headers')
-rw-r--r-- | src/boost/libs/headers/README.md | 7 | ||||
-rw-r--r-- | src/boost/libs/headers/build/Jamfile | 99 |
2 files changed, 106 insertions, 0 deletions
diff --git a/src/boost/libs/headers/README.md b/src/boost/libs/headers/README.md new file mode 100644 index 00000000..e6ab8383 --- /dev/null +++ b/src/boost/libs/headers/README.md @@ -0,0 +1,7 @@ +# headers + +This is a "fake" library that installs the Boost headers on +`b2 libs/headers/build//install`. + +It also creates a CMake target `Boost::headers`, on which the +non-header library targets such as `Boost::filesystem` depend. diff --git a/src/boost/libs/headers/build/Jamfile b/src/boost/libs/headers/build/Jamfile new file mode 100644 index 00000000..592a6d23 --- /dev/null +++ b/src/boost/libs/headers/build/Jamfile @@ -0,0 +1,99 @@ +# Copyright 2018 Peter Dimov +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt) + +import package ; +import path ; +import sequence ; +import set ; +import ../../../tools/boost_install/boost-install ; +import ../../../tools/boost_install/boost-install-dirs ; + +# install-header-subdir + +local header-subdir = [ boost-install-dirs.header-subdir ] ; + +local install-header-subdir ; + +if $(header-subdir) +{ + install-header-subdir = $(header-subdir)/boost ; +} +else +{ + install-header-subdir = boost ; +} + +# install-headers + +# first, the 'modular' headers + +local modular-headers = $(BOOST_MODULARLAYOUT) ; + +local skip-headers ; + +for local lib in $(modular-headers) +{ + local header-root = $(BOOST_ROOT)/libs/$(lib)/include/boost ; + + local headers = + [ path.glob-tree $(header-root) : *.hpp *.ipp *.h *.inc ] + [ path.glob-tree $(header-root)/compatibility/cpp_c_headers : c* ] ; + + skip-headers += [ sequence.transform path.relative-to [ path.make $(header-root) ] : $(headers) ] ; + + package.install install-$(lib)-headers Boost + : <install-header-subdir>$(install-header-subdir) + <install-source-root>$(header-root) + <install-no-version-symlinks>on + : # No binaries + : # No libraries + : $(headers) + ; + + explicit install-$(lib)-headers ; +} + +# then, the non-modular headers in boost/, minus the modular ones + +local header-root = [ path.make $(BOOST_ROOT)/boost ] ; + +local headers = + [ path.glob-tree $(BOOST_ROOT)/boost : *.hpp *.ipp *.h *.inc ] + [ path.glob-tree $(BOOST_ROOT)/boost/compatibility/cpp_c_headers : c* ] ; + +headers = [ set.difference $(headers) : $(header-root)/$(skip-headers) ] ; + +package.install install-boost-headers Boost + : <install-header-subdir>$(install-header-subdir) + <install-source-root>$(header-root) + <install-no-version-symlinks>on + : # No binaries + : # No libraries + : $(headers) +; + +explicit install-boost-headers ; + +# + +alias install-headers : install-$(modular-headers)-headers install-boost-headers ; +explicit install-headers ; + +# install + +alias boost_headers ; + +boost-install.install-cmake-config boost_headers ; +explicit install-cmake-config ; + +alias install : install-headers install-cmake-config ; +explicit install ; + +# stage + +boost-install.stage-cmake-config boost_headers ; +explicit stage-cmake-config ; + +alias stage : stage-cmake-config ; +explicit stage ; |