Repository navigation
cmake: include static backend dependencies in pkg-config files - #861
BillyONeal wants to merge 3 commits into
Conversation
Keep the generic and backend-specific modules in sync so pkg-config --static reports the libraries used by the selected backend. Only declare a libusb module dependency when discovery used pkg-config; a parent-provided CMake target may not install a module. Assisted-by: github-copilot:gpt-6.2-sol
Keep the shared templates compatible with config.status so the Cflags line and existing FreeBSD private requirements survive. Substitute an empty value for the CMake-specific private linker field in Autotools. Assisted-by: github-copilot:gpt-6.2-sol
|
Should I assume with this chaneg no more patches would be required for vcpkg integration? |
I looked at the port to answer this myself: not quite. microsoft/vcpkg#55112 is merged, and
The second one is not vcpkg-specific. With this PR alone, a static Drafted with Claude Code. |
|
A few more findings:
I withdraw my original recommendation due to: https://github.com/libusb/hidapi/blob/master/BUILD.cmake.md#both-shared-and-static-build - with the gating that scenario will be partially broken anyway, so let keep the current behavior.
Maybe we want to include that into this PR as well. |
That patch currently depends on vcpkg-specific behavior also added in that PR: https://github.com/microsoft/vcpkg/pull/55112/changes#diff-becfb4bd8e99dbcf5efc09dc3ecc229c89fd2f42f5403670f0803d6db48a523fR17-R24 It's not 100% clear to me what would be safe to apply about these iconv bits unconditionally here. Of course we always prefer to have fewer patches :) |
|
The check failure is:
It looks like that is from GitHub changing the version of msvc under you rather than something changed in this PR. |
Don't worry about that, I'll fix it separately and it will not block this PR from merging. |
This PR is due to pointing code review bots at the vcpkg submission: microsoft/vcpkg#55112 Against that submission, GPT 6.2 Sol notes:
GPT 6.2 Sol wrote these changes to fix those problems. About these changes, it notes:
Assisted-by: github-copilot:gpt-6.2-sol