1 # Copyright 2018 Peter Dimov
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
9 import ../../../tools/boost_install/boost-install ;
10 import ../../../tools/boost_install/boost-install-dirs ;
12 # install-header-subdir
14 local header-subdir = [ boost-install-dirs.header-subdir ] ;
16 local install-header-subdir ;
20 install-header-subdir = $(header-subdir)/boost ;
24 install-header-subdir = boost ;
29 # first, the 'modular' headers
31 local modular-headers = $(BOOST_MODULARLAYOUT) ;
35 for local lib in $(modular-headers)
37 local header-root = $(BOOST_ROOT)/libs/$(lib)/include/boost ;
40 [ path.glob-tree $(header-root) : *.hpp *.ipp *.h *.inc ]
41 [ path.glob-tree $(header-root)/compatibility/cpp_c_headers : c* ] ;
43 skip-headers += [ sequence.transform path.relative-to [ path.make $(header-root) ] : $(headers) ] ;
45 package.install install-$(lib)-headers Boost
46 : <install-header-subdir>$(install-header-subdir)
47 <install-source-root>$(header-root)
48 <install-no-version-symlinks>on
54 explicit install-$(lib)-headers ;
57 # then, the non-modular headers in boost/, minus the modular ones
59 local header-root = [ path.make $(BOOST_ROOT)/boost ] ;
62 [ path.glob-tree $(BOOST_ROOT)/boost : *.hpp *.ipp *.h *.inc ]
63 [ path.glob-tree $(BOOST_ROOT)/boost/compatibility/cpp_c_headers : c* ] ;
65 headers = [ set.difference $(headers) : $(header-root)/$(skip-headers) ] ;
67 package.install install-boost-headers Boost
68 : <install-header-subdir>$(install-header-subdir)
69 <install-source-root>$(header-root)
70 <install-no-version-symlinks>on
76 explicit install-boost-headers ;
80 alias install-headers : install-$(modular-headers)-headers install-boost-headers ;
81 explicit install-headers ;
87 boost-install.install-cmake-config boost_headers ;
88 explicit install-cmake-config ;
90 alias install : install-headers install-cmake-config ;
95 boost-install.stage-cmake-config boost_headers ;
96 explicit stage-cmake-config ;
98 alias stage : stage-cmake-config ;