.build.sh 571 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. set -ex
  3. mkdir -p build
  4. # Install libarchive and libmpg123 for host
  5. apt-get update
  6. apt-get -y install libarchive-dev libmpg123-dev
  7. # Install libarchive for 3ds
  8. git clone https://github.com/Cruel/3ds_portlibs.git
  9. cd 3ds_portlibs
  10. make libarchive
  11. make install
  12. # Install libmpg123 for 3ds
  13. wget -O libmpg123-dev.tar.gz https://notabug.org/attachments/216a6d61-f167-4f65-84dc-fa98c2247fc1
  14. tar -xaf libmpg123-dev.tar.gz -C $DEVKITPRO/portlibs/3ds
  15. cd ../build
  16. cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_EMULATOR=ON -DBUILD_TESTS=ON ..
  17. make -j4
  18. ../bin/freeshop-tests