Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

build_windows.bat 1.1 KiB

123456789101112131415161718192021222324252627282930313233343536
  1. # Build using Visual Studio 2019 on Windows
  2. # Additional tools needed: git, cmake and ninja
  3. # Build zlib
  4. git clone https://github.com/madler/zlib
  5. cd zlib
  6. mkdir build
  7. cd build
  8. cmake -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DMSVC_TOOLSET_VERSION=190 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../../winpath ..
  9. ninja install
  10. cd ../../
  11. # Build libpng
  12. git clone https://github.com/glennrp/libpng
  13. cd libpng
  14. mkdir build
  15. cd build
  16. cmake -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DMSVC_TOOLSET_VERSION=190 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../../winpath ..
  17. ninja install
  18. cd ../..
  19. # Build libsndfile - Could build Vorbis, FLAC and Opus first for extra support
  20. git clone https://github.com/libsndfile/libsndfile.git
  21. cd libsndfile
  22. mkdir build
  23. cd build
  24. cmake -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DMSVC_TOOLSET_VERSION=190 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../../winpath ..
  25. ninja install
  26. cd ../..
  27. # Build aptdec
  28. mkdir winbuild
  29. cd winbuild
  30. cmake -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DMSVC_TOOLSET_VERSION=190 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../winpath ..
  31. ninja install
  32. cd ../..