45-brotli.sh 463 B

123456789101112131415161718
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/google/brotli.git"
  3. SCRIPT_COMMIT="664952333f675eb189b9d8dfefb1d33538cc41f6"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. mkdir build && cd build
  9. cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
  10. -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=OFF ..
  11. ninja -j$(nproc)
  12. ninja install
  13. }