97-sord.sh 665 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/drobilla/sord.git"
  3. SCRIPT_COMMIT="af0663da39d5526b081ab6a6c791240958c7032d"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. mkdir build && cd build
  9. local myconf=(
  10. --prefix="$FFBUILD_PREFIX"
  11. --buildtype=release
  12. --default-library=static
  13. -Ddocs=disabled
  14. -Dtools=disabled
  15. -Dtests=disabled
  16. )
  17. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  18. myconf+=(
  19. --cross-file=/cross.meson
  20. )
  21. else
  22. echo "Unknown target"
  23. return -1
  24. fi
  25. meson "${myconf[@]}" ..
  26. ninja -j"$(nproc)"
  27. ninja install
  28. }