Skip to content

Commit

Permalink
Disabled some modules
Browse files Browse the repository at this point in the history
  • Loading branch information
EDDragonWolf committed Mar 20, 2018
1 parent 8a55213 commit 87f4008
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ if(BUILD_DOCUMENTATION)
endif()

# when ON - will install libwallet_merged into "lib"
option(BUILD_GUI_DEPS "Build GUI dependencies." OFF)
option(BUILD_GUI_DEPS "Build GUI dependencies." ON)

# This is not nice, distribution packagers should not enable this, but depend
# on libunbound shipped with their distribution instead
Expand Down
39 changes: 19 additions & 20 deletions src/supernode/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,23 +159,22 @@ add_dependencies(supernode version)
# install(TARGETS supernode_rpc_server DESTINATION bin)
#endif()


## build and install libsupernode_merged only if we building for GUI
#if (BUILD_GUI_DEPS)
# set(libs_to_merge supernode cryptonote_core cryptonote_basic mnemonics common cncrypto ringct)

# foreach(lib ${libs_to_merge})
# list(APPEND objlibs $<TARGET_OBJECTS:obj_${lib}>) # matches naming convention in src/CMakeLists.txt
# endforeach()
# add_library(supernode_merged STATIC ${objlibs})
# if(IOS)
# set(lib_folder lib-${ARCH})
# else()
# set(lib_folder lib)
# endif()
# install(TARGETS supernode_merged
# ARCHIVE DESTINATION ${lib_folder})

# install(FILES ${supernode_api_headers}
# DESTINATION include/supernode)
#endif()
# build and install libsupernode_merged only if we building for GUI
if (BUILD_GUI_DEPS)
set(libs_to_merge supernode cryptonote_core cryptonote_basic mnemonics common cncrypto ringct)

foreach(lib ${libs_to_merge})
list(APPEND objlibs $<TARGET_OBJECTS:obj_${lib}>) # matches naming convention in src/CMakeLists.txt
endforeach()
add_library(supernode_merged STATIC ${objlibs})
if(IOS)
set(lib_folder lib-${ARCH})
else()
set(lib_folder lib)
endif()
install(TARGETS supernode_merged
ARCHIVE DESTINATION ${lib_folder})

install(FILES ${supernode_api_headers}
DESTINATION include/supernode)
endif()

0 comments on commit 87f4008

Please sign in to comment.