選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 

48 行
1.4 KiB

  1. TEMP_PATH="$(pwd)/winpath"
  2. set -e
  3. # Compile and build zlib
  4. if [ -d "zlib" ]; then
  5. cd zlib && git pull
  6. else
  7. git clone https://github.com/madler/zlib && cd zlib
  8. fi
  9. mkdir -p build && cd build
  10. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../../cmake/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$TEMP_PATH ..
  11. make -j4
  12. make install
  13. cd ../..
  14. # Clone and build ligpng
  15. if [ -d "libpng" ]; then
  16. cd libpng && git pull
  17. else
  18. git clone https://github.com/glennrp/libpng && cd libpng
  19. fi
  20. mkdir -p build && cd build
  21. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../../cmake/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$TEMP_PATH ..
  22. make -j4
  23. make install
  24. cd ../..
  25. # Download libsndfile
  26. if [ ! -d "libsndfile-1.0.29-win64" ]; then
  27. wget https://github.com/erikd/libsndfile/releases/download/v1.0.29/libsndfile-1.0.29-win64.zip
  28. unzip libsndfile-1.0.29-win64.zip
  29. fi
  30. cp "libsndfile-1.0.29-win64/bin/sndfile.dll" $TEMP_PATH/bin/sndfile.dll
  31. cp "libsndfile-1.0.29-win64/include/sndfile.h" $TEMP_PATH/include/sndfile.h
  32. cp "libsndfile-1.0.29-win64/lib/sndfile.lib" $TEMP_PATH/lib/sndfile.lib
  33. # Copy DLL's into root for CPack
  34. cp $TEMP_PATH/bin/*.dll ../
  35. # Build aptdec
  36. mkdir -p winbuild && cd winbuild
  37. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$TEMP_PATH ..
  38. make -j 4
  39. make package