forked from mirrors/gstreamer-rs
2f75087830
Useful to build a couple of plugins, including dtls. Related to gstreamer/gst-plugins-rs#346 Originally gstreamer/gstreamer!4607 but can't be merged yet due to x86 issue. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1264>
25 lines
843 B
Docker
25 lines
843 B
Docker
# escape=`
|
|
|
|
FROM "registry.freedesktop.org/gstreamer/gstreamer/amd64/windows:2022-12-10.0-main"
|
|
|
|
# Make sure any failure in PowerShell is fatal
|
|
ENV ErrorActionPreference='Stop'
|
|
SHELL ["powershell","-NoLogo", "-NonInteractive", "-Command"]
|
|
|
|
ARG DEFAULT_BRANCH="main"
|
|
ARG RUST_VERSION="invalid"
|
|
|
|
RUN choco install -y pkgconfiglite nasm llvm openssl
|
|
|
|
# https://stackoverflow.com/a/50716450
|
|
RUN setx PATH '%PATH%;C:\Program Files\NASM;C:\gst-install\bin'
|
|
ENV PKG_CONFIG_PATH="C:\gst-install\lib\pkgconfig"
|
|
|
|
COPY install_pango.ps1 install_gst.ps1 install_gtk.ps1 install_dav1d.ps1 C:\
|
|
RUN C:\install_pango.ps1
|
|
RUN C:\install_gst.ps1
|
|
RUN C:\install_gtk.ps1
|
|
RUN C:\install_dav1d.ps1
|
|
|
|
RUN Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile C:\rustup-init.exe
|
|
RUN C:\rustup-init.exe -y --profile minimal --default-toolchain $env:RUST_VERSION
|