windows_supportAPI docs @0.1.1

@windows_support//windows:extensions.bzl

Extensions for bzlmod.

Exposes in repositories a Microsoft Windows SDK or a MSVC runtime headers and libraries.

Module Extensions

msvc_runtime

MSVC runtime extension.

Tag Classes
configure
AttributeTypeDescription
architectureslist of strings

Architectures to extract from the resolved MSVC runtime components

Default: ["x64", "arm64"]
msvc_versionstring

Required expected MSVC tools version. Only files under Contents/VC/Tools/MSVC/<msvc_version> are extracted.

Default: ""
installer_manifest_urlstring

URL of the resolved/specified Visual Studio installer manifest

Default: ""
installer_manifest_integritystring

Optional integrity of the resolved/specified Visual Studio installer manifest

Default: ""
installer_manifest_sha256string

Optional integrity (as sha256 hash) of the resolved/specified Visual Studio installer manifest

Default: ""
visual_studio_channel_urlstring

Visual Studio release channel URL used to resolve the installer manifest, use visual_studio_installer_manifest_url and visual_studio_installer_manifest_integrity for reproducibility instead

Default: "https://aka.ms/vs/stable/channel"
visual_studio_installer_manifest_urlstring

Override URL for the Visual Studio installer manifest, if set the installer manifest will not be resolved from a query to visual_studio_channel_url

Default: ""
visual_studio_installer_manifest_integritystring

Optional SRI integrity for the downloaded Visual Studio installer manifest.

Default: ""
windows_sdk

Windows SDK extension backed by public NuGet packages.

Tag Classes
configure
AttributeTypeDescription
architectureslist of strings

Architectures of the Windows SDK to download additionally to the base

Default: ["x64", "arm64"]
windows_sdk_versionstring

Windows SDK NuGet package version, e.g. 10.0.26100.7705

Default: ""
windows_sdk_integritydictionary: String → String

(optional) dict from Windows SDK NuGet package ID to integrity string

Default: {}
transformationsdictionary: String → String

Dict of source path patterns to transformations applied when run on case-sensitive filesystems.

Supports exact paths and **/*.ext patterns. Use value lowercase to create lowercase aliases.

Example:

transformations = {
    "base/c/Include/10.0.26100.0/shared/driverspecs.h": "base/c/Include/10.0.26100.0/shared/DriverSpecs.h",
    "base/c/Include/10.0.26100.0/shared/specstrings.h": "base/c/Include/10.0.26100.0/shared/SpecStrings.h",
    "base/c/Include/10.0.26100.0/um/ole2.h": "base/c/Include/10.0.26100.0/um/Ole2.h",
    "base/c/Include/10.0.26100.0/um/olectl.h": "base/c/Include/10.0.26100.0/um/OleCtl.h",
    "**/*.h": "lowercase",
    "**/*.lib": "lowercase",
    "**/*.Lib": "lowercase",
}
Default: {}

@windows_support//windows:repositories.bzl

Declare runtime dependencies

These are needed for local dev, and users must install them as well.
See https://docs.bazel.build/versions/main/skylark/deploying.html#dependencies

Functions & Macros

http_archive
Parameters
*name
kwargs
windows_dependencies