mirror of https://github.com/commaai/openpilot.git
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:
parent
a0c4bab7a1
commit
2c98c6d52b
|
@ -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…
Reference in New Issue