|
@ -34,16 +34,8 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") |
|
|
# which lets us keep the default values of all build options and is set at |
|
|
# which lets us keep the default values of all build options and is set at |
|
|
# the beginning of this file. |
|
|
# the beginning of this file. |
|
|
|
|
|
|
|
|
# TODO: Abstract into something sensible and move into a function. |
|
|
|
|
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") |
|
|
|
|
|
set(DECENT_PLATFORM OFF) |
|
|
|
|
|
else () |
|
|
|
|
|
set(DECENT_PLATFORM ON) |
|
|
|
|
|
endif () |
|
|
|
|
|
|
|
|
|
|
|
#defaults: |
|
|
#defaults: |
|
|
set(D_CMAKE_BUILD_TYPE "Release") |
|
|
set(D_CMAKE_BUILD_TYPE "Release") |
|
|
set(D_SERPENT ${DECENT_PLATFORM}) |
|
|
|
|
|
set(D_USENPM OFF) |
|
|
set(D_USENPM OFF) |
|
|
set(D_GUI ON) |
|
|
set(D_GUI ON) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TOOLS ON) |
|
@ -61,47 +53,40 @@ set(D_MINER ON) |
|
|
set(D_ETHSTRATUM OFF) |
|
|
set(D_ETHSTRATUM OFF) |
|
|
|
|
|
|
|
|
if (BUNDLE STREQUAL "minimal") |
|
|
if (BUNDLE STREQUAL "minimal") |
|
|
set(D_SERPENT OFF) |
|
|
|
|
|
set(D_USENPM OFF) |
|
|
set(D_USENPM OFF) |
|
|
set(D_GUI OFF) |
|
|
set(D_GUI OFF) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TESTS OFF) |
|
|
set(D_TESTS OFF) |
|
|
elseif (BUNDLE STREQUAL "full") |
|
|
elseif (BUNDLE STREQUAL "full") |
|
|
set(D_SERPENT ${DECENT_PLATFORM}) |
|
|
|
|
|
set(D_USENPM ON) |
|
|
set(D_USENPM ON) |
|
|
set(D_GUI ON) |
|
|
set(D_GUI ON) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TESTS ON) |
|
|
set(D_TESTS ON) |
|
|
set(D_FATDB ON) |
|
|
set(D_FATDB ON) |
|
|
elseif (BUNDLE STREQUAL "cli") |
|
|
elseif (BUNDLE STREQUAL "cli") |
|
|
set(D_SERPENT ${DECENT_PLATFORM}) |
|
|
|
|
|
set(D_USENPM ON) |
|
|
set(D_USENPM ON) |
|
|
set(D_GUI OFF) |
|
|
set(D_GUI OFF) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TESTS ON) |
|
|
set(D_TESTS ON) |
|
|
set(D_FATDB ON) |
|
|
set(D_FATDB ON) |
|
|
elseif (BUNDLE STREQUAL "core") |
|
|
elseif (BUNDLE STREQUAL "core") |
|
|
set(D_SERPENT OFF) |
|
|
|
|
|
set(D_USENPM OFF) |
|
|
set(D_USENPM OFF) |
|
|
set(D_GUI ON) |
|
|
set(D_GUI ON) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TESTS OFF) |
|
|
set(D_TESTS OFF) |
|
|
set(D_FATDB ON) |
|
|
set(D_FATDB ON) |
|
|
elseif (BUNDLE STREQUAL "tests") |
|
|
elseif (BUNDLE STREQUAL "tests") |
|
|
set(D_SERPENT ${DECENT_PLATFORM}) |
|
|
|
|
|
set(D_USENPM OFF) |
|
|
set(D_USENPM OFF) |
|
|
set(D_GUI OFF) |
|
|
set(D_GUI OFF) |
|
|
set(D_TOOLS OFF) |
|
|
set(D_TOOLS OFF) |
|
|
set(D_TESTS ON) |
|
|
set(D_TESTS ON) |
|
|
set(D_FATDB ON) |
|
|
set(D_FATDB ON) |
|
|
elseif (BUNDLE STREQUAL "user") |
|
|
elseif (BUNDLE STREQUAL "user") |
|
|
set(D_SERPENT OFF) |
|
|
|
|
|
set(D_USENPM OFF) |
|
|
set(D_USENPM OFF) |
|
|
set(D_GUI ON) |
|
|
set(D_GUI ON) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TESTS OFF) |
|
|
set(D_TESTS OFF) |
|
|
elseif (BUNDLE STREQUAL "wallet") |
|
|
elseif (BUNDLE STREQUAL "wallet") |
|
|
set(D_SERPENT OFF) |
|
|
|
|
|
set(D_USENPM OFF) |
|
|
set(D_USENPM OFF) |
|
|
set(D_GUI OFF) |
|
|
set(D_GUI OFF) |
|
|
set(D_TOOLS OFF) |
|
|
set(D_TOOLS OFF) |
|
@ -111,7 +96,6 @@ elseif (BUNDLE STREQUAL "wallet") |
|
|
set(D_FATDB OFF) |
|
|
set(D_FATDB OFF) |
|
|
set(D_JSONRPC OFF) |
|
|
set(D_JSONRPC OFF) |
|
|
elseif (BUNDLE STREQUAL "miner") |
|
|
elseif (BUNDLE STREQUAL "miner") |
|
|
set(D_SERPENT OFF) |
|
|
|
|
|
set(D_USENPM OFF) |
|
|
set(D_USENPM OFF) |
|
|
set(D_GUI OFF) |
|
|
set(D_GUI OFF) |
|
|
set(D_TOOLS OFF) |
|
|
set(D_TOOLS OFF) |
|
@ -122,7 +106,6 @@ elseif (BUNDLE STREQUAL "miner") |
|
|
set(D_JSONRPC ON) |
|
|
set(D_JSONRPC ON) |
|
|
set(D_ETHSTRATUM ON) |
|
|
set(D_ETHSTRATUM ON) |
|
|
elseif (BUNDLE STREQUAL "cudaminer") |
|
|
elseif (BUNDLE STREQUAL "cudaminer") |
|
|
set(D_SERPENT OFF) |
|
|
|
|
|
set(D_USENPM OFF) |
|
|
set(D_USENPM OFF) |
|
|
set(D_GUI OFF) |
|
|
set(D_GUI OFF) |
|
|
set(D_TOOLS OFF) |
|
|
set(D_TOOLS OFF) |
|
@ -134,7 +117,6 @@ elseif (BUNDLE STREQUAL "cudaminer") |
|
|
set(D_JSONRPC ON) |
|
|
set(D_JSONRPC ON) |
|
|
set(D_ETHSTRATUM ON) |
|
|
set(D_ETHSTRATUM ON) |
|
|
elseif (BUNDLE STREQUAL "release") # release builds |
|
|
elseif (BUNDLE STREQUAL "release") # release builds |
|
|
set(D_SERPENT ${DECENT_PLATFORM}) |
|
|
|
|
|
set(D_USENPM OFF) |
|
|
set(D_USENPM OFF) |
|
|
set(D_GUI ON) |
|
|
set(D_GUI ON) |
|
|
set(D_TOOLS ON) |
|
|
set(D_TOOLS ON) |
|
|