Skip to content

Commit

Permalink
Fix some warnings and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoffart committed Oct 22, 2024
1 parent 9d0cda3 commit de19664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions qttypes/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ fn detect_version_from_header(qt_include_path: &str, qt_library_path: &str) -> S
}

fn main() {
println!("cargo:rustc-check-cfg=cfg(no_qt)");
println!("cargo:rustc-check-cfg=cfg(qt_5_11,qt_5_12,qt_5_15,qreal_is_float)");

// Simple cfg!(target_* = "...") doesn't work in build scripts the way it does in crate's code.
// https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts
let cargo_target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
Expand Down
2 changes: 1 addition & 1 deletion qttypes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//! directory where the Qt headers and Qt libraries are installed.
//! - Otherwise you can specify a `QMAKE` environment variable with the absolute path of the
//! `qmake` executable which will be used to query these paths.
//! - If none of these environment variable is set, the `qmake` executable found in `$PATH`.
//! - If none of these environment variable is set, the `qmake6` or `qmake` executable found in `$PATH`.
//!
//! ## Philosophy
//!
Expand Down

0 comments on commit de19664

Please sign in to comment.