tomassedovic / tcod-rs

Rust bindings for libtcod 1.6.3 (the Doryen library/roguelike toolkit)
Do What The F*ck You Want To Public License
229 stars 45 forks source link

Detect system-installed libtcod through pkg-config #300

Open ThibaultLemaire opened 4 years ago

ThibaultLemaire commented 4 years ago

Following discussion on #299, we should update the build.rs to use pkg-config to find libtcod and skip compiling it if it's already present on the system.

Here is how rust-sdl2 uses pkg-config to find the SDL2 library.