forked from glen/cplusminus
chore: initialize build2 project
This commit is contained in:
parent
bd36a8b3fb
commit
a8fba52b44
51
.gitignore
vendored
51
.gitignore
vendored
@ -1,34 +1,33 @@
|
|||||||
# ---> C++
|
.bdep/
|
||||||
# Prerequisites
|
|
||||||
*.d
|
|
||||||
|
|
||||||
# Compiled Object files
|
# Editor backups
|
||||||
*.slo
|
*~
|
||||||
*.lo
|
|
||||||
|
# Local default options files.
|
||||||
|
#
|
||||||
|
.build2/local/
|
||||||
|
|
||||||
|
# Compiler/linker output.
|
||||||
|
#
|
||||||
|
*.d
|
||||||
|
*.t
|
||||||
|
*.i
|
||||||
|
*.i.*
|
||||||
|
*.ii
|
||||||
|
*.ii.*
|
||||||
*.o
|
*.o
|
||||||
*.obj
|
*.obj
|
||||||
|
*.gcm
|
||||||
# Precompiled Headers
|
*.pcm
|
||||||
*.gch
|
*.ifc
|
||||||
*.pch
|
|
||||||
|
|
||||||
# Compiled Dynamic libraries
|
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
|
||||||
*.dll
|
*.dll
|
||||||
|
|
||||||
# Fortran module files
|
|
||||||
*.mod
|
|
||||||
*.smod
|
|
||||||
|
|
||||||
# Compiled Static libraries
|
|
||||||
*.lai
|
|
||||||
*.la
|
|
||||||
*.a
|
*.a
|
||||||
*.lib
|
*.lib
|
||||||
|
*.exp
|
||||||
# Executables
|
*.pdb
|
||||||
|
*.ilk
|
||||||
*.exe
|
*.exe
|
||||||
*.out
|
*.exe.dlls/
|
||||||
*.app
|
*.exe.manifest
|
||||||
|
*.pc
|
||||||
|
4
build/.gitignore
vendored
Normal file
4
build/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
/config.build
|
||||||
|
/root/
|
||||||
|
/bootstrap/
|
||||||
|
build/
|
7
build/bootstrap.build
Normal file
7
build/bootstrap.build
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
project = cplusminus
|
||||||
|
|
||||||
|
using version
|
||||||
|
using config
|
||||||
|
using test
|
||||||
|
using install
|
||||||
|
using dist
|
20
build/root.build
Normal file
20
build/root.build
Normal 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
1
buildfile
Normal file
@ -0,0 +1 @@
|
|||||||
|
./: {*/ -build/} doc{README.md} legal{LICENSE} manifest
|
5
cpm/.gitignore
vendored
Normal file
5
cpm/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
cpm
|
||||||
|
|
||||||
|
# Testscript output directory (can be symlink).
|
||||||
|
#
|
||||||
|
test-cpm
|
6
cpm/buildfile
Normal file
6
cpm/buildfile
Normal 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
14
cpm/cpm.cxx
Normal 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
9
cpm/testscript
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
: basics
|
||||||
|
:
|
||||||
|
$* 'World' >'Hello, World!'
|
||||||
|
|
||||||
|
: missing-name
|
||||||
|
:
|
||||||
|
$* 2>>EOE != 0
|
||||||
|
error: missing name
|
||||||
|
EOE
|
12
manifest
Normal file
12
manifest
Normal 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
11
repositories.manifest
Normal 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
|
Loading…
Reference in New Issue
Block a user