X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=lsoc-mesa-dev-env-setup;h=f40bb6a6c7320e42d0c971e76d9cd1de954d505f;hb=accbe682b76ab64036bccd6f6d2bdcae62feb895;hp=2439580dc09e2240213a0d3418348e68e21520ff;hpb=937953788f874dd9232b3a9bce5f25a7280e8fda;p=dev-env-setup.git diff --git a/lsoc-mesa-dev-env-setup b/lsoc-mesa-dev-env-setup index 2439580..f40bb6a 100755 --- a/lsoc-mesa-dev-env-setup +++ b/lsoc-mesa-dev-env-setup @@ -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