gui/libwallet_merged: libunbound is one more dependency

This commit is contained in:
Ilya Kitaev 2016-09-03 13:32:06 +03:00
parent 4d17949d4f
commit 43677f9d68
3 changed files with 23 additions and 9 deletions

View file

@ -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)

View file

@ -228,3 +228,9 @@ if (MINGW)
COPYONLY) COPYONLY)
endforeach () endforeach ()
endif () endif ()
if (BUILD_GUI_DEPS)
install(TARGETS unbound
ARCHIVE DESTINATION lib)
endif()

View file

@ -74,10 +74,13 @@ target_link_libraries(wallet
${Boost_REGEX_LIBRARY} ${Boost_REGEX_LIBRARY}
${EXTRA_LIBRARIES}) ${EXTRA_LIBRARIES})
# build and install libwallet_merged only if we building for GUI
if (BUILD_GUI_DEPS)
set(libs_to_merge wallet cryptonote_core mnemonics common crypto ringct) set(libs_to_merge wallet cryptonote_core mnemonics common crypto ringct)
foreach(lib ${libs_to_merge}) foreach(lib ${libs_to_merge})
list(APPEND objlibs $<TARGET_OBJECTS:obj_${lib}>) # matches naming convention in src/CMakeLists.txtA list(APPEND objlibs $<TARGET_OBJECTS:obj_${lib}>) # matches naming convention in src/CMakeLists.txt
endforeach() endforeach()
add_library(wallet_merged STATIC ${objlibs}) add_library(wallet_merged STATIC ${objlibs})
install(TARGETS wallet_merged install(TARGETS wallet_merged
@ -85,3 +88,4 @@ install(TARGETS wallet_merged
install(FILES ${wallet_api_headers} install(FILES ${wallet_api_headers}
DESTINATION include/wallet) DESTINATION include/wallet)
endif()