From 551738c693b52b8c383eab629fbc9d81d04d4c4b Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 22 Oct 2025 02:09:10 -0400 Subject: Add more plugins to free Adds WARP, DWARF Import and Objective-C plugins to free --- plugins/workflow_objc/demo/Cargo.toml | 21 +++++++++++++++++++++ plugins/workflow_objc/demo/build.rs | 15 +++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 plugins/workflow_objc/demo/Cargo.toml create mode 100644 plugins/workflow_objc/demo/build.rs (limited to 'plugins/workflow_objc/demo') diff --git a/plugins/workflow_objc/demo/Cargo.toml b/plugins/workflow_objc/demo/Cargo.toml new file mode 100644 index 00000000..bb7f41fa --- /dev/null +++ b/plugins/workflow_objc/demo/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "workflow_objc-static" +version = "0.1.0" +edition = "2021" +license = "BSD-3-Clause" + +[lib] +crate-type = ["staticlib"] +path = "../src/lib.rs" + +[features] +demo = [] + +[dependencies] +binaryninja = { workspace = true, features = ["demo"] } +binaryninjacore-sys.workspace = true +log = "0.4" +dashmap = { version = "6.1", features = ["rayon"]} +once_cell = "1.20" +thiserror = "2.0" +bstr = "1.12" diff --git a/plugins/workflow_objc/demo/build.rs b/plugins/workflow_objc/demo/build.rs new file mode 100644 index 00000000..ed6cec7d --- /dev/null +++ b/plugins/workflow_objc/demo/build.rs @@ -0,0 +1,15 @@ +fn main() { + let link_path = std::env::var_os("DEP_BINARYNINJACORE_PATH") + .expect("DEP_BINARYNINJACORE_PATH not specified"); + + println!("cargo::rustc-link-lib=dylib=binaryninjacore"); + println!("cargo::rustc-link-search={}", link_path.to_str().unwrap()); + + #[cfg(not(target_os = "windows"))] + { + println!( + "cargo::rustc-link-arg=-Wl,-rpath,{0},-L{0}", + link_path.to_string_lossy() + ); + } +} -- cgit v1.3.1