Billy O'NealandCopilot 3d9636b062 Match xbox expressions to CMake definitions (#2124)
While documenting the Apple platform expression added for #2121 in
MicrosoftDocs/vcpkg-docs#612, the platform-expression reference exposed
that the existing xbox identifier did not match `VCPKG_TARGET_IS_XBOX`.

The CMake definition recognizes Xbox only for the desktop Windows system
name (empty or undefined) with a non-empty `VCPKG_XBOX_CONSOLE_TARGET`.
Platform expressions previously checked only the console target, so UWP
and unrelated target systems could incorrectly satisfy xbox.

Apply both conditions and cover missing, empty, desktop Windows, UWP,
and non-Windows system-name cases.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a19bbe2f-47e6-474d-be82-2550f8a1aafa
2026-09-17 14:43:38 -07:00
2023-11-27 15:02:21 -08:00
2023-11-27 15:02:21 -08:00

Vcpkg: Overview

中文总览 Español 한국어 Français

Vcpkg helps you manage C and C++ libraries on Windows, Linux and MacOS. This tool and ecosystem are constantly evolving, and we always appreciate contributions!

Please see the main repository https://github.com/microsoft/vcpkg for all feature discussion, issue tracking, and edits to which libraries are available.

Vcpkg-tool: Overview

This repository contains the contents formerly at https://github.com/microsoft/vcpkg in the "toolsrc" tree, and build support.

Contributing

Please refer to the "contributing" section of the main README.md.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or email opencode@microsoft.com with any additional questions or comments.

Windows Contributing Prerequisites

  • Install Visual Studio and the C++ workload
  • Install Node.JS by downloading a 16.x copy from https://nodejs.org/en/
  • npm install -g @microsoft/rush

Ubuntu 22.04 Contributing Prerequisites

curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt update
sudo apt install nodejs cmake ninja-build gcc build-essential git zip unzip
sudo npm install -g @microsoft/rush

License

The product code in this repository is licensed under the MIT License. The tests contain 3rd party code as documented in NOTICE.txt.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Telemetry

vcpkg collects usage data in order to help us improve your experience. The data collected by Microsoft is anonymous. You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics, passing --disable-metrics to vcpkg on the command line, or by setting the VCPKG_DISABLE_METRICS environment variable.

Read more about vcpkg telemetry at https://learn.microsoft.com/vcpkg/about/privacy.

Read the Microsoft Privacy Statement at https://go.microsoft.com/fwlink/?LinkId=521839.

Languages
C++ 53.6%
JSON-with-Comments 31.6%
TypeScript 5.2%
PowerShell 5.2%
C 2.9%
Other 1.4%