-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild_deps_ubuntu.sh
More file actions
36 lines (28 loc) · 828 Bytes
/
Copy pathbuild_deps_ubuntu.sh
File metadata and controls
36 lines (28 loc) · 828 Bytes
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
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
which git > /dev/null || (echo "git not found; aborting..."; exit 1)
which cmake > /dev/null || (echo "cmake not found; aborting..."; exit 1)
pushd `dirname $0`
if [[ ! -d libfido2 ]]; then
git clone https://github.com/yubico/libfido2 --branch 1.16.0
fi
mkdir -p libfido2/build
pushd libfido2/build
if [[ ! -d libcbor ]]; then
git clone https://github.com/pjk/libcbor --branch v0.12.0
fi
mkdir -p libcbor/build
pushd libcbor/build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j8
echo "Need sudo rights to install libcbor..."
sudo make install
popd
echo "Need sudo rights to install apt-get packages..."
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev libudev-dev
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j8
echo "Need sudo rights to install libfido2..."
sudo make install
popd
popd