rust-lang / pkg-config-rs

Build library for invoking pkg-config for Rust
https://docs.rs/pkg-config
Apache License 2.0
173 stars 79 forks source link

Placing pkg-config.exe file to this git if possible #130

Open imxood opened 2 years ago

imxood commented 2 years ago

For windows system, is it possible to put a pkg-config.exe file on this git? When building on windows, you can select the exe file to use according to the environment variable PKG_CONFIG, if there is no such environment variable, use the exe placed on git ? No need for users to find this program by themselves, and the exe file is not big

elmarco commented 2 years ago

Probably better to build/install as needed, as #103 suggest. Other option would be to reimplement pkg-config in rust and drop the need for an extra executable ;)

imxood commented 2 years ago

Probably better to build/install as needed, as #103 suggest. Other option would be to reimplement pkg-config in rust and drop the need for an extra executable ;)

It willl be good~

Be-ing commented 2 years ago

Other option would be to reimplement pkg-config in rust and drop the need for an extra executable ;)

I have another idea: compile the pkgconf library (different from pkg-config!) with the cc crate, create Rust bindings for it, and use those in this crate. That would make it simple to use this crate reliably across platforms.