commit 6a4a8b0ac5b57375b5412788db0105bac4193b86 Author: Ryan Date: Tue Aug 6 13:30:32 2024 +0200 Work in progress diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1631641 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c96e1ec --- /dev/null +++ b/.gitignore @@ -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 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..032d0fb --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "upstream"] + path = upstream + url = https://github.com/raysan5/raylib diff --git a/PACKAGE-README.md b/PACKAGE-README.md new file mode 100644 index 0000000..f38a55f --- /dev/null +++ b/PACKAGE-README.md @@ -0,0 +1,42 @@ +# raylib - A C++ library + +This is a `build2` package for the [``](https://) +C++ library. It provides . + + +## Usage + +To start using `raylib` in your project, add the following `depends` +value to your `manifest`, adjusting the version constraint as appropriate: + +``` +depends: raylib ^ +``` + +Then import the library in your `buildfile`: + +``` +import libs = raylib%lib{} +``` + + +## Importable targets + +This package provides the following importable targets: + +``` +lib{} +``` + + + + +## Configuration variables + +This package provides the following configuration variables: + +``` +[bool] config.raylib. ?= false +``` + + diff --git a/build/.gitignore b/build/.gitignore new file mode 100644 index 0000000..974e01d --- /dev/null +++ b/build/.gitignore @@ -0,0 +1,4 @@ +/config.build +/root/ +/bootstrap/ +build/ diff --git a/build/bootstrap.build b/build/bootstrap.build new file mode 100644 index 0000000..43672a9 --- /dev/null +++ b/build/bootstrap.build @@ -0,0 +1,7 @@ +project = raylib + +using version +using config +using test +using install +using dist diff --git a/build/export.build b/build/export.build new file mode 100644 index 0000000..a85ff89 --- /dev/null +++ b/build/export.build @@ -0,0 +1,6 @@ +$out_root/ +{ + include raylib/ +} + +export $out_root/raylib/$import.target diff --git a/build/root.build b/build/root.build new file mode 100644 index 0000000..451fbcd --- /dev/null +++ b/build/root.build @@ -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 diff --git a/buildfile b/buildfile new file mode 100644 index 0000000..49eb7c6 --- /dev/null +++ b/buildfile @@ -0,0 +1,5 @@ +./: {raylib/} doc{PACKAGE-README.md} manifest + +# Don't install tests. +# +tests/: install = false diff --git a/manifest b/manifest new file mode 100644 index 0000000..39d4b8b --- /dev/null +++ b/manifest @@ -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 diff --git a/repositories.manifest b/repositories.manifest new file mode 100644 index 0000000..3a1637c --- /dev/null +++ b/repositories.manifest @@ -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 diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..662178d --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1,8 @@ +# Test executables. +# +driver + +# Testscript output directories (can be symlinks). +# +test +test-* diff --git a/tests/build/.gitignore b/tests/build/.gitignore new file mode 100644 index 0000000..974e01d --- /dev/null +++ b/tests/build/.gitignore @@ -0,0 +1,4 @@ +/config.build +/root/ +/bootstrap/ +build/ diff --git a/tests/build/bootstrap.build b/tests/build/bootstrap.build new file mode 100644 index 0000000..a07b5ea --- /dev/null +++ b/tests/build/bootstrap.build @@ -0,0 +1,5 @@ +project = # Unnamed tests subproject. + +using config +using test +using dist diff --git a/tests/build/root.build b/tests/build/root.build new file mode 100644 index 0000000..a67b2fe --- /dev/null +++ b/tests/build/root.build @@ -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 diff --git a/tests/buildfile b/tests/buildfile new file mode 100644 index 0000000..aeeab15 --- /dev/null +++ b/tests/buildfile @@ -0,0 +1 @@ +./: {*/ -build/} diff --git a/upstream b/upstream new file mode 160000 index 0000000..9c2ba3b --- /dev/null +++ b/upstream @@ -0,0 +1 @@ +Subproject commit 9c2ba3bfb7166b71a852d4a4912363d0977c8676