Skip to content

Cross Platform C++ SDK#683

Open
nenad1002 wants to merge 9 commits intomainfrom
nebanfic/cross-platform-cpp
Open

Cross Platform C++ SDK#683
nenad1002 wants to merge 9 commits intomainfrom
nebanfic/cross-platform-cpp

Conversation

@nenad1002
Copy link
Copy Markdown
Contributor

@nenad1002 nenad1002 commented Apr 30, 2026

Tested build on Windows & Linux, cannot on MacOS as I'm currently not in a possession of one

Copilot AI review requested due to automatic review settings April 30, 2026 15:04
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
foundry-local Ready Ready Preview, Comment May 1, 2026 1:00am

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables the C++ SDK to build beyond Windows by removing Windows-only dependencies and introducing cross-platform shared-library loading for the Core interop layer.

Changes:

  • Remove WIL from the C++ SDK’s vcpkg/CMake dependencies and replace WIL-based module path resolution.
  • Implement cross-platform dynamic library loading (LoadLibraryW / dlopen) and symbol lookup (GetProcAddress / dlsym) in Core interop.
  • Update CMake presets to consistently use the vcpkg toolchain file and link dl where needed on Unix-like platforms.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
sdk/cpp/vcpkg.json Drops the Windows-only wil dependency from the vcpkg manifest.
sdk/cpp/src/flcore_native.h Makes function pointer calling convention portable via a platform macro.
sdk/cpp/src/core.h Reworks Core shared-library loading and executable-dir discovery for Windows/Linux/macOS.
sdk/cpp/CMakePresets.json Adds vcpkg toolchainFile wiring for Windows/Linux/macOS configure presets.
sdk/cpp/CMakeLists.txt Removes Windows-only build guard, removes WIL linkage, and links ${CMAKE_DL_LIBS} on Unix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sdk/cpp/src/core.h Outdated
Comment thread sdk/cpp/src/flcore_native.h
Comment thread sdk/cpp/CMakeLists.txt
Comment thread sdk/cpp/src/core.h Outdated
Comment thread sdk/cpp/src/core.h Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sdk/cpp/src/core.h
Comment thread sdk/cpp/src/core.h
Comment thread sdk/cpp/src/core.h Outdated
Comment thread sdk/cpp/src/core.h Outdated
Comment thread sdk/cpp/sample/main.cpp Outdated
Comment thread sdk/cpp/sample/main.cpp
Comment thread sdk/cpp/src/foundry_local_manager.cpp Outdated
Comment thread sdk/cpp/include/model.h
Comment thread sdk/cpp/include/foundry_local_manager.h Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sdk/cpp/include/foundry_local_manager.h
Comment thread sdk/cpp/CMakeLists.txt Outdated
Comment thread sdk/cpp/sample/main.cpp
Comment thread sdk/cpp/src/core.h
Comment thread sdk/cpp/include/model.h
skottmckay
skottmckay previously approved these changes Apr 30, 2026
Comment thread sdk/cpp/src/foundry_local_manager.cpp Outdated
Comment thread sdk/cpp/src/core.h Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants