diff options
Diffstat (limited to 'extra/brotli/build')
-rwxr-xr-x | extra/brotli/build | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/extra/brotli/build b/extra/brotli/build new file mode 100755 index 00000000..3d8522d4 --- /dev/null +++ b/extra/brotli/build @@ -0,0 +1,20 @@ +#!/bin/sh -e + +export DESTDIR="$1" + +shared() { + LIBS=$1; shift + cmake -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF \ + -DBUILD_SHARED_LIBS="$LIBS" \ + "$@" + + cmake --build build + cmake --install build +} + +shared ON +shared OFF -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS -static" |