← source index

build-fh.sh

16 lines  ·  466 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..."
g++ -std=c++17 -Wall -O2 -g -o bin/CoinbaseTickerStatsWebsocket \
    main.cpp src/*.cpp \
    build/app/*.o \
    -Idep/simdjson-4.6.10 \
    -Idep/websockets \
    $EXTRA \
    -lssl -lcrypto -pthread