From 343e972b7df57c67873002b9d1fc9f10894fc435 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 21 Jul 2022 18:57:57 -0400 Subject: [PATCH] Remove build.rs, move linker step to installer file --- build.rs | 3 --- src/installer.rs | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 build.rs diff --git a/build.rs b/build.rs deleted file mode 100644 index 7ab85b9..0000000 --- a/build.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - println!("cargo:rustc-link-lib=dylib=unshield"); -} diff --git a/src/installer.rs b/src/installer.rs index 85ab24a..667f10d 100644 --- a/src/installer.rs +++ b/src/installer.rs @@ -32,6 +32,7 @@ const GAME_COMPONENT_FILES: [&str; 1] = ["ffxivgame.ver"]; #[repr(C)] struct Unshield; +#[link(name = "unshield")] extern "C" { fn unshield_open(filename: *const c_char) -> *mut Unshield; fn unshield_close(unshield: *mut Unshield);