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,14 @@
// 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)
#ifdef _WIN32
__declspec(dllexport)
#endif
#ifdef RELEASE
void release() {}
#else
void debug() {}
#endif

View File

@@ -0,0 +1,10 @@
// 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)
#ifdef _WIN32
__declspec(dllimport)
#endif
void debug();

View File

@@ -0,0 +1,13 @@
# 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 ext
: requirements <variant>release:<define>RELEASE
;
lib a : a.cpp ;
install dist : a : <variant>release:<location>release
<variant>debug:<location>debug ;

View File

@@ -0,0 +1,41 @@
import os ;
local dll-suffix = so ;
local prefix = "lib" ;
if [ os.name ] in NT
{
if [ MATCH ^(gcc) : $toolset ]
{
dll-suffix = dll.a ;
prefix = lib ;
}
else
{
dll-suffix = lib ;
prefix = "" ;
}
}
else if [ os.name ] in CYGWIN
{
dll-suffix = dll ;
}
else if [ os.name ] in MACOSX
{
dll-suffix = dylib ;
}
project ext ;
lib a :
: <file>debug/$(prefix)a.$(dll-suffix) <variant>debug
:
: <include>debug
;
lib a :
: <file>release/$(prefix)a.$(dll-suffix) <variant>release
:
: <include>release
;

View File

@@ -0,0 +1,48 @@
# This Jamfile is the same as Jamfile2, except that
# it tries to access prebuilt targets using absolute
# paths. It used to be broken on Windows.
import os ;
local dll-suffix = so ;
local prefix = "lib" ;
if [ os.name ] in NT
{
if [ MATCH ^(gcc) : $toolset ]
{
dll-suffix = dll.a ;
prefix = lib ;
}
else
{
dll-suffix = lib ;
prefix = "" ;
}
}
else if [ os.name ] in CYGWIN
{
dll-suffix = dll ;
}
else if [ os.name ] in MACOSX
{
dll-suffix = dylib ;
}
project ext ;
# Assumed bjam was invoked from the project root
local pwd = [ PWD ] ;
lib a :
: <file>$(pwd)/ext/debug/$(prefix)a.$(dll-suffix) <variant>debug
:
: <include>debug
;
lib a :
: <file>$(pwd)/ext/release/$(prefix)a.$(dll-suffix) <variant>release
:
: <include>release
;

View File

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

View File

@@ -0,0 +1,10 @@
// 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)
#ifdef _WIN32
__declspec(dllimport)
#endif
void release();

View File

@@ -0,0 +1,17 @@
// 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)
#include <a.h>
int main()
{
#ifdef RELEASE
release();
#else
debug();
#endif
return 0;
}

View File

@@ -0,0 +1,13 @@
# 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 <variant>release:<define>RELEASE
;
use-project /ext : ext ;
exe hello : hello.cpp /ext//a ;

View File

@@ -0,0 +1,4 @@
# Copyright 2002, 2004 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)