add TODO
[dev-env-setup.git] / lsoc-mesa-dev-env-setup
index 2439580dc09e2240213a0d3418348e68e21520ff..f40bb6a6c7320e42d0c971e76d9cd1de954d505f 100755 (executable)
@@ -1,20 +1,26 @@
 #!/bin/bash
-mkdir -p ~/opt/lsoc_mesa
-cd ~/opt
+
+mkdir -p ~/src/lsoc_mesa
+cd ~/src
 git clone https://gitlab.freedesktop.org/mesa/drm.git
+
 cd drm
 mkdir build && cd build
-meson -Dbuildtype=release -Dprefix=/home/$USER/opt/lsoc_mesa ..
+meson -Dbuildtype=release -Dprefix=/home/$USER/src/lsoc_mesa ..
 ninja install
-export PKG_CONFIG_PATH=~/opt/lsoc_mesa/lib/x86_64-linux-gnu/pkgconfig/
-export VK_ICD_FILENAMES=/home/$USER/opt/lsoc_mesa/share/vulkan/icd.d/libresoc_icd.x86_64.json
+
+export PKG_CONFIG_PATH=~/src/lsoc_mesa/lib/x86_64-linux-gnu/pkgconfig/
+export VK_ICD_FILENAMES=/home/$USER/src/lsoc_mesa/share/vulkan/icd.d/libresoc_icd.x86_64.json
 export VK_LOADER_DEBUG=warn
 export LIBRESOC_TRACE=1
-cd ~/opt
+
+cd ~/src
 git clone https://git.libre-soc.org/git/mesa.git
 cd mesa
 git pull --rebase origin libresoc_dev
 git checkout -b libresoc_dev
 mkdir build && cd build
-meson -Dbuildtype=debug -Dprefix=/home/$USER/opt/lsoc_mesa -Dvulkan-drivers=libre-soc ..
+
+meson -Dbuildtype=debug -Dprefix=/home/$USER/src/lsoc_mesa \
+      -Dvulkan-drivers=libre-soc ..
 ninja install