45-brotli.sh 463 B

123456789101112131415161718
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/google/brotli.git"
  3. SCRIPT_COMMIT="841f672884d2d67aae9dcf4725860aafadc5da2b"
  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. }