Split the frida handler to a separte handler and add a test

This commit is contained in:
Dimitris Zervas
2023-06-03 01:52:10 +03:00
parent 85c4aef520
commit 9180d62d67
12 changed files with 295 additions and 108 deletions

View File

@@ -35,4 +35,15 @@ fn main() {
println!("cargo:warning=Expected library name: {}-orig.dll", lib_name);
println!("cargo:rustc-env=LIB_NAME={}-orig.dll", lib_name);
}
// if env::var("PROFILE").unwrap() == "test" {
// cc::Build::new()
// .shared_flag(true)
// .static_flag(false)
// .cargo_metadata(false)
// .file("tests/mylib.c")
// .compile("mylib");
// println!("cargo:rustc-link-search=native={}/tests", env::var("OUT_DIR").unwrap());
// println!("cargo:rustc-link-lib=dylib=mylib");
// }
}