mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 01:12:39 +00:00
gui/libwallet_merged: libunbound is one more dependency
This commit is contained in:
parent
4d17949d4f
commit
43677f9d68
3 changed files with 23 additions and 9 deletions
|
@ -603,3 +603,7 @@ if(BUILD_DOCUMENTATION)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# when ON - will install libunbound and libwallet_merged into "lib"
|
||||||
|
option(BUILD_GUI_DEPS "Build GUI dependencies." OFF)
|
||||||
|
|
||||||
|
|
||||||
|
|
6
external/unbound/CMakeLists.txt
vendored
6
external/unbound/CMakeLists.txt
vendored
|
@ -228,3 +228,9 @@ if (MINGW)
|
||||||
COPYONLY)
|
COPYONLY)
|
||||||
endforeach ()
|
endforeach ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|
||||||
|
if (BUILD_GUI_DEPS)
|
||||||
|
install(TARGETS unbound
|
||||||
|
ARCHIVE DESTINATION lib)
|
||||||
|
endif()
|
||||||
|
|
|
@ -74,14 +74,18 @@ target_link_libraries(wallet
|
||||||
${Boost_REGEX_LIBRARY}
|
${Boost_REGEX_LIBRARY}
|
||||||
${EXTRA_LIBRARIES})
|
${EXTRA_LIBRARIES})
|
||||||
|
|
||||||
set(libs_to_merge wallet cryptonote_core mnemonics common crypto ringct)
|
|
||||||
|
|
||||||
foreach(lib ${libs_to_merge})
|
# build and install libwallet_merged only if we building for GUI
|
||||||
list(APPEND objlibs $<TARGET_OBJECTS:obj_${lib}>) # matches naming convention in src/CMakeLists.txtA
|
if (BUILD_GUI_DEPS)
|
||||||
endforeach()
|
set(libs_to_merge wallet cryptonote_core mnemonics common crypto ringct)
|
||||||
add_library(wallet_merged STATIC ${objlibs})
|
|
||||||
install(TARGETS wallet_merged
|
|
||||||
ARCHIVE DESTINATION lib)
|
|
||||||
|
|
||||||
install(FILES ${wallet_api_headers}
|
foreach(lib ${libs_to_merge})
|
||||||
DESTINATION include/wallet)
|
list(APPEND objlibs $<TARGET_OBJECTS:obj_${lib}>) # matches naming convention in src/CMakeLists.txt
|
||||||
|
endforeach()
|
||||||
|
add_library(wallet_merged STATIC ${objlibs})
|
||||||
|
install(TARGETS wallet_merged
|
||||||
|
ARCHIVE DESTINATION lib)
|
||||||
|
|
||||||
|
install(FILES ${wallet_api_headers}
|
||||||
|
DESTINATION include/wallet)
|
||||||
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue