|
@@ -1,36 +1,38 @@ |
|
|
REM Build using MSVC on Windows
|
|
|
REM Build using MSVC on Windows
|
|
|
REM Requires: git, cmake and ninja
|
|
|
REM Requires: git, cmake and ninja
|
|
|
|
|
|
REM You need to run vcvars before running this
|
|
|
|
|
|
|
|
|
REM Build zlib
|
|
|
REM Build zlib
|
|
|
IF NOT EXIST zlib (
|
|
|
IF NOT EXIST zlib (
|
|
|
git clone -b v1.2.13 https://github.com/madler/zlib
|
|
|
|
|
|
|
|
|
git clone --depth 1 -b v1.2.13 https://github.com/madler/zlib
|
|
|
cd zlib
|
|
|
cd zlib
|
|
|
cmake -B build -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DMSVC_TOOLSET_VERSION=190 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../winpath
|
|
|
|
|
|
cmake --build build -j4
|
|
|
|
|
|
|
|
|
cmake -B build -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../winpath
|
|
|
|
|
|
cmake --build build -j%NUMBER_OF_PROCESSORS%
|
|
|
cmake --build build --target install
|
|
|
cmake --build build --target install
|
|
|
cd ..
|
|
|
cd ..
|
|
|
)
|
|
|
)
|
|
|
|
|
|
|
|
|
REM Build libpng
|
|
|
REM Build libpng
|
|
|
IF NOT EXIST libpng (
|
|
|
IF NOT EXIST libpng (
|
|
|
git clone -b v1.6.39 https://github.com/glennrp/libpng
|
|
|
|
|
|
|
|
|
git clone --depth 1 -b v1.6.39 https://github.com/glennrp/libpng
|
|
|
cd libpng
|
|
|
cd libpng
|
|
|
cmake -B build -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DMSVC_TOOLSET_VERSION=190 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../winpath -DPNG_STATIC=OFF -DPNG_EXECUTABLES=OFF -DPNG_TESTS=OFF
|
|
|
|
|
|
cmake --build build -j4
|
|
|
|
|
|
|
|
|
cmake -B build -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../winpath -DPNG_STATIC=OFF -DPNG_EXECUTABLES=OFF -DPNG_TESTS=OFF
|
|
|
|
|
|
cmake --build build -j%NUMBER_OF_PROCESSORS%
|
|
|
cmake --build build --target install
|
|
|
cmake --build build --target install
|
|
|
cd ..
|
|
|
cd ..
|
|
|
)
|
|
|
)
|
|
|
|
|
|
|
|
|
REM Build libsndfile, only with WAV support
|
|
|
REM Build libsndfile, only with WAV support
|
|
|
IF NOT EXIST libsndfile (
|
|
|
IF NOT EXIST libsndfile (
|
|
|
git clone -b 1.2.0 https://github.com/libsndfile/libsndfile
|
|
|
|
|
|
|
|
|
git clone --depth 1 -b 1.2.0 https://github.com/libsndfile/libsndfile
|
|
|
cd libsndfile
|
|
|
cd libsndfile
|
|
|
cmake -B build -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DMSVC_TOOLSET_VERSION=190 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../winpath -BUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -DBUILD_PROGRAMS=OFF
|
|
|
|
|
|
cmake --build build -j4
|
|
|
|
|
|
|
|
|
cmake -B build -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../winpath -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -DBUILD_PROGRAMS=OFF
|
|
|
|
|
|
cmake --build build -j%NUMBER_OF_PROCESSORS%
|
|
|
cmake --build build --target install
|
|
|
cmake --build build --target install
|
|
|
cd ..
|
|
|
cd ..
|
|
|
)
|
|
|
)
|
|
|
|
|
|
|
|
|
REM Build aptdec
|
|
|
REM Build aptdec
|
|
|
cmake -B winbuild -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DMSVC_TOOLSET_VERSION=190 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../winpath
|
|
|
|
|
|
cmake --build winbuil -j4
|
|
|
|
|
|
|
|
|
cmake -B winbuild -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../winpath
|
|
|
|
|
|
cmake --build winbuild -j%NUMBER_OF_PROCESSORS%
|
|
|
|
|
|
cmake --build winbuild --target package
|