aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/ci/build.sh
blob: c0c46a862731a72a45ee04d51a2e4c6b4f3ad6e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -ev

if [ "$BUILD_MODE" = "static" ]; then
    CFG_FLAGS="--disabled-shared --via-amalgamation"
elif [ "$BUILD_MODE" = "shared" ]; then
   CFG_FLAGS="--build-mode=shared"
elif [ "$BUILD_MODE" = "coverage" ]; then
   # lcov gets confused by symlinks
   CFG_FLAGS="--build-mode=coverage --link-method=copy"
fi

$CXX --version
python configure.py $CFG_FLAGS --cc=$CC --cc-bin=$CXX --with-openssl --with-sqlite --with-zlib
make
LD_LIBRARY_PATH=. ./botan-test