您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

37 行
1.1 KiB

  1. REM Build using Visual Studio 2019 on Windows
  2. REM Additional tools needed: git, cmake and ninja
  3. REM 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. REM 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. REM Build libsndfile - Could build Vorbis, FLAC and Opus first for extra support
  20. git clone https://github.com/libsndfile/libsndfile
  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. REM 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 ..