third_party: setup raylib (#33367)

* setup raylib

* x86 build

* add larch

* darwin

---------

Co-authored-by: Comma Device <device@comma.ai>
pull/33374/head
Adeeb Shihadeh 8 months ago committed by GitHub
parent 44c3156fa4
commit 4b70cc9286
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      third_party/raylib/.gitignore
  2. 3
      third_party/raylib/Darwin/libraylib.a
  3. 1662
      third_party/raylib/include/raylib.h
  4. 2190
      third_party/raylib/include/raymath.h
  5. 4859
      third_party/raylib/include/rlgl.h
  6. 3
      third_party/raylib/larch64/libraylib.a
  7. 36
      third_party/raylib/setup.sh
  8. 3
      third_party/raylib/x86_64/libraylib.a

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

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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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

@ -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

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