Skip to content

Commit

Permalink
use install- features instead of package module
Browse files Browse the repository at this point in the history
  • Loading branch information
grisumbras committed May 17, 2024
1 parent 7fae88e commit dbef53f
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 215 deletions.
4 changes: 3 additions & 1 deletion Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
# 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 make ;

project /boost/tools/boost_install ;

# BoostConfigVersion.cmake

generate BoostConfigVersion.cmake : : <generating-rule>@boost-install%generate-cmake-config-version <name>Boost <version>$(BOOST_VERSION) ;
make BoostConfigVersion.cmake : : @boost-install%make-cmake-config-version : <version>$(BOOST_VERSION) ;
explicit BoostConfigVersion.cmake ;
55 changes: 2 additions & 53 deletions boost-install-dirs.jam
Original file line number Diff line number Diff line change
Expand Up @@ -6,60 +6,9 @@ import modules ;
import boostcpp ;
import package ;
import path ;
import stage ;

# includedir

rule includedir
{
if ! $(.includedir)
{
local paths = [ package.paths Boost ] ;
.includedir = [ $(paths).includedir ] ;
}

return $(.includedir) ;
}

# bindir

rule bindir
{
if ! $(.bindir)
{
local paths = [ package.paths Boost ] ;
.bindir = [ $(paths).bindir ] ;
}

return $(.bindir) ;
}

# libdir

rule libdir
{
if ! $(.libdir)
{
local paths = [ package.paths Boost ] ;
.libdir = [ $(paths).libdir ] ;
}

return $(.libdir) ;
}

# cmakedir

rule cmakedir
{
if ! $(.cmakedir)
{
package.add-path-option cmakedir : cmake : libdir ;

local paths = [ package.paths Boost ] ;
.cmakedir = [ $(paths).get cmakedir ] ;
}

return $(.cmakedir) ;
}
stage.add-install-dir cmakedir : cmake : libdir ;

# header-subdir

Expand Down
Loading

0 comments on commit dbef53f

Please sign in to comment.