Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pkg-config library output for MSVC and enable Windows CI #406

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

amyspark
Copy link
Contributor

Hi @lu-zero ,

In #402 (comment) I mentioned that the pkg-config generator needed a bit more work for it to work with MSVC.

This PR converts the output of native-static-libs to match the expected format of pkg-config (-lfoo, instead of foo.lib). I've also added the needed bit for this to be tested in CI.

Let me know what you think.

src/build.rs Outdated Show resolved Hide resolved
@lu-zero
Copy link
Owner

lu-zero commented Sep 12, 2024

The code looks good, why msvc is unhappy though?

@amyspark
Copy link
Contributor Author

@lu-zero the pkg-config module requires -lfoo, but the test isn't aware of this and blindly applies it to the linker. I need to re-convert it to foo.lib.

@amyspark amyspark force-pushed the use-object-for-exports branch 3 times, most recently from 8ca5a34 to 59bff09 Compare September 12, 2024 16:41
src/build.rs Outdated Show resolved Hide resolved
@amyspark amyspark force-pushed the use-object-for-exports branch 7 times, most recently from f9edd87 to 5d4dd45 Compare September 12, 2024 20:27
Fixes pkg-config files being unusable for tools like Meson.
@amyspark amyspark force-pushed the use-object-for-exports branch 2 times, most recently from cc4fa94 to 06d8643 Compare September 12, 2024 20:56
Copy link
Owner

@lu-zero lu-zero left a comment

Choose a reason for hiding this comment

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

Thank you a lot!

@lu-zero lu-zero merged commit 42f53a0 into lu-zero:master Sep 13, 2024
17 checks passed
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