File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
44
55import os ;
6+ import indirect ;
67import modules ;
78import feature ;
89
@@ -41,8 +42,27 @@ py3-version = [ find-py3-version ] ;
4142
4243project boost/python
4344 : source-location ../src
45+ : requirements
46+ -<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
47+ <tag>@$(__name__).tag
4448 ;
4549
50+ rule tag ( name : type ? : property-set )
51+ {
52+ local result = $(name) ;
53+ if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB
54+ {
55+ if $(name) = boost_python && $(PYTHON_ID)
56+ {
57+ result = $(result)-$(PYTHON_ID) ;
58+ }
59+ }
60+
61+ # forward to the boost tagging rule
62+ return [ indirect.call $(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
63+ $(result) : $(type) : $(property-set) ] ;
64+ }
65+
4666rule cond ( test ? : yes * : no * ) { if $(test) { return $(yes) ; } else { return $(no) ; } }
4767rule unless ( test ? : yes * : no * ) { if ! $(test) { return $(yes) ; } else { return $(no) ; } }
4868
You can’t perform that action at this time.
0 commit comments