From ee500220baa1a46f3d7ca1486fa43dc1587f20d0 Mon Sep 17 00:00:00 2001 From: WeiN76LQh Date: Fri, 3 Jan 2025 17:55:10 +0000 Subject: [ObjC] Create a shared ObjC processor for Macho and DSC views Both the Macho and DSC views need to process Objective-C but have separate processor classes. It would appear that the DSC version was largely a copy and paste of the Macho view one, with some modifications. The majority of code overlaps between the 2 so it doesn't make sense to maintain 2 and copy and paste improvements/fixes between them. This commit fixes that by creating a base Objective-C processor that contains the shared code. View specific code is implemented in the respective subclasses for the views. Although there is very little view specific code for each. --- view/sharedcache/core/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'view/sharedcache/core/CMakeLists.txt') diff --git a/view/sharedcache/core/CMakeLists.txt b/view/sharedcache/core/CMakeLists.txt index 22c7ea28..03766920 100644 --- a/view/sharedcache/core/CMakeLists.txt +++ b/view/sharedcache/core/CMakeLists.txt @@ -8,11 +8,8 @@ if((NOT BN_API_PATH) AND (NOT BN_INTERNAL_BUILD)) message(FATAL_ERROR "Provide path to Binary Ninja API source in BN_API_PATH") endif() endif() -file(GLOB COMMON_SOURCES - *.cpp - *.h - ) -set(SOURCES ${COMMON_SOURCES}) + +file(GLOB SOURCES *.cpp *.h ../../../objectivec/*) add_library(sharedcachecore OBJECT ${SOURCES}) -- cgit v1.3.1