Files
predef/build.jam

53 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2023-03-12 23:07:07 -05:00
# Copyright René Ferdinand Rivera Morell 2014-2023
# 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)
#|
This B2 project provides support for using the Predef library externally as
2023-03-12 23:07:07 -05:00
a standalone project. To use externally you would need a `use-project`
declaration and to use the project as a dependency where needed:
----
2023-03-12 23:18:29 -05:00
use-project /boost/predef : /path/to/boost/predef/root ;
2023-03-12 23:07:07 -05:00
exe my_thing : main.cpp : <dependency>/boost/predef ;
----
|#
import project ;
2023-03-12 23:07:07 -05:00
import modules ;
path-constant PREDEF_ROOT : . ;
2023-03-12 23:07:07 -05:00
modules.poke : BOOST_BUILD_PATH
: $(PREDEF_ROOT)/tools/check [ modules.peek : BOOST_BUILD_PATH ] ;
project /boost/predef
2023-03-12 23:07:07 -05:00
: common-requirements
<include>include
;
if [ project.is-jamroot-module $(__name__) ]
{
local attributes = [ project.attributes $(__name__) ] ;
2020-02-28 23:31:33 -06:00
$(attributes).set "build-dir" : .bin ;
}
2023-03-12 23:07:07 -05:00
explicit
[ alias boost_predef ]
[ alias all : boost_predef test//all tools/check ]
2023-03-16 08:45:44 -05:00
[ install install-global-headers
: [ glob-tree-ex include : *.h ]
: <install-source-root>include <location>(includedir) ]
[ install install-data
: build.jam [ glob-tree-ex tools/check : * ] [ glob-tree-ex include : *.h ]
: <install-source-root>. <location>(datadir)/boost_predef ]
[ alias install :
install-global-headers install-data ]
2023-03-12 23:07:07 -05:00
;
call-if
: boost-library predef
;