Skip to content

Instantly share code, notes, and snippets.

@bfierz
bfierz / WinMsvc.cmake
Last active November 8, 2023 20:04
Windows MSVC tool chain file for CMake to build on Windows with MSVC and Ninja without Visual Studio installed. The original comes from the LLVM project and is modified work with MSVC instead of clang-cl
# Cross toolchain configuration for using clang-cl on non-Windows hosts to
# target MSVC.
#
# Usage:
# cmake -G Ninja
# -DCMAKE_TOOLCHAIN_FILE=/path/to/this/file
# -DHOST_ARCH=[aarch64|arm64|armv7|arm|i686|x86|x86_64|x64]
# -DSYSROOT=/path/to/win/sysroot
# -DMSVC_VER=vc tools version folder name
# -DWINSDK_VER=windows sdk version folder name
@bfierz
bfierz / BuildFFmpeg.md
Last active January 22, 2019 14:59 — forked from RangelReale/gist:3e6392289d8ba1a52b6e70cdd7e10282
How to compile FFmpeg with open264 and nvenc using MSVC