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-07-08 15:37:10 +00:00
|
|
|
SCRIPT_COMMIT="413b098564a90a2e6cae192d30642d33a9197a39"
|
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
|
|
|
|
}
|