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-06-21 11:43:28 +00:00
|
|
|
SCRIPT_COMMIT="1d8452b783dafd7e2acc0914919d38d46b861765"
|
2022-04-24 18:10:44 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerbuild() {
|
2023-06-18 19:25:50 +00:00
|
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
2022-04-24 18:10:44 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|