blob: 3d8522d4eeb5d6366868c7d1394031586d9bfdae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"
|