-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (19 loc) · 1023 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG COMPILER
FROM registry.gitlab.com/offa/docker-images/${COMPILER}:stable
RUN apt-get install -y --no-install-recommends pkg-config qt5-default libusb-1.0-0-dev && \
mkdir deps && cd deps && \
if [ "$(echo ${CXX} | cut -c -5)" = "clang" ]; then \
export CXXFLAGS="-stdlib=libc++" && \
if [ "${CXX}" = "clang++-5.0" ]; then \
echo "Installation of cxxabi.h and __cxxabi_config.h" && \
CXX_ABIURL=https://raw.githubusercontent.com/llvm-mirror/libcxxabi/master/include/ && \
curl -sSL ${CXX_ABIURL}/cxxabi.h -o /usr/include/c++/v1/cxxabi.h && \
curl -sSL ${CXX_ABIURL}/__cxxabi_config.h -o /usr/include/c++/v1/__cxxabi_config.h; \
fi \
fi && \
git clone --depth=1 https://github.com/google/googletest.git && \
cd googletest && \
mkdir build && cd build && \
cmake -DCMAKE_CXX_STANDARD=17 .. && \
make -j && make install && \
cd ../.. && rm -rf deps