Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force openssl in CMake targets #348

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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
Expand All @@ -104,15 +107,19 @@ 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}"
INSTALL_RPATH "${LD_RPATH_STR}"
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}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/Dockerfile.buster
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
Loading