mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-08 18:33:58 +00:00
Add support for modular build structure. (#25)
* Tweaks to normalize tool modular building. * Build the dist target for tools by default. * Add requires-b2 check to top-level build file. * Bump B2 require to 5.2 * Simplify xslt files install glob.
This commit is contained in:
parent
c693753132
commit
5efbdc20b8
28
build.jam
Normal file
28
build.jam
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# Copyright René Ferdinand Rivera Morell 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 ;
|
||||||
|
|
||||||
|
import option ;
|
||||||
|
import path ;
|
||||||
|
|
||||||
|
local DIST_DIR = [ option.get distdir ] ;
|
||||||
|
DIST_DIR ?= [ option.get build-dir ] ;
|
||||||
|
DIST_DIR ?= [ path.join $(BOOST_ROOT) dist ] ;
|
||||||
|
DIST_DIR ?= dist ;
|
||||||
|
DIST_DIR = [ path.root [ path.make $(DIST_DIR) ] [ path.pwd ] ] ;
|
||||||
|
|
||||||
|
project /boost/boostbook ;
|
||||||
|
|
||||||
|
explicit
|
||||||
|
[ install dist-share
|
||||||
|
: [ glob-tree-ex dtd xsl : *.dtd *.xml *.xsl LICENSE ]
|
||||||
|
: <location>$(DIST_DIR)/share <install-source-root>. ]
|
||||||
|
[ alias boostbook ]
|
||||||
|
[ alias all : boostbook dist-share ]
|
||||||
|
;
|
||||||
|
|
||||||
|
# Install distribution files/execs by default.
|
||||||
|
alias dist : dist-share ;
|
Loading…
x
Reference in New Issue
Block a user