mirror of
https://github.com/boostorg/inspect.git
synced 2025-05-11 13:23:59 +00:00
Again, moving the default build to the project prevents a default debug variant being picked in some circumstances as the first default encountered.
31 lines
785 B
Plaintext
31 lines
785 B
Plaintext
# Copyright René Ferdinand Rivera Morell 2024-2025
|
|
# 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 ;
|
|
path-constant DIST_DIR : $(.DIST_DIR) ;
|
|
|
|
project /boost/inspect
|
|
: default-build release
|
|
;
|
|
|
|
explicit
|
|
[ install dist-bin
|
|
: build//inspect/<link>static
|
|
: <install-type>EXE <location>$(DIST_DIR)/bin ]
|
|
[ alias inspect : build//inspect ]
|
|
[ alias all : inspect dist-bin ]
|
|
;
|
|
|
|
# Install distribution files/execs by default.
|
|
alias dist : dist-bin ;
|