Rust-SDL2 / rust-sdl2

SDL2 bindings for Rust
MIT License
2.72k stars 467 forks source link

Use an environment variable to specify where is SDL2 libs located and how to link it #852

Open AregevDev opened 5 years ago

AregevDev commented 5 years ago

Hi, I am new to SDL2: I like how the openssl bindings handle custom library location, and I will be happy to see it coming to SDL2: Check an environment variable to detect SDL2 library and include location (IE: SDL2_DIR) and how to link the libraries (SDL2_STATIC)

Cobrand commented 5 years ago

For the include files with bindgen, I'm sure there is already a way to do that (specify where the headers should be taken from). More info here: https://github.com/Rust-SDL2/rust-sdl2#generating-sdl2-sys-with-bindgen

You can also use the feature pkg-config to automatically use what your OS would use (only available natively to Linux & Mac).

If you are talking about something else, I'll need more details then!