96-zix.sh 698 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/drobilla/zix.git"
  3. SCRIPT_COMMIT="336aad280221ce643255032e948acccc27e7204f"
  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. -Dbenchmarks=disabled
  15. -Dtests=disabled
  16. -Dtests_cpp=disabled
  17. )
  18. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  19. myconf+=(
  20. --cross-file=/cross.meson
  21. )
  22. else
  23. echo "Unknown target"
  24. return -1
  25. fi
  26. meson "${myconf[@]}" ..
  27. ninja -j"$(nproc)"
  28. ninja install
  29. }