123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/bash
- SCRIPT_REPO="https://github.com/drobilla/zix.git"
- SCRIPT_COMMIT="336aad280221ce643255032e948acccc27e7204f"
- ffbuild_enabled() {
- return 0
- }
- ffbuild_dockerbuild() {
- mkdir build && cd build
- local myconf=(
- --prefix="$FFBUILD_PREFIX"
- --buildtype=release
- --default-library=static
- -Ddocs=disabled
- -Dbenchmarks=disabled
- -Dtests=disabled
- -Dtests_cpp=disabled
- )
- if [[ $TARGET == win* || $TARGET == linux* ]]; then
- myconf+=(
- --cross-file=/cross.meson
- )
- else
- echo "Unknown target"
- return -1
- fi
- meson "${myconf[@]}" ..
- ninja -j"$(nproc)"
- ninja install
- }
|