|
@ -1,9 +1,29 @@ |
|
|
set(TARGET_NAME evmjit) |
|
|
set(TARGET_NAME evmjit) |
|
|
|
|
|
|
|
|
file(GLOB SOURCES "*.cpp") |
|
|
set(SOURCES |
|
|
file(GLOB HEADERS "*.h") |
|
|
Arith256.cpp Arith256.h |
|
|
set(INTERFACE_HEADERS interface.h) |
|
|
Array.cpp Array.h |
|
|
source_group("" FILES ${HEADERS}) |
|
|
BasicBlock.cpp BasicBlock.h |
|
|
|
|
|
Cache.cpp Cache.h |
|
|
|
|
|
Common.h |
|
|
|
|
|
Compiler.cpp Compiler.h |
|
|
|
|
|
CompilerHelper.cpp CompilerHelper.h |
|
|
|
|
|
Endianness.cpp Endianness.h |
|
|
|
|
|
ExecStats.cpp ExecStats.h |
|
|
|
|
|
ExecutionEngine.cpp ExecutionEngine.h |
|
|
|
|
|
Ext.cpp Ext.h |
|
|
|
|
|
GasMeter.cpp GasMeter.h |
|
|
|
|
|
Instruction.cpp Instruction.h |
|
|
|
|
|
interface.cpp interface.h |
|
|
|
|
|
Memory.cpp Memory.h |
|
|
|
|
|
Optimizer.cpp Optimizer.h |
|
|
|
|
|
Runtime.cpp Runtime.h |
|
|
|
|
|
RuntimeData.h |
|
|
|
|
|
RuntimeManager.cpp RuntimeManager.h |
|
|
|
|
|
Stack.cpp Stack.h |
|
|
|
|
|
Type.cpp Type.h |
|
|
|
|
|
Utils.cpp Utils.h |
|
|
|
|
|
) |
|
|
source_group("" FILES ${SOURCES}) |
|
|
source_group("" FILES ${SOURCES}) |
|
|
|
|
|
|
|
|
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC") |
|
|
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC") |
|
@ -54,7 +74,7 @@ configure_file(BuildInfo.h.in ${CMAKE_CURRENT_BINARY_DIR}/gen/BuildInfo.gen.h) |
|
|
|
|
|
|
|
|
message(STATUS "EVM JIT version: ${EVMJIT_VERSION_MAJOR}.${EVMJIT_VERSION_MINOR}.${EVMJIT_VERSION_PATCH} ${EVMJIT_VERSION_PRERELEASE} (${EVMJIT_VERSION_FULL})") |
|
|
message(STATUS "EVM JIT version: ${EVMJIT_VERSION_MAJOR}.${EVMJIT_VERSION_MINOR}.${EVMJIT_VERSION_PATCH} ${EVMJIT_VERSION_PRERELEASE} (${EVMJIT_VERSION_FULL})") |
|
|
|
|
|
|
|
|
add_library(${TARGET_NAME} SHARED ${SOURCES} ${HEADERS} gen/BuildInfo.gen.h) |
|
|
add_library(${TARGET_NAME} SHARED ${SOURCES} gen/BuildInfo.gen.h) |
|
|
set_target_properties(${TARGET_NAME} PROPERTIES |
|
|
set_target_properties(${TARGET_NAME} PROPERTIES |
|
|
VERSION ${EVMJIT_VERSION} SOVERSION ${EVMJIT_SOVERSION} |
|
|
VERSION ${EVMJIT_VERSION} SOVERSION ${EVMJIT_SOVERSION} |
|
|
FOLDER "libs") |
|
|
FOLDER "libs") |
|
@ -64,7 +84,4 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/gen) |
|
|
|
|
|
|
|
|
target_link_libraries(${TARGET_NAME} PRIVATE ${LLVM_LIBS}) |
|
|
target_link_libraries(${TARGET_NAME} PRIVATE ${LLVM_LIBS}) |
|
|
|
|
|
|
|
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti") |
|
|
|
|
|
|
|
|
|
|
|
install(TARGETS ${TARGET_NAME} LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin) |
|
|
install(TARGETS ${TARGET_NAME} LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin) |
|
|
#install(FILES ${INTERFACE_HEADERS} DESTINATION include/${TARGET_NAME}) |
|
|
|