build.sh 490 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. echo 'Cloning raylib'
  3. git clone https://github.com/quantumde1/raylib
  4. echo 'Cloning hpff'
  5. git clone https://github.com/quantumde1/hpff
  6. echo 'Building raylib'
  7. cd raylib/src && make -j$(nproc) PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED
  8. cp ./*.so.* ../../
  9. cd ../../
  10. echo 'Building hpff'
  11. cd hpff/ && ./build.sh && cp ./libhpff.so ../
  12. cd ../
  13. case "$1" in
  14. "release")
  15. dub build --build=release
  16. ;;
  17. *)
  18. echo 'building debug'
  19. dub build
  20. ;;
  21. esac