1#!/bin/sh -eux 2 3# Copyright (c) 2022 Yubico AB. All rights reserved. 4# Use of this source code is governed by a BSD-style 5# license that can be found in the LICENSE file. 6# SPDX-License-Identifier: BSD-2-Clause 7 8export PKG_CONFIG_PATH="$(brew --prefix openssl@3.0)/lib/pkgconfig" 9SCAN="$(brew --prefix llvm)/bin/scan-build" 10 11# Build, analyze, and install libfido2. 12for T in Debug Release; do 13 mkdir build-$T 14 (cd build-$T && ${SCAN} cmake -DCMAKE_BUILD_TYPE=$T ..) 15 ${SCAN} --status-bugs make -j"$(sysctl -n hw.ncpu)" -C build-$T 16 make -C build-$T man_symlink_html 17 make -C build-$T regress 18 sudo make -C build-$T install 19done 20