|
|
@ -15,7 +15,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") |
|
|
|
# Normally, set(...CACHE...) creates cache variables, but does not modify them. |
|
|
|
function(createDefaultCacheConfig) |
|
|
|
set(HEADLESS OFF CACHE BOOL "Do not compile GUI (AlethZero)") |
|
|
|
set(LANGUAGES OFF CACHE BOOL "Limit build to Serpent/LLL tools") |
|
|
|
set(VMTRACE OFF CACHE BOOL "VM tracing and run-time checks (useful for cross-implementation VM debugging)") |
|
|
|
set(PARANOIA OFF CACHE BOOL "Additional run-time checks") |
|
|
|
set(JSONRPC ON CACHE BOOL "Build with jsonprc. default on") |
|
|
@ -24,10 +23,6 @@ endfunction() |
|
|
|
|
|
|
|
# propagates CMake configuration options to the compiler |
|
|
|
function(configureProject) |
|
|
|
if (LANGUAGES) |
|
|
|
add_definitions(-DETH_LANGUAGES) |
|
|
|
endif () |
|
|
|
|
|
|
|
if (PARANOIA) |
|
|
|
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") |
|
|
|
add_definitions(-DETH_PARANOIA) |
|
|
@ -89,7 +84,7 @@ cmake_policy(SET CMP0015 NEW) |
|
|
|
|
|
|
|
createDefaultCacheConfig() |
|
|
|
configureProject() |
|
|
|
message("-- LANGUAGES: ${LANGUAGES}; VMTRACE: ${VMTRACE}; PARANOIA: ${PARANOIA}; HEADLESS: ${HEADLESS}; JSONRPC: ${JSONRPC}") |
|
|
|
message("-- VMTRACE: ${VMTRACE}; PARANOIA: ${PARANOIA}; HEADLESS: ${HEADLESS}; JSONRPC: ${JSONRPC}") |
|
|
|
|
|
|
|
|
|
|
|
# Default TARGET_PLATFORM to "linux". |
|
|
@ -125,7 +120,6 @@ if (JSONRPC) |
|
|
|
add_subdirectory(libweb3jsonrpc) |
|
|
|
endif() |
|
|
|
|
|
|
|
if (NOT LANGUAGES) |
|
|
|
add_subdirectory(secp256k1) |
|
|
|
add_subdirectory(libp2p) |
|
|
|
add_subdirectory(libdevcrypto) |
|
|
@ -159,7 +153,6 @@ if (NOT LANGUAGES) |
|
|
|
add_subdirectory(mix) |
|
|
|
|
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
enable_testing() |
|
|
|
add_test(NAME alltests WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test COMMAND testeth) |
|
|
|