chore: initialize build2 project

This commit is contained in:
Glen Whitney 2022-12-18 16:50:01 -05:00
parent bd36a8b3fb
commit a8fba52b44
11 changed files with 114 additions and 26 deletions

51
.gitignore vendored
View File

@ -1,34 +1,33 @@
# ---> C++
# Prerequisites
*.d
.bdep/
# Compiled Object files
*.slo
*.lo
# Editor backups
*~
# Local default options files.
#
.build2/local/
# Compiler/linker output.
#
*.d
*.t
*.i
*.i.*
*.ii
*.ii.*
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.gcm
*.pcm
*.ifc
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exp
*.pdb
*.ilk
*.exe
*.out
*.app
*.exe.dlls/
*.exe.manifest
*.pc

4
build/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
/config.build
/root/
/bootstrap/
build/

7
build/bootstrap.build Normal file
View File

@ -0,0 +1,7 @@
project = cplusminus
using version
using config
using test
using install
using dist

20
build/root.build Normal file
View File

@ -0,0 +1,20 @@
# Uncomment to suppress warnings coming from external libraries.
#
#cxx.internal.scope = current
cxx.std = latest
using cxx
hxx{*}: extension = hxx
ixx{*}: extension = ixx
txx{*}: extension = txx
cxx{*}: extension = cxx
# Assume headers are importable unless stated otherwise.
#
hxx{*}: cxx.importable = true
# The test target for cross-testing (running tests under Wine, etc).
#
test.target = $cxx.target

1
buildfile Normal file
View File

@ -0,0 +1 @@
./: {*/ -build/} doc{README.md} legal{LICENSE} manifest

5
cpm/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
cpm
# Testscript output directory (can be symlink).
#
test-cpm

6
cpm/buildfile Normal file
View File

@ -0,0 +1,6 @@
libs =
#import libs += libhello%lib{hello}
exe{cpm}: {hxx ixx txx cxx}{**} $libs testscript
cxx.poptions =+ "-I$out_root" "-I$src_root"

14
cpm/cpm.cxx Normal file
View File

@ -0,0 +1,14 @@
#include <iostream>
int main (int argc, char* argv[])
{
using namespace std;
if (argc < 2)
{
cerr << "error: missing name" << endl;
return 1;
}
cout << "Hello, " << argv[1] << '!' << endl;
}

9
cpm/testscript Normal file
View File

@ -0,0 +1,9 @@
: basics
:
$* 'World' >'Hello, World!'
: missing-name
:
$* 2>>EOE != 0
error: missing name
EOE

12
manifest Normal file
View File

@ -0,0 +1,12 @@
: 1
name: cplusminus
version: 0.1.0-a.0.z
summary: cpm source transducer for C++
license: MIT ; MIT License.
description-file: README.md
url: https://code.studioinfinity.org/glen/cplusminus
email: glen@studioinfinity.org
#build-error-email: glen@studioinfinity.org
depends: * build2 >= 0.15.0
depends: * bpkg >= 0.15.0
#depends: libhello ^1.0.0

11
repositories.manifest Normal file
View File

@ -0,0 +1,11 @@
: 1
summary: cpm project repository
#:
#role: prerequisite
#location: https://pkg.cppget.org/1/stable
#trust: ...
#:
#role: prerequisite
#location: https://git.build2.org/hello/libhello.git