dev-env-setup add specific mesa apt dependencies install script,
authorCole Poirier <colepoirier@gmail.com>
Thu, 27 Aug 2020 19:34:49 +0000 (12:34 -0700)
committerCole Poirier <colepoirier@gmail.com>
Thu, 27 Aug 2020 19:34:49 +0000 (12:34 -0700)
mesa-dev-env-setup script

install-mesa-apt-reqs [new file with mode: 0755]
lsoc-mesa-dev-env-setup [new file with mode: 0755]

diff --git a/install-mesa-apt-reqs b/install-mesa-apt-reqs
new file mode 100755 (executable)
index 0000000..169ca51
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/bash
+if [ "$EUID" -ne 0 ]
+  then echo "Please run as root"
+  exit
+fi
+echo "deb http://deb.debian.org/debian buster-backports main" | tee \
+    -a /etc/apt/sources.list
+apt-get update -y
+apt-get upgrade -y
+apt-get install -y build-essential \
+    cmake \
+    git \
+    pkg-config \
+    libatomic-ops-dev \
+    libcairo2-dev \
+    libcunit1-dev \
+    libpciaccess-dev \
+    libunwind-dev \
+    llvm-8 \
+    llvm-8-dev \
+    python3.7 \
+    python3.7-dev \
+    python3-setuptools \
+    libzstd-dev \
+    libzstd1 \
+    zlib1g
+apt-get install -y -t buster-backports meson
+apt-get build-dep -y libdrm
+apt-get build-dep -y mesa
diff --git a/lsoc-mesa-dev-env-setup b/lsoc-mesa-dev-env-setup
new file mode 100755 (executable)
index 0000000..1b75db4
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+mkdir -p ~/opt/lsoc_mesa
+cd ~/opt
+git clone https://gitlab.freedesktop.org/mesa/drm.git
+cd drm
+mkdir build && cd build
+meson -Dbuildtype=release -Dprefix=/home/$USER/opt/lsoc_mesa ..
+ninja install
+export PKG_CONFIG_PATH=~/opt/lsoc_mesa/lib/x86_64-linux-gnu/pkgconfig/
+cd ~/opt
+git clone https://gitlab.freedesktop.org/mesa/mesa.git
+cd mesa
+mkdir build && cd build
+meson -Dbuildtype=debug -Dprefix=/home/$USER/opt/lsoc_mesa
+ninja install