Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

53 lignes
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. buildtype="Debug"
  36. if [[ "$1" == "Release" ]]; then
  37. buildtype="Release"
  38. fi
  39. # Build aptdec
  40. mkdir -p winbuild && cd winbuild
  41. cmake -DCMAKE_BUILD_TYPE=$buildtype -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$TEMP_PATH ..
  42. make -j 4
  43. make package