From 70fa4dc62fa580f198a9b102eb800e8c5e988d1b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 27 Jun 2024 20:40:34 -0400 Subject: [PATCH] Bring back usage of system-deps --- Cargo.toml | 6 ++++++ build.rs | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0f5a86f..b408ff4 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,6 +23,12 @@ name = "retail_benchmark" harness = false required-features = ["retail_game_testing"] +[build-dependencies] +system-deps = "7" + +[package.metadata.system-deps] +libunshield = { version = "1.4", feature = "game_install" } + [dev-dependencies] hmac-sha512 = "1" diff --git a/build.rs b/build.rs index 0c9e8e3..36238e0 100644 --- a/build.rs +++ b/build.rs @@ -2,6 +2,5 @@ // SPDX-License-Identifier: GPL-3.0-or-later fn main() { - #[cfg(feature = "game_install")] - println!("cargo::rustc-link-lib=unshield"); + system_deps::Config::new().probe().unwrap(); }