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/src/lib.rs | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'plugins/workflow_objc/src') diff --git a/plugins/workflow_objc/src/lib.rs b/plugins/workflow_objc/src/lib.rs index d877301a..8c859c6b 100644 --- a/plugins/workflow_objc/src/lib.rs +++ b/plugins/workflow_objc/src/lib.rs @@ -10,17 +10,7 @@ use metadata::GlobalState; use log::LevelFilter; -#[no_mangle] -#[allow(non_snake_case)] -pub extern "C" fn CorePluginDependencies() { - add_optional_plugin_dependency("arch_x86"); - add_optional_plugin_dependency("arch_armv7"); - add_optional_plugin_dependency("arch_arm64"); -} - -#[no_mangle] -#[allow(non_snake_case)] -pub extern "C" fn CorePluginInit() -> bool { +fn plugin_init() -> bool { Logger::new("Plugin.Objective-C") .with_level(LevelFilter::Debug) .init(); @@ -46,3 +36,26 @@ pub extern "C" fn CorePluginInit() -> bool { true } + +#[no_mangle] +#[allow(non_snake_case)] +#[cfg(not(feature = "demo"))] +pub extern "C" fn CorePluginDependencies() { + add_optional_plugin_dependency("arch_x86"); + add_optional_plugin_dependency("arch_armv7"); + add_optional_plugin_dependency("arch_arm64"); +} + +#[no_mangle] +#[allow(non_snake_case)] +#[cfg(not(feature = "demo"))] +pub extern "C" fn CorePluginInit() -> bool { + plugin_init() +} + +#[no_mangle] +#[allow(non_snake_case)] +#[cfg(feature = "demo")] +pub extern "C" fn WorkflowObjcPluginInit() -> bool { + plugin_init() +} -- cgit v1.3.1