tsMuxer/rebuild_msys2.sh

41 lines
1.1 KiB
Bash
Raw Normal View History

2020-02-07 16:07:37 +03:00
#!/usr/bin/bash
2020-03-02 11:14:23 +03:00
cd ~
2020-02-07 16:07:37 +03:00
if [ "$MSYSTEM" == "MSYS" ] ; then
pacman -Syu
pacman -Sy --needed base-devel \
flex \
2020-02-08 23:41:06 +03:00
zlib-devel \
git
2020-03-01 20:20:01 +03:00
if [ ! -d tsmuxer ] ; then
git clone https://github.com/justdan96/tsMuxer.git
fi
2020-02-07 16:07:37 +03:00
else
2020-03-02 11:14:23 +03:00
cd tsmuxer
2020-02-07 16:07:37 +03:00
if [ ! -d build ] ; then
pacman -Sy --needed $MINGW_PACKAGE_PREFIX-toolchain \
$MINGW_PACKAGE_PREFIX-cmake \
$MINGW_PACKAGE_PREFIX-freetype \
$MINGW_PACKAGE_PREFIX-zlib \
$MINGW_PACKAGE_PREFIX-ninja
2020-03-01 20:20:01 +03:00
if [ ! -d $MINGW_PREFIX/qt5-static ] ; then
echo If you intend to build the tsMuxerGUI enter Y
pacman -S --needed $MINGW_PACKAGE_PREFIX-qt5-static
fi
2020-02-07 16:07:37 +03:00
if [ -d $MINGW_PREFIX/qt5-static ] ; then
echo 'load(win32/windows_vulkan_sdk)' > $MINGW_PREFIX/qt5-static/share/qt5/mkspecs/common/windows-vulkan.conf
echo 'QMAKE_LIBS_VULKAN =' >> $MINGW_PREFIX/qt5-static/share/qt5/mkspecs/common/windows-vulkan.conf
fi
mkdir build
fi
2020-02-08 23:41:06 +03:00
git pull
2020-02-08 23:42:27 +03:00
cd build
cmake ../ -G Ninja -DTSMUXER_STATIC_BUILD=true
2020-02-07 16:07:37 +03:00
ninja && cp -u tsMuxer/tsmuxer.exe ../bin/
if [ -d $MINGW_PREFIX/qt5-static ] ; then
$MINGW_PREFIX/qt5-static/bin/qmake ../tsMuxerGUI
2020-03-25 14:19:38 +03:00
make release && cp -u release/tsMuxerGUI.exe ../bin/
2020-02-07 16:07:37 +03:00
fi
cd ..
fi