← source index

build-test.sh

19 lines  ·  497 B  ·  bash
EXTRA=""
if command -v brew >/dev/null 2>&1; then
    EXTRA="-I$(brew --prefix boost)/include \
        -I$(brew --prefix openssl@3)/include \
        -L$(brew --prefix boost)/lib \
        -L$(brew --prefix openssl@3)/lib"
fi
echo "Building the feed handler tests..."
g++ -std=c++17 -Wall -O2 -g -o bin/tests \
    test/*.cpp \
    src/*.cpp \
    build/test/*.o \
    build/app/*.o \
    -Idep/catch2 \
    -Idep/simdjson-4.6.10 \
    -Idep/websockets \
    $EXTRA \
    -lssl -lcrypto -pthread