You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

47 lines
1.3 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/libsndfile-1.dll
  31. cp "libsndfile-1.0.29-win64/include/sndfile.h" $TEMP_PATH/include/sndfile.h
  32. # Copy DLL's into root for CPack
  33. cp $TEMP_PATH/bin/*.dll ../
  34. mv ../libsndfile-1.dll ../sndfile.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