mirror of
https://github.com/status-im/evmc.git
synced 2025-02-23 16:38:06 +00:00
commit
a739fb9add
@ -12,6 +12,7 @@ endif()
|
|||||||
include(cmake/cable/bootstrap.cmake)
|
include(cmake/cable/bootstrap.cmake)
|
||||||
include(CableCompilerSettings)
|
include(CableCompilerSettings)
|
||||||
include(HunterGate)
|
include(HunterGate)
|
||||||
|
include(GNUInstallDirs)
|
||||||
include(defaults/HunterCacheServers)
|
include(defaults/HunterCacheServers)
|
||||||
|
|
||||||
# Setup Hunter.
|
# Setup Hunter.
|
||||||
@ -23,12 +24,15 @@ HunterGate(
|
|||||||
)
|
)
|
||||||
|
|
||||||
project(evmc)
|
project(evmc)
|
||||||
|
set(PROJECT_VERSION "0.1.0.dev0")
|
||||||
|
|
||||||
cable_configure_compiler()
|
cable_configure_compiler()
|
||||||
|
|
||||||
add_library(evmc INTERFACE)
|
add_library(evmc INTERFACE)
|
||||||
target_include_directories(evmc INTERFACE include)
|
target_include_directories(evmc INTERFACE include)
|
||||||
|
|
||||||
|
install(DIRECTORY include/evmc DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
|
||||||
option(EVMC_BUILD_TESTS "Build EVMC tests and test tools" OFF)
|
option(EVMC_BUILD_TESTS "Build EVMC tests and test tools" OFF)
|
||||||
if(EVMC_BUILD_TESTS)
|
if(EVMC_BUILD_TESTS)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
@ -39,3 +43,15 @@ option(EVMC_BUILD_EXAMPLES "Build EVMC examples" OFF)
|
|||||||
if(EVMC_BUILD_EXAMPLES)
|
if(EVMC_BUILD_EXAMPLES)
|
||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
set(CPACK_GENERATOR ZIP)
|
||||||
|
else()
|
||||||
|
set(CPACK_GENERATOR TGZ)
|
||||||
|
endif()
|
||||||
|
string(TOLOWER ${CMAKE_SYSTEM_NAME} system_name)
|
||||||
|
set(CPACK_PACKAGE_FILE_NAME ${PROJECT_NAME}-${PROJECT_VERSION}-${system_name})
|
||||||
|
set(CPACK_PACKAGE_CHECKSUM SHA256)
|
||||||
|
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY FALSE)
|
||||||
|
include(CPack)
|
||||||
|
2
Doxyfile
2
Doxyfile
@ -99,7 +99,7 @@ WARN_LOGFILE =
|
|||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# Configuration options related to the input files
|
# Configuration options related to the input files
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
INPUT = include/evmc.h
|
INPUT = include/evmc/evmc.h
|
||||||
INPUT_ENCODING = UTF-8
|
INPUT_ENCODING = UTF-8
|
||||||
FILE_PATTERNS =
|
FILE_PATTERNS =
|
||||||
RECURSIVE = NO
|
RECURSIVE = NO
|
||||||
|
@ -19,6 +19,15 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: "Install"
|
name: "Install"
|
||||||
command: cmake --build ~/build --target install
|
command: cmake --build ~/build --target install
|
||||||
|
- run:
|
||||||
|
name: "Package"
|
||||||
|
command: |
|
||||||
|
cmake --build ~/build --target package
|
||||||
|
mkdir ~/package
|
||||||
|
mv ~/build/evmc-*.tar.gz ~/package
|
||||||
|
- store_artifacts:
|
||||||
|
path: ~/package
|
||||||
|
destination: package
|
||||||
- run:
|
- run:
|
||||||
name: "Run evmc-vmtester libevmc-examplevm.so"
|
name: "Run evmc-vmtester libevmc-examplevm.so"
|
||||||
command: ~/install/bin/evmc-vmtester ~/install/lib/libevmc-examplevm.so
|
command: ~/install/bin/evmc-vmtester ~/install/lib/libevmc-examplevm.so
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <evmc.h>
|
#include <evmc/evmc.h>
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <evmc.h>
|
#include <evmc/evmc.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates EVMC Example VM.
|
* Creates EVMC Example VM.
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
// EVMC -- Ethereum Client-VM Connector API
|
// EVMC: Ethereum Client-VM Connector API.
|
||||||
// Copyright 2018 Pawel Bylica.
|
// Copyright 2018 Pawel Bylica.
|
||||||
// Licensed under the MIT License. See the LICENSE file.
|
// Licensed under the MIT License. See the LICENSE file.
|
||||||
|
|
||||||
#include "vmtester.hpp"
|
#include "vmtester.hpp"
|
||||||
|
|
||||||
#include <evmc.h>
|
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
|
|
||||||
#include <boost/dll.hpp>
|
#include <boost/dll.hpp>
|
||||||
#include <boost/dll/alias.hpp>
|
#include <boost/dll/alias.hpp>
|
||||||
#include <boost/function.hpp>
|
#include <boost/function.hpp>
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
// EVMC -- Ethereum Client-VM Connector API
|
// EVMC: Ethereum Client-VM Connector API
|
||||||
// Copyright 2018 Pawel Bylica.
|
// Copyright 2018 Pawel Bylica.
|
||||||
// Licensed under the MIT License. See the LICENSE file.
|
// Licensed under the MIT License. See the LICENSE file.
|
||||||
|
|
||||||
#include <evmc.h>
|
#pragma once
|
||||||
|
|
||||||
|
#include <evmc/evmc.h>
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
evmc_instance* get_vm_instance();
|
evmc_instance* get_vm_instance();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user