diff options
| author | Mark Rowe <mark@vector35.com> | 2025-09-02 11:40:30 -0700 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-09-02 18:58:56 -0700 |
| commit | b157aa0a337dc89d6817f2a26d2c3dd1e44efc9a (patch) | |
| tree | 3df6987454730ef8cc114e28cb039aafd7231a16 /view | |
| parent | 837049b5534bc3dc6cbe83b136e514fd72602e42 (diff) | |
[SharedCache] Move plugin_rpath calls into BN_INTERNAL_BUILD blocks
These calls set the rpaths used for release builds of the dylibs using a
macro that isn't available in the API repository. They are not necessary
when building the shared cache plug-in outside of the context of the
app.
Diffstat (limited to 'view')
| -rw-r--r-- | view/kernelcache/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | view/kernelcache/ui/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | view/sharedcache/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | view/sharedcache/ui/CMakeLists.txt | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/view/kernelcache/CMakeLists.txt b/view/kernelcache/CMakeLists.txt index aa52d2a3..56e61e88 100644 --- a/view/kernelcache/CMakeLists.txt +++ b/view/kernelcache/CMakeLists.txt @@ -47,6 +47,7 @@ if(BN_INTERNAL_BUILD) set_target_properties(kernelcache PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR} RUNTIME_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR}) + plugin_rpath(kernelcache) else() set_target_properties(kernelcache PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out/plugins @@ -66,7 +67,6 @@ target_include_directories(kernelcache PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMA target_link_libraries(kernelcache PUBLIC kernelcacheapi binaryninjaapi kernelcachecore) # kernelcacheworkflow) -plugin_rpath(kernelcache) set(COMPILE_DEFS "") diff --git a/view/kernelcache/ui/CMakeLists.txt b/view/kernelcache/ui/CMakeLists.txt index cac2010e..a06f2cfc 100644 --- a/view/kernelcache/ui/CMakeLists.txt +++ b/view/kernelcache/ui/CMakeLists.txt @@ -45,6 +45,7 @@ if(BN_INTERNAL_BUILD) set_target_properties(kernelcacheui PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR} RUNTIME_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR}) + ui_plugin_rpath(kernelcacheui) else() set_target_properties(kernelcacheui PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out/plugins @@ -93,5 +94,4 @@ target_include_directories(kernelcacheui PRIVATE ${INCLUDES}) target_link_libraries(kernelcacheui kernelcacheapi kernelcache binaryninjaui Qt6::Core Qt6::Gui Qt6::Widgets) -ui_plugin_rpath(kernelcacheui) diff --git a/view/sharedcache/CMakeLists.txt b/view/sharedcache/CMakeLists.txt index b49f8df7..eb074122 100644 --- a/view/sharedcache/CMakeLists.txt +++ b/view/sharedcache/CMakeLists.txt @@ -48,6 +48,7 @@ if(BN_INTERNAL_BUILD) set_target_properties(sharedcache PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR} RUNTIME_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR}) + plugin_rpath(sharedcache) else() set_target_properties(sharedcache PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out/plugins @@ -68,9 +69,6 @@ target_include_directories(sharedcache PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMA target_link_libraries(sharedcache PUBLIC sharedcacheapi binaryninjaapi sharedcachecore sharedcacheworkflow) -plugin_rpath(sharedcache) - - set(COMPILE_DEFS "") if (HARD_FAIL_MODE) diff --git a/view/sharedcache/ui/CMakeLists.txt b/view/sharedcache/ui/CMakeLists.txt index 0de89f60..a0450722 100644 --- a/view/sharedcache/ui/CMakeLists.txt +++ b/view/sharedcache/ui/CMakeLists.txt @@ -45,6 +45,7 @@ if(BN_INTERNAL_BUILD) set_target_properties(sharedcacheui PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR} RUNTIME_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR}) + ui_plugin_rpath(sharedcacheui) else() set_target_properties(sharedcacheui PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out/plugins @@ -94,5 +95,4 @@ target_include_directories(sharedcacheui PRIVATE ${INCLUDES}) target_link_libraries(sharedcacheui sharedcacheapi sharedcache binaryninjaui Qt6::Core Qt6::Gui Qt6::Widgets) -ui_plugin_rpath(sharedcacheui) |
