fix: install missing x deps for building raylib from src (#36614)

* fix: install missing x deps for building raylib from src

* move here

* cleaner
pull/36618/head
Trey Moen 2 days ago committed by GitHub
parent 3d08a5048b
commit f93b3f51c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 18
      third_party/raylib/build.sh

@ -1,6 +1,17 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
SUDO=""
# Use sudo if not root
if [[ ! $(id -u) -eq 0 ]]; then
if [[ -z $(which sudo) ]]; then
echo "Please install sudo or run as root"
exit 1
fi
SUDO="sudo"
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd $DIR cd $DIR
@ -10,6 +21,13 @@ ARCHNAME=$(uname -m)
if [ -f /TICI ]; then if [ -f /TICI ]; then
ARCHNAME="larch64" ARCHNAME="larch64"
RAYLIB_PLATFORM="PLATFORM_COMMA" RAYLIB_PLATFORM="PLATFORM_COMMA"
elif [[ "$OSTYPE" == "linux"* ]]; then
# required dependencies on Linux PC
$SUDO apt install \
libxcursor-dev \
libxi-dev \
libxinerama-dev \
libxrandr-dev
fi fi
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then

Loading…
Cancel
Save