2022-04-24 18:10:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-07-12 15:54:12 +00:00
|
|
|
SCRIPT_REPO="https://github.com/google/brotli.git"
|
2023-02-12 13:40:12 +00:00
|
|
|
SCRIPT_COMMIT="ed1995b6bda19244070ab5d331111f16f67c8054"
|
2022-04-24 18:10:44 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
2022-07-12 15:54:12 +00:00
|
|
|
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" brotli
|
2022-04-24 18:10:44 +00:00
|
|
|
cd brotli
|
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
2022-12-24 20:37:48 +00:00
|
|
|
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
|
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=OFF ..
|
2022-04-24 18:10:44 +00:00
|
|
|
ninja -j$(nproc)
|
|
|
|
ninja install
|
|
|
|
}
|