blob: 684cca437bc3ba37bb35b243b5b2c5b7aa189114 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
set -ev
if [ "$BUILD_MODE" = "static" ]; then
CFG_FLAGS="--disable-shared --via-amalgamation"
elif [ "$BUILD_MODE" = "shared" ]; then
CFG_FLAGS=""
elif [ "$BUILD_MODE" = "coverage" ]; then
# lcov gets confused by symlinks
CFG_FLAGS="--build-mode=coverage --link-method=copy"
elif [ "$BUILD_MODE" = "sanitizer" ]; then
CFG_FLAGS="--build-mode=sanitizer"
fi
if [ "$MODULES" = "min" ]; then
CFG_FLAGS="$CFG_FLAGS --no-autoload --enable-modules=base"
fi
$CXX --version
python configure.py $CFG_FLAGS --cc=$CC --cc-bin=$CXX --with-openssl --with-sqlite --with-zlib
make -j 2
if [ "$MODULES" != "min" ]; then
./botan-test
fi
|