25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
1.1 KiB

  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 ../..