third_party: setup raylib (#33367)

* setup raylib

* x86 build

* add larch

* darwin

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 4b70cc9286
This commit is contained in:
Adeeb Shihadeh 2024-08-24 16:39:00 -07:00 committed by GitHub
parent a0c4bab7a1
commit 2c98c6d52b
8 changed files with 8757 additions and 0 deletions

1
third_party/raylib/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/raylib_repo/

3
third_party/raylib/Darwin/libraylib.a vendored Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ffe1fc6497f0c111fc507988e94fd29ce4db53a4876dc82ab9267895ad82584
size 6515352

1662
third_party/raylib/include/raylib.h vendored Normal file

File diff suppressed because it is too large Load Diff

2190
third_party/raylib/include/raymath.h vendored Normal file

File diff suppressed because it is too large Load Diff

4859
third_party/raylib/include/rlgl.h vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fac99ffbab698b99a47019ff02ff839f7536c32996b5e7aa827ef4820b288212
size 10630538

36
third_party/raylib/setup.sh vendored Executable file
View File

@ -0,0 +1,36 @@
#!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd $DIR
ARCHNAME=$(uname -m)
if [ -f /TICI ]; then
ARCHNAME="larch64"
fi
if [[ "$OSTYPE" == "darwin"* ]]; then
ARCHNAME="Darwin"
fi
if [ ! -d raylib_repo ]; then
git clone https://github.com/raysan5/raylib.git raylib_repo
fi
cd raylib_repo
git fetch --tags origin 5.0
git checkout 5.0
git clean -xdff .
mkdir build
cd build
cmake ..
make -j$(nproc)
INSTALL_DIR="$DIR/$ARCHNAME"
rm -rf $INSTALL_DIR
mkdir -p $INSTALL_DIR
rm -rf $DIR/include
cp $DIR/raylib_repo/build/raylib/libraylib.a $INSTALL_DIR/
cp -r $DIR/raylib_repo/build/raylib/include $DIR

3
third_party/raylib/x86_64/libraylib.a vendored Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0c07c718e411baefd74fd761d18f18fcc681ccd606d477118acff96732d21791
size 10233524