-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
22 lines (22 loc) · 951 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ARG CLANG_VER
ARG UBUNTU_VER
FROM nemirtingas_compilation_base:ubuntu${UBUNTU_VER}_clang${CLANG_VER}
ARG MSVC_VER
ARG WINSDK_VER
ENV MSVC_BASE=/clang_windows_sdk/msvc
ENV MSVC_VER=${MSVC_VER}
ENV WINSDK_BASE=/clang_windows_sdk/winsdk
ENV WINSDK_VER=${WINSDK_VER}
ENV WindowsSdkDir="${WINSDK_BASE}/"
ENV WindowsSDKVersion="${WINSDK_VER}"
RUN cd / &&\
git clone https://github.com/Nemirtingas/clang-msvc-sdk clang_windows_sdk --depth=1 &&\
git clone https://github.com/Nemirtingas/windowscross_vcpkg "--branch=${MSVC_VER}" --depth=1 "${MSVC_BASE}_tmp" &&\
cd "${MSVC_BASE}" &&\
tar xzf "${MSVC_BASE}_tmp/"*.tgz &&\
rm -rf "${MSVC_BASE}_tmp" &&\
git clone https://github.com/Nemirtingas/windowscross_vcpkg "--branch=winsdk_${WINSDK_VER}" --depth=1 "${WINSDK_BASE}_tmp" &&\
cd "${WINSDK_BASE}" &&\
tar xzf "${WINSDK_BASE}_tmp/"*.tgz &&\
rm -rf "${WINSDK_BASE}_tmp" &&\
ln -s /clang_windows_sdk/powershell /usr/bin/