Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ winget install Microsoft.VisualStudio.2022.BuildTools -e --source winget --silen

Restart your computer following this installation.

Note: Visual Studio versions 2013 (not for all projects), 2015, 2017, 2019, and 2022 are currently supported.
Note: Visual Studio versions 2013 (not for all projects), 2015, 2017, 2019, 2022, and 2026 are currently supported.

#### Install the Latest Python

Expand Down Expand Up @@ -167,7 +167,7 @@ With your admin PowerShell terminal:
choco install visualstudio2022-workload-vctools
```

Note: Visual Studio versions 2013 (not for all projects), 2015, 2017, 2019, and 2022 are currently supported.
Note: Visual Studio versions 2013 (not for all projects), 2015, 2017, 2019, 2022, and 2026 are currently supported.

#### Install the Latest Python

Expand Down
3 changes: 2 additions & 1 deletion gvsbuild/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class VsVer(str, Enum):
vs2017 = "15"
vs2019 = "16"
vs2022 = "17"
vs2026 = "18"


class WinSdkVersion(str, Enum):
Expand Down Expand Up @@ -208,7 +209,7 @@ def build(
export_dir: The directory to export the source archives to. It will be created. It creates an archive with the source code and any possible patch. Default is the build-dir\\export.
patches_root_dir: The directory where you checked out https://github.com/wingtk/gvsbuild.git. Default is the build-dir\\github\\gvsbuild.
tools_root_dir: The directory where to install the downloaded tools. Default is $(build-dir)\\tools.
vs_ver: Visual Studio version 12 (vs2013), 14 (vs2015), 15 (vs2017), 16 (vs2019), 17 (vs2022).
vs_ver: Visual Studio version 12 (vs2013), 14 (vs2015), 15 (vs2017), 16 (vs2019), 17 (vs2022), 18 (vs2026).
vs_install_path: The directory where you installed Visual Studio. Default is 'C:\\Program Files (x86)\\Microsoft Visual Studio $(vs-ver).0' (for vs-ver <= 14) or 'C:\\Program Files (x86)\\Microsoft Visual Studio\\20xx (2017 for vs-ver 15, 2019 for vs-ver 16, ...). If not set, the script look automatically under Professional, BuildTools, Enterprise, Community, and Preview sub directory until it finds the startup batch file.
win_sdk_ver: The Windows SDK version to use for building, used to initialize the Visual Studio build environment. It can be 8.1 (for windows 8 compatibility) or 10.0.xxxxx.0, where xxxxx, at the moment, can be 10150, 10240, 10586, 14393, 15063, 16299, 17134, or 17763 depending on the VS version / installation's options. If you don't specify one the scripts tries to locate the used one to pass the value to the msbuild command.
net_target_framework: .net target framework. If set then TargetFrameworks parameter is passed down to msbuild with the specific target. i.e net45.
Expand Down
1 change: 1 addition & 0 deletions gvsbuild/utils/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def __init__(self, opts):
"15": "vs2017",
"16": "vs2019",
"17": "vs2022",
"18": "vs2026",
}

self.vs_ver_year = vs_zip_parts.get(opts.vs_ver)
Expand Down