diff options
| author | Mason Reed <mason@vector35.com> | 2025-10-22 02:09:10 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-10-22 14:51:07 -0400 |
| commit | 551738c693b52b8c383eab629fbc9d81d04d4c4b (patch) | |
| tree | c2da8e1ebc3f69715ec8710f89f1c23241d4ac10 /plugins/warp/ui | |
| parent | 5ae046509bb7c5c0a5c338793ebc3902820ac9e7 (diff) | |
Add more plugins to free
Adds WARP, DWARF Import and Objective-C plugins to free
Diffstat (limited to 'plugins/warp/ui')
| -rw-r--r-- | plugins/warp/ui/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | plugins/warp/ui/plugin.cpp | 6 |
2 files changed, 11 insertions, 1 deletions
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()); |
