Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

Summary

Adds VCPKG port configuration to enable C++ package management integration. Users can now install ExecuTorch via vcpkg install executorch alongside traditional pip installation.

Port structure (ports/executorch/):

  • vcpkg.json - Manifest with 10 optional features (xnnpack, coreml, mps, vulkan, qnn, portable-ops, optimized-ops, quantized-ops, pybind, tests)
  • portfile.cmake - CMake-based build script using vcpkg_from_github, feature-conditional configuration, and standard install patterns
  • usage - CMake integration examples and target documentation
  • ../README.md - Maintenance guide for registry submission and version updates

Usage:

# Install core runtime
vcpkg install executorch

# Install with features
vcpkg install executorch[portable-ops,xnnpack]
find_package(ExecuTorch CONFIG REQUIRED)
target_link_libraries(main PRIVATE executorch extension_module portable_ops_lib)

Static linkage only. SHA512 hash placeholder (0) requires update on first build. No modifications to existing build system.

Test plan

Manual verification of port file structure and CMake configuration logic. Code review and CodeQL passed with no issues. Actual VCPKG installation testing requires copying port to VCPKG installation directory and updating SHA512 hash.

Original prompt

This section details on the original issue you should resolve

<issue_title>Create VCPKG port</issue_title>
<issue_description>### 🚀 The feature, motivation and pitch

For better integration into my projects, I would like to use an official VCPKG port. It brings the benefits of easier installation and updating of the package.
For example, some people working on a project use the library on different devices, then a quick setup of vcpkg (most times integrated into IDE, so effectivly no setup) is only needed to get the correct version. That is exactly my case and why I would like such a port.

If not wanted, please tell me. I will then close this issue.

If anyone is interested to do this, 2 steps need to be executed.
I would also create the port, though I am not experienced.

If a port is created, someone, possibly me, would have to do updates every time a new release is out.

https://learn.microsoft.com/de-de/vcpkg/get_started/get-started-packaging
https://learn.microsoft.com/de-de/vcpkg/get_started/get-started-adding-to-registry

Alternatives

No response

Additional context

No response

RFC (Optional)

No response</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@pytorch-bot
Copy link

pytorch-bot bot commented Jan 20, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/16713

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 20, 2026
@github-actions
Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Copilot AI and others added 2 commits January 20, 2026 18:10
Co-authored-by: kirklandsign <107070759+kirklandsign@users.noreply.github.com>
Co-authored-by: kirklandsign <107070759+kirklandsign@users.noreply.github.com>
Copilot AI changed the title [WIP] Create VCPKG port Add VCPKG port for C++ package management Jan 20, 2026
Copilot AI requested a review from kirklandsign January 20, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create VCPKG port

2 participants