early-access version 3088

This commit is contained in:
pineappleEA
2022-11-05 15:35:56 +01:00
parent 4e4fc25ce3
commit b601909c6d
35519 changed files with 5996896 additions and 860 deletions

View File

@@ -0,0 +1,5 @@
// Copyright (c) 2003 Vladimir Prus
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE.txt or copy at
// https://www.bfgroup.xyz/b2/LICENSE.txt)

View File

@@ -0,0 +1,5 @@
// Copyright (c) 2003 Vladimir Prus
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE.txt or copy at
// https://www.bfgroup.xyz/b2/LICENSE.txt)

View File

@@ -0,0 +1,11 @@
# Copyright 2003 Dave Abrahams
# Copyright 2002, 2003 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
project test : requirements <include>everything <threading>single ;
make a.exe : a.obj lib//b.obj/<optimization>speed : yfc-link ;
make b.exe : a.obj : yfc-link : <define>MACROS ;
make a.obj : a.cpp : yfc-compile ;

View File

@@ -0,0 +1,5 @@
make a.exe : a.obj lib//b.obj/<optimization>on a_gcc.obj : yfc-link : <toolset>gcc ;
make a.exe : a.obj lib//b.obj/<optimization>on : yfc-link : <threading>multi ;
make a.obj : a.cpp : yfc-compile ;
make a_gcc.obj : a_gcc.cpp : yfc-compile ;

View File

@@ -0,0 +1,4 @@
project test : requirements <include>everything <threading>single ;
build-project lib2 ;

View File

@@ -0,0 +1,6 @@
project test : requirements <include>everything <threading>single ;
make a.exe : a.obj lib//b.obj/<variant>release : yfc-link ;
make b.exe : a.obj : yfc-link : <define>MACROS ;
make a.obj : a.cpp : yfc-compile ;

View File

@@ -0,0 +1,68 @@
# Copyright 2002, 2003, 2005 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
import os ;
import gcc ;
import property ;
import toolset ;
rule properties-as-path ( properties * )
{
local r ;
for local p in $(properties)
{
if $(p:G) != <action>
{
r += $(p) ;
}
}
return [ property.as-path
[ property.remove incidental : $(r) ] ] ;
}
toolset.flags yfc-compile KNOWN-PROPERTIES : <toolset> <optimization> ;
toolset.flags yfc-link KNOWN-PROPERTIES : <toolset> <optimization> ;
rule yfc-compile ( target : sources * : property-set * )
{
PROPERTIES on $(target) = [ properties-as-path $(property-set) ] ;
}
actions yfc-compile
{
echo $(PROPERTIES) > $(<)
echo $(>) >> $(<)
}
rule yfc-link ( target : sources * : property-set * )
{
PROPERTIES on $(target) = [ properties-as-path $(property-set) ] ;
}
actions yfc-link
{
echo $(PROPERTIES) > $(<)
echo $(>) >> $(<)
}
if [ os.name ] = VMS
{
actions yfc-compile
{
PIPE WRITE SYS$OUTPUT "$(PROPERTIES)" | TYPE SYS$INPUT /OUT=$(<:W)
PIPE WRITE SYS$OUTPUT "$(>:J= ",")" | APPEND /NEW SYS$INPUT $(<:W)
}
actions yfc-link
{
PIPE WRITE SYS$OUTPUT "$(PROPERTIES)" | TYPE SYS$INPUT /OUT=$(<:W)
OPEN /APPEND FOUT $(<:W)
WRITE FOUT "$(>:J= ",")"
CLOSE FOUT
}
}
#IMPORT $(__name__) : yfc-compile yfc-link : : yfc-compile yfc-link ;

View File

@@ -0,0 +1,5 @@
// Copyright (c) 2003 Vladimir Prus
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE.txt or copy at
// https://www.bfgroup.xyz/b2/LICENSE.txt)

View File

@@ -0,0 +1,6 @@
# Copyright 2002 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
make b.obj : b.cpp : yfc-compile ;

View File

@@ -0,0 +1,2 @@
make b.obj : b.cpp : yfc-compile ;

View File

@@ -0,0 +1,4 @@
project lib : requirements <threading>multi ;
make b.obj : b.cpp : yfc-compile ;

View File

@@ -0,0 +1,2 @@
make b.obj : b.cpp : yfc-compile : <rtti>off ;

View File

@@ -0,0 +1,8 @@
# Copyright 2002 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
project
: requirements <rtti>off
;

View File

@@ -0,0 +1,4 @@
project mylib
: requirements <rtti>off
;

View File

@@ -0,0 +1,6 @@
Copyright 2002 Vladimir Prus
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
This test checks for correct properties of generated and used targets.