This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from EOSIO/fix/merge_master
Merging release/1.1 to master
- Loading branch information
Showing
25 changed files
with
488 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(eosio_contracts VERSION 1.1.0) | ||
|
||
if(CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
set(TEST_BUILD_TYPE "Debug") | ||
set(CMAKE_BUILD_TYPE "Release") | ||
else() | ||
set(TEST_BUILD_TYPE ${CMAKE_BUILD_TYPE}) | ||
endif() | ||
if(CXX_COMPILER STREQUAL "" OR NOT CXX_COMPILER) | ||
set(CXX_COMPILER ${CMAKE_CXX_COMPILER}) | ||
endif() | ||
|
||
if(EOSIO_INSTALL_PREFIX STREQUAL "" OR NOT EOSIO_INSTALL_PREFIX) | ||
set(EOSIO_INSTALL_PREFIX "/usr/local") | ||
endif() | ||
|
||
# if no wasm root is given use default path | ||
if(WASM_ROOT STREQUAL "" OR NOT WASM_ROOT) | ||
set(WASM_ROOT ${CMAKE_INSTALL_PREFIX}) | ||
endif() | ||
|
||
list(APPEND CMAKE_MODULE_PATH ${WASM_ROOT}/lib/cmake) | ||
include(EosioWasmToolchain) | ||
|
||
add_subdirectory(eosio.msig) | ||
add_subdirectory(eosio.sudo) | ||
add_subdirectory(eosio.system) | ||
add_subdirectory(eosio.token) | ||
|
||
if (APPLE) | ||
set(OPENSSL_ROOT "/usr/local/opt/openssl") | ||
elseif (UNIX) | ||
set(OPENSSL_ROOT "/usr/include/openssl") | ||
endif() | ||
set(SECP256K1_ROOT "/usr/local") | ||
|
||
include(UnitTestsExternalProject.txt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
include(ExternalProject) | ||
find_package(Git REQUIRED) | ||
include(GNUInstallDirs) | ||
|
||
ExternalProject_Add( | ||
contracts_unit_tests | ||
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${TEST_BUILD_TYPE} -DROOT_DIR=${CMAKE_SOURCE_DIR} -DEOSIO_INSTALL_PREFIX=${EOSIO_INSTALL_PREFIX} -DOPENSSL_INSTALL_PREFIX=${OPENSSL_ROOT} -DSECP256K1_INSTALL_LIB=${SECP256K1_ROOT} -DBOOST_ROOT=${BOOST_ROOT}/include -DCMAKE_CXX_COMPILER=${CXX_COMPILER} | ||
|
||
SOURCE_DIR ${CMAKE_SOURCE_DIR}/tests | ||
BINARY_DIR ${CMAKE_SOURCE_DIR}/build/tests | ||
BUILD_ALWAYS 1 | ||
TEST_COMMAND "" | ||
INSTALL_COMMAND "" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/abi/eosio.msig.abi" "${CMAKE_CURRENT_SOURCE_DIR}/bin/eosio.msig" COPYONLY) | ||
|
||
add_executable(eosio.msig.wasm ${CMAKE_CURRENT_SOURCE_DIR}/src/eosio.msig.cpp) | ||
target_include_directories(eosio.msig.wasm | ||
PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
|
||
set_target_properties(eosio.msig.wasm | ||
PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin/eosio.msig") | ||
|
||
#install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION ${WASM_ROOT}/eosio.wasmsdk/include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eosio.msig.abi | ||
eosio.msig.wasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
add_executable(eosio.sudo.wasm ${CMAKE_CURRENT_SOURCE_DIR}/src/eosio.sudo.cpp) | ||
target_include_directories(eosio.sudo.wasm | ||
PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
|
||
set_target_properties(eosio.sudo.wasm | ||
PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin/eosio.sudo") | ||
|
||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/abi/eosio.sudo.abi" "${CMAKE_CURRENT_SOURCE_DIR}/bin/eosio.sudo" COPYONLY) | ||
#install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION ${WASM_ROOT}/eosio.wasmsdk/include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eosio.sudo.abi | ||
eosio.sudo.wasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
add_executable(eosio.system.wasm ${CMAKE_CURRENT_SOURCE_DIR}/src/eosio.system.cpp) | ||
target_include_directories(eosio.system.wasm | ||
PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/../eosio.token/include) | ||
|
||
set_target_properties(eosio.system.wasm | ||
PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin/eosio.system") | ||
|
||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/abi/eosio.system.abi" "${CMAKE_CURRENT_SOURCE_DIR}/bin/eosio.system" COPYONLY) | ||
|
||
#install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION ${WASM_ROOT}/eosio.wasmsdk/include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eosio.system.abi | ||
eosio.system.wasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.