|
|
@ -4,13 +4,13 @@ project(wowlet)
|
|
|
|
message(STATUS "Initiating compile using CMake ${CMAKE_VERSION}")
|
|
|
|
message(STATUS "Initiating compile using CMake ${CMAKE_VERSION}")
|
|
|
|
|
|
|
|
|
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
|
|
set(VERSION_MAJOR "2")
|
|
|
|
set(VERSION_MAJOR "3")
|
|
|
|
set(VERSION_MINOR "1")
|
|
|
|
set(VERSION_MINOR "0")
|
|
|
|
set(VERSION_REVISION "0")
|
|
|
|
set(VERSION_REVISION "0")
|
|
|
|
set(VERSION "beta-3")
|
|
|
|
set(VERSION "beta-4")
|
|
|
|
|
|
|
|
|
|
|
|
option(FETCH_DEPS "Download dependencies if they are not found" ON)
|
|
|
|
option(FETCH_DEPS "Download dependencies if they are not found" ON)
|
|
|
|
option(XMRIG "Include XMRig module" ON)
|
|
|
|
option(XMRIG "Include XMRig module")
|
|
|
|
option(OPENVR "Include OpenVR support")
|
|
|
|
option(OPENVR "Include OpenVR support")
|
|
|
|
option(QML "Include QtQuick (QML)")
|
|
|
|
option(QML "Include QtQuick (QML)")
|
|
|
|
option(ANDROID "Android deployment")
|
|
|
|
option(ANDROID "Android deployment")
|
|
|
@ -57,7 +57,7 @@ if(STATIC)
|
|
|
|
# manually set the unbound submodule the right commit that has the fix.
|
|
|
|
# manually set the unbound submodule the right commit that has the fix.
|
|
|
|
# This only works with -DMANUAL_SUBMODULES=1
|
|
|
|
# This only works with -DMANUAL_SUBMODULES=1
|
|
|
|
message(STATUS "applying unbound static build fix contrib/unbound_static.patch")
|
|
|
|
message(STATUS "applying unbound static build fix contrib/unbound_static.patch")
|
|
|
|
execute_process(COMMAND bash -c "git -C ${CMAKE_SOURCE_DIR}/monero/external/unbound apply ${CMAKE_SOURCE_DIR}/contrib/unbound_static.patch")
|
|
|
|
execute_process(COMMAND bash -c "git -C ${CMAKE_SOURCE_DIR}/wownero/external/unbound apply ${CMAKE_SOURCE_DIR}/contrib/unbound_static.patch")
|
|
|
|
|
|
|
|
|
|
|
|
set(Boost_USE_STATIC_LIBS ON)
|
|
|
|
set(Boost_USE_STATIC_LIBS ON)
|
|
|
|
set(Boost_USE_STATIC_RUNTIME ON)
|
|
|
|
set(Boost_USE_STATIC_RUNTIME ON)
|
|
|
@ -90,21 +90,19 @@ function (add_linker_flag_if_supported flag var)
|
|
|
|
endfunction()
|
|
|
|
endfunction()
|
|
|
|
|
|
|
|
|
|
|
|
find_package(Git)
|
|
|
|
find_package(Git)
|
|
|
|
if(GIT_FOUND)
|
|
|
|
#if(GIT_FOUND)
|
|
|
|
message(STATUS "Initializing submodules")
|
|
|
|
# message(STATUS "Initializing submodules")
|
|
|
|
execute_process(COMMAND git "submodule" "update" "--init" "--recursive")
|
|
|
|
# execute_process(COMMAND git "submodule" "update" "--init" "--recursive")
|
|
|
|
execute_process(COMMAND git rev-parse "HEAD" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/monero OUTPUT_VARIABLE _WOWNERO_HEAD OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
# execute_process(COMMAND git rev-parse "HEAD" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/wownero OUTPUT_VARIABLE _WOWNERO_HEAD OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
if(NOT _WOWNERO_HEAD STREQUAL WOWNERO_HEAD)
|
|
|
|
# if(NOT _WOWNERO_HEAD STREQUAL WOWNERO_HEAD)
|
|
|
|
message(FATAL_ERROR "[submodule] Monero HEAD was at ${_WOWNERO_HEAD} but should be at ${WOWNERO_HEAD}")
|
|
|
|
# message(FATAL_ERROR "[submodule] Wownero HEAD was at ${_WOWNERO_HEAD} but should be at ${WOWNERO_HEAD}")
|
|
|
|
else()
|
|
|
|
# else()
|
|
|
|
message(STATUS "[submodule] Wownero HEAD @ ${WOWNERO_HEAD}")
|
|
|
|
# message(STATUS "[submodule] Wownero HEAD @ ${WOWNERO_HEAD}")
|
|
|
|
endif()
|
|
|
|
# endif()
|
|
|
|
endif()
|
|
|
|
#endif()
|
|
|
|
|
|
|
|
|
|
|
|
add_subdirectory(monero)
|
|
|
|
add_subdirectory(wownero)
|
|
|
|
set_property(TARGET wallet_merged PROPERTY FOLDER "monero")
|
|
|
|
get_directory_property(ARCH_WIDTH DIRECTORY "wownero" DEFINITION ARCH_WIDTH)
|
|
|
|
get_directory_property(ARCH_WIDTH DIRECTORY "monero" DEFINITION ARCH_WIDTH)
|
|
|
|
|
|
|
|
get_directory_property(UNBOUND_LIBRARY DIRECTORY "monero" DEFINITION UNBOUND_LIBRARY)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include(CMakePackageConfigHelpers)
|
|
|
|
include(CMakePackageConfigHelpers)
|
|
|
|
include(VersionMonero)
|
|
|
|
include(VersionMonero)
|
|
|
|