diff --git a/CMakeLists.txt b/CMakeLists.txt index fa6558fa..2aebcef4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ project(rz-ghidra) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") find_package(Rizin REQUIRED Core) +find_package(OpenSSL REQUIRED) set(RIZIN_INSTALL_PLUGDIR "${Rizin_PLUGINDIR}" CACHE STRING "Directory to install rizin plugins into") @@ -79,7 +80,9 @@ set(ANALYSIS_SOURCE endif() add_library(core_ghidra SHARED ${CORE_SOURCE}) +target_include_directories(core_ghidra PRIVATE ${OPENSSL_INCLUDE_DIR}) target_link_libraries(core_ghidra ghidra_libdecomp) +target_link_libraries(core_ghidra ${OPENSSL_LIBRARIES}) target_link_libraries(core_ghidra pugixml) target_link_libraries(core_ghidra Rizin::Core) set_target_properties(core_ghidra PROPERTIES @@ -104,7 +107,9 @@ endif() if(BUILD_SLEIGH_PLUGIN) add_library(asm_ghidra SHARED ${ASM_SOURCE}) +target_include_directories(asm_ghidra PRIVATE ${OPENSSL_INCLUDE_DIR}) target_link_libraries(asm_ghidra core_ghidra) +target_link_libraries(asm_ghidra ${OPENSSL_LIBRARIES}) set_target_properties(asm_ghidra PROPERTIES OUTPUT_NAME asm_ghidra BUILD_RPATH "${LD_RPATH_STR}" @@ -112,7 +117,9 @@ set_target_properties(asm_ghidra PROPERTIES PREFIX "") add_library(analysis_ghidra SHARED ${ANALYSIS_SOURCE}) +target_include_directories(analysis_ghidra PRIVATE ${OPENSSL_INCLUDE_DIR}) target_link_libraries(analysis_ghidra core_ghidra) +target_link_libraries(analysis_ghidra ${OPENSSL_LIBRARIES}) set_target_properties(analysis_ghidra PROPERTIES OUTPUT_NAME analysis_ghidra BUILD_RPATH "${LD_RPATH_STR}" diff --git a/scripts/Dockerfile.buster b/scripts/Dockerfile.buster index ce5dece5..ec3c3b93 100644 --- a/scripts/Dockerfile.buster +++ b/scripts/Dockerfile.buster @@ -2,7 +2,7 @@ FROM debian:buster RUN apt-get update -RUN apt-get -y install git g++ cmake pkg-config flex bison python3 python3-pip ninja-build qt5-default libqt5svg5-dev qttools5-dev && \ +RUN apt-get -y install git g++ cmake pkg-config flex bison python3 python3-pip ninja-build qt5-default libqt5svg5-dev qttools5-dev libssl-dev openssl-dev && \ pip3 install meson RUN cd /root && \