Work in progress
This commit is contained in:
commit
6a4a8b0ac5
19
.gitattributes
vendored
Normal file
19
.gitattributes
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# This is a good default: files that are auto-detected by git to be text are
|
||||||
|
# converted to the platform-native line ending (LF on Unix, CRLF on Windows)
|
||||||
|
# in the working tree and to LF in the repository.
|
||||||
|
#
|
||||||
|
* text=auto
|
||||||
|
|
||||||
|
# Use `eol=crlf` for files that should have the CRLF line ending both in the
|
||||||
|
# working tree (even on Unix) and in the repository.
|
||||||
|
#
|
||||||
|
#*.bat text eol=crlf
|
||||||
|
|
||||||
|
# Use `eol=lf` for files that should have the LF line ending both in the
|
||||||
|
# working tree (even on Windows) and in the repository.
|
||||||
|
#
|
||||||
|
#*.sh text eol=lf
|
||||||
|
|
||||||
|
# Use `binary` to make sure certain files are never auto-detected as text.
|
||||||
|
#
|
||||||
|
#*.png binary
|
31
.gitignore
vendored
Normal file
31
.gitignore
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
.bdep/
|
||||||
|
|
||||||
|
# Local default options files.
|
||||||
|
#
|
||||||
|
.build2/local/
|
||||||
|
|
||||||
|
# Compiler/linker output.
|
||||||
|
#
|
||||||
|
*.d
|
||||||
|
*.t
|
||||||
|
*.i
|
||||||
|
*.i.*
|
||||||
|
*.ii
|
||||||
|
*.ii.*
|
||||||
|
*.o
|
||||||
|
*.obj
|
||||||
|
*.gcm
|
||||||
|
*.pcm
|
||||||
|
*.ifc
|
||||||
|
*.so
|
||||||
|
*.dylib
|
||||||
|
*.dll
|
||||||
|
*.a
|
||||||
|
*.lib
|
||||||
|
*.exp
|
||||||
|
*.pdb
|
||||||
|
*.ilk
|
||||||
|
*.exe
|
||||||
|
*.exe.dlls/
|
||||||
|
*.exe.manifest
|
||||||
|
*.pc
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "upstream"]
|
||||||
|
path = upstream
|
||||||
|
url = https://github.com/raysan5/raylib
|
42
PACKAGE-README.md
Normal file
42
PACKAGE-README.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# raylib - A C++ library
|
||||||
|
|
||||||
|
This is a `build2` package for the [`<UPSTREAM-NAME>`](https://<UPSTREAM-URL>)
|
||||||
|
C++ library. It provides <SUMMARY-OF-FUNCTIONALITY>.
|
||||||
|
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
To start using `raylib` in your project, add the following `depends`
|
||||||
|
value to your `manifest`, adjusting the version constraint as appropriate:
|
||||||
|
|
||||||
|
```
|
||||||
|
depends: raylib ^<VERSION>
|
||||||
|
```
|
||||||
|
|
||||||
|
Then import the library in your `buildfile`:
|
||||||
|
|
||||||
|
```
|
||||||
|
import libs = raylib%lib{<TARGET>}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Importable targets
|
||||||
|
|
||||||
|
This package provides the following importable targets:
|
||||||
|
|
||||||
|
```
|
||||||
|
lib{<TARGET>}
|
||||||
|
```
|
||||||
|
|
||||||
|
<DESCRIPTION-OF-IMPORTABLE-TARGETS>
|
||||||
|
|
||||||
|
|
||||||
|
## Configuration variables
|
||||||
|
|
||||||
|
This package provides the following configuration variables:
|
||||||
|
|
||||||
|
```
|
||||||
|
[bool] config.raylib.<VARIABLE> ?= false
|
||||||
|
```
|
||||||
|
|
||||||
|
<DESCRIPTION-OF-CONFIG-VARIABLES>
|
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 = raylib
|
||||||
|
|
||||||
|
using version
|
||||||
|
using config
|
||||||
|
using test
|
||||||
|
using install
|
||||||
|
using dist
|
6
build/export.build
Normal file
6
build/export.build
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
$out_root/
|
||||||
|
{
|
||||||
|
include raylib/
|
||||||
|
}
|
||||||
|
|
||||||
|
export $out_root/raylib/$import.target
|
8
build/root.build
Normal file
8
build/root.build
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
using c
|
||||||
|
|
||||||
|
h{*}: extension = h
|
||||||
|
c{*}: extension = c
|
||||||
|
|
||||||
|
# The test target for cross-testing (running tests under Wine, etc).
|
||||||
|
#
|
||||||
|
test.target = $c.target
|
5
buildfile
Normal file
5
buildfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
./: {raylib/} doc{PACKAGE-README.md} manifest
|
||||||
|
|
||||||
|
# Don't install tests.
|
||||||
|
#
|
||||||
|
tests/: install = false
|
14
manifest
Normal file
14
manifest
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
: 1
|
||||||
|
name: raylib
|
||||||
|
version: 0.1.0-a.0.z
|
||||||
|
type: lib
|
||||||
|
language: c++
|
||||||
|
summary: raylib C++ library
|
||||||
|
license: other: proprietary ; Not free/open source.
|
||||||
|
package-description-file: PACKAGE-README.md
|
||||||
|
url: https://example.org/upstream
|
||||||
|
email: upstream@example.org
|
||||||
|
package-url: https://github.com/build2-packaging/raylib
|
||||||
|
package-email: packaging@build2.org ; Mailing list.
|
||||||
|
depends: * build2 >= 0.16.0
|
||||||
|
depends: * bpkg >= 0.16.0
|
11
repositories.manifest
Normal file
11
repositories.manifest
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
: 1
|
||||||
|
summary: raylib project repository
|
||||||
|
|
||||||
|
#:
|
||||||
|
#role: prerequisite
|
||||||
|
#location: https://pkg.cppget.org/1/stable
|
||||||
|
#trust: ...
|
||||||
|
|
||||||
|
#:
|
||||||
|
#role: prerequisite
|
||||||
|
#location: https://git.build2.org/hello/libhello.git
|
8
tests/.gitignore
vendored
Normal file
8
tests/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Test executables.
|
||||||
|
#
|
||||||
|
driver
|
||||||
|
|
||||||
|
# Testscript output directories (can be symlinks).
|
||||||
|
#
|
||||||
|
test
|
||||||
|
test-*
|
4
tests/build/.gitignore
vendored
Normal file
4
tests/build/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
/config.build
|
||||||
|
/root/
|
||||||
|
/bootstrap/
|
||||||
|
build/
|
5
tests/build/bootstrap.build
Normal file
5
tests/build/bootstrap.build
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
project = # Unnamed tests subproject.
|
||||||
|
|
||||||
|
using config
|
||||||
|
using test
|
||||||
|
using dist
|
16
tests/build/root.build
Normal file
16
tests/build/root.build
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
cxx.std = latest
|
||||||
|
|
||||||
|
using cxx
|
||||||
|
|
||||||
|
hxx{*}: extension = hxx
|
||||||
|
ixx{*}: extension = ixx
|
||||||
|
txx{*}: extension = txx
|
||||||
|
cxx{*}: extension = cxx
|
||||||
|
|
||||||
|
# Every exe{} in this subproject is by default a test.
|
||||||
|
#
|
||||||
|
exe{*}: test = true
|
||||||
|
|
||||||
|
# The test target for cross-testing (running tests under Wine, etc).
|
||||||
|
#
|
||||||
|
test.target = $cxx.target
|
1
tests/buildfile
Normal file
1
tests/buildfile
Normal file
@ -0,0 +1 @@
|
|||||||
|
./: {*/ -build/}
|
1
upstream
Submodule
1
upstream
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 9c2ba3bfb7166b71a852d4a4912363d0977c8676
|
Loading…
Reference in New Issue
Block a user