1b75db4ee03348b0fe0378f826e6f99e318cef5d
[dev-env-setup.git] / lsoc-mesa-dev-env-setup
1 #!/bin/bash
2 mkdir -p ~/opt/lsoc_mesa
3 cd ~/opt
4 git clone https://gitlab.freedesktop.org/mesa/drm.git
5 cd drm
6 mkdir build && cd build
7 meson -Dbuildtype=release -Dprefix=/home/$USER/opt/lsoc_mesa ..
8 ninja install
9 export PKG_CONFIG_PATH=~/opt/lsoc_mesa/lib/x86_64-linux-gnu/pkgconfig/
10 cd ~/opt
11 git clone https://gitlab.freedesktop.org/mesa/mesa.git
12 cd mesa
13 mkdir build && cd build
14 meson -Dbuildtype=debug -Dprefix=/home/$USER/opt/lsoc_mesa
15 ninja install