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/warp/ui/CMakeLists.txt | 6 +++++- plugins/warp/ui/plugin.cpp | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'plugins/warp/ui') diff --git a/plugins/warp/ui/CMakeLists.txt b/plugins/warp/ui/CMakeLists.txt index 88cc6a60..328289ac 100644 --- a/plugins/warp/ui/CMakeLists.txt +++ b/plugins/warp/ui/CMakeLists.txt @@ -19,7 +19,11 @@ set(CMAKE_AUTORCC ON) find_package(Qt6 COMPONENTS Core Gui Widgets REQUIRED) -add_library(${PROJECT_NAME} SHARED ${SOURCES} ${MOCS}) +if (DEMO) + add_library(${PROJECT_NAME} STATIC ${SOURCES} ${MOCS}) +else () + add_library(${PROJECT_NAME} SHARED ${SOURCES} ${MOCS}) +endif () target_include_directories(${PROJECT_NAME} PRIVATE ../api) diff --git a/plugins/warp/ui/plugin.cpp b/plugins/warp/ui/plugin.cpp index f3c1639b..79b6c9ff 100644 --- a/plugins/warp/ui/plugin.cpp +++ b/plugins/warp/ui/plugin.cpp @@ -247,13 +247,19 @@ extern "C" { BN_DECLARE_UI_ABI_VERSION +#ifndef DEMO_EDITION BINARYNINJAPLUGIN void CorePluginDependencies() { // We must have WARP to enable this plugin! AddRequiredPluginDependency("warp_ninja"); } +#endif +#ifdef DEMO_EDITION + bool WarpUIPluginInit() +#else BINARYNINJAPLUGIN bool UIPluginInit() +#endif { RegisterWarpFetchFunctionsCommand(); Sidebar::addSidebarWidgetType(new WarpSidebarWidgetType()); -- cgit v1.3.1