From b2cb75abaaf9bab52e0e3d06a1cce59f1d9a68ed Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Wed, 1 Jul 2020 17:51:55 +0500 Subject: [PATCH] Update external libraries inside the chroots --- create_ubuntu_chroots.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/create_ubuntu_chroots.sh b/create_ubuntu_chroots.sh index e70a114..9226d49 100755 --- a/create_ubuntu_chroots.sh +++ b/create_ubuntu_chroots.sh @@ -69,8 +69,8 @@ create_build_scripts () { echo 'cd /opt/build_libs' >> $MAINDIR/prepare_chroot.sh echo 'wget -O sdl.tar.gz https://www.libsdl.org/release/SDL2-2.0.12.tar.gz' >> $MAINDIR/prepare_chroot.sh echo 'wget -O faudio.tar.gz https://github.com/FNA-XNA/FAudio/archive/20.06.tar.gz' >> $MAINDIR/prepare_chroot.sh - echo 'wget -O vulkan-loader.tar.gz https://github.com/KhronosGroup/Vulkan-Loader/archive/v1.2.141.tar.gz' >> $MAINDIR/prepare_chroot.sh - echo 'wget -O vulkan-headers.tar.gz https://github.com/KhronosGroup/Vulkan-Headers/archive/v1.2.141.tar.gz' >> $MAINDIR/prepare_chroot.sh + echo 'wget -O vulkan-loader.tar.gz https://github.com/KhronosGroup/Vulkan-Loader/archive/v1.2.145.tar.gz' >> $MAINDIR/prepare_chroot.sh + echo 'wget -O vulkan-headers.tar.gz https://github.com/KhronosGroup/Vulkan-Headers/archive/v1.2.145.tar.gz' >> $MAINDIR/prepare_chroot.sh echo 'wget -O spirv-headers.tar.gz https://github.com/KhronosGroup/SPIRV-Headers/archive/1.5.3.tar.gz' >> $MAINDIR/prepare_chroot.sh echo 'if [ -d /usr/lib/i386-linux-gnu ]; then wget -O wine.deb https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/main/binary-i386/wine-stable_4.0.3~bionic_i386.deb; fi' >> $MAINDIR/prepare_chroot.sh echo 'if [ -d /usr/lib/x86_64-linux-gnu ]; then wget -O wine.deb https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/main/binary-amd64/wine-stable_4.0.3~bionic_amd64.deb; fi' >> $MAINDIR/prepare_chroot.sh @@ -80,14 +80,16 @@ create_build_scripts () { echo 'tar xf vulkan-loader.tar.gz' >> $MAINDIR/prepare_chroot.sh echo 'tar xf vulkan-headers.tar.gz' >> $MAINDIR/prepare_chroot.sh echo 'tar xf spirv-headers.tar.gz' >> $MAINDIR/prepare_chroot.sh + echo 'export CFLAGS="-O2"' >> $MAINDIR/prepare_chroot.sh + echo 'export CXXFLAGS="-O2"' >> $MAINDIR/prepare_chroot.sh echo 'mkdir build && cd build' >> $MAINDIR/prepare_chroot.sh echo 'cmake ../SDL2-2.0.12 && make -j$(nproc) && make install' >> $MAINDIR/prepare_chroot.sh echo 'cd ../ && rm -r build && mkdir build && cd build' >> $MAINDIR/prepare_chroot.sh echo 'cmake ../FAudio-20.06 && make -j$(nproc) && make install' >> $MAINDIR/prepare_chroot.sh echo 'cd ../ && rm -r build && mkdir build && cd build' >> $MAINDIR/prepare_chroot.sh - echo 'cmake ../Vulkan-Headers-1.2.141 && make -j$(nproc) && make install' >> $MAINDIR/prepare_chroot.sh + echo 'cmake ../Vulkan-Headers-1.2.145 && make -j$(nproc) && make install' >> $MAINDIR/prepare_chroot.sh echo 'cd ../ && rm -r build && mkdir build && cd build' >> $MAINDIR/prepare_chroot.sh - echo 'cmake ../Vulkan-Loader-1.2.141 && make -j$(nproc) && make install' >> $MAINDIR/prepare_chroot.sh + echo 'cmake ../Vulkan-Loader-1.2.145 && make -j$(nproc) && make install' >> $MAINDIR/prepare_chroot.sh echo 'cd ../ && rm -r build && mkdir build && cd build' >> $MAINDIR/prepare_chroot.sh echo 'cmake ../SPIRV-Headers-1.5.3 && make -j$(nproc) && make install' >> $MAINDIR/prepare_chroot.sh echo 'cd ../ && dpkg -x wine.deb .' >> $MAINDIR/prepare_chroot.sh