Skip to content

Commit

Permalink
Merge pull request #924 from cyberway/develop
Browse files Browse the repository at this point in the history
Merge last changes from develop
  • Loading branch information
afalaleev authored Oct 15, 2019
2 parents 642502a + c45d30c commit a330398
Show file tree
Hide file tree
Showing 35 changed files with 859 additions and 1,107 deletions.
24 changes: 12 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ if (NOT DEFINED PROJECT_NAME)
project(golos_dapp_contracts VERSION 0.1.0)
endif(NOT DEFINED PROJECT_NAME)

set(EOSIO_CDT_VERSION_MIN "1.6")
set(EOSIO_CDT_VERSION_SOFT_MAX "1.7")
#set(EOSIO_CDT_VERSION_HARD_MAX "")
set(CYBERWAY_CDT_VERSION_MIN "1.6")
set(CYBERWAY_CDT_VERSION_SOFT_MAX "1.7")
#set(CYBERWAY_CDT_VERSION_HARD_MAX "")

find_package(eosio.cdt)
find_package(cyberway.cdt)

### Check the version of eosio.cdt
### Check the version of cyberway.cdt
set(VERSION_MATCH_ERROR_MSG "")
EOSIO_CHECK_VERSION(VERSION_OUTPUT "${EOSIO_CDT_VERSION}"
"${EOSIO_CDT_VERSION_MIN}"
"${EOSIO_CDT_VERSION_SOFT_MAX}"
"${EOSIO_CDT_VERSION_HARD_MAX}"
EOSIO_CHECK_VERSION(VERSION_OUTPUT "${CYBERWAY_CDT_VERSION}"
"${CYBERWAY_CDT_VERSION_MIN}"
"${CYBERWAY_CDT_VERSION_SOFT_MAX}"
"${CYBERWAY_CDT_VERSION_HARD_MAX}"
VERSION_MATCH_ERROR_MSG)
if(VERSION_OUTPUT STREQUAL "MATCH")
message(STATUS "Using eosio.cdt version ${EOSIO_CDT_VERSION}")
message(STATUS "Using cyberway.cdt version ${CYBERWAY_CDT_VERSION}")
elseif(VERSION_OUTPUT STREQUAL "WARN")
message(WARNING "Using eosio.cdt version ${EOSIO_CDT_VERSION} even though it exceeds the maximum supported version of ${EOSIO_CDT_VERSION_SOFT_MAX}; continuing with configuration, however build may fail.\nIt is recommended to use eosio.cdt version ${EOSIO_CDT_VERSION_SOFT_MAX}.x")
message(WARNING "Using cyberway.cdt version ${CYBERWAY_CDT_VERSION} even though it exceeds the maximum supported version of ${CYBERWAY_CDT_VERSION_SOFT_MAX}; continuing with configuration, however build may fail.\nIt is recommended to use cyberway.cdt version ${CYBERWAY_CDT_VERSION_SOFT_MAX}.x")
else() # INVALID OR MISMATCH
message(FATAL_ERROR "Found eosio.cdt version ${EOSIO_CDT_VERSION} but it does not satisfy version requirements: ${VERSION_MATCH_ERROR_MSG}\nPlease use eosio.cdt version ${EOSIO_CDT_VERSION_SOFT_MAX}.x")
message(FATAL_ERROR "Found cyberway.cdt version ${CYBERWAY_CDT_VERSION} but it does not satisfy version requirements: ${VERSION_MATCH_ERROR_MSG}\nPlease use cyberway.cdt version ${CYBERWAY_CDT_VERSION_SOFT_MAX}.x")
endif(VERSION_OUTPUT STREQUAL "MATCH")

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
Expand Down
4 changes: 2 additions & 2 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN cd golos.contracts/cyberway.contracts \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/cyberway.contracts/ \
-Deosio.cdt_DIR=/opt/cyberway.cdt/lib/cmake/eosio.cdt \
-Dcyberway.cdt_DIR=/opt/cyberway.cdt/lib/cmake/cyberway.cdt \
-DEOSIO_ROOT=/opt/cyberway \
&& cmake --build build --target install \
&& cd .. \
Expand All @@ -27,7 +27,7 @@ RUN cd golos.contracts/cyberway.contracts \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/golos.contracts/ \
-Deosio.cdt_DIR=/opt/cyberway.cdt/lib/cmake/eosio.cdt \
-Dcyberway.cdt_DIR=/opt/cyberway.cdt/lib/cmake/cyberway.cdt \
-DEOSIO_ROOT=/opt/cyberway \
&& cmake --build build --target install

Expand Down
2 changes: 0 additions & 2 deletions auth-proto/CMakeLists.txt

This file was deleted.

188 changes: 0 additions & 188 deletions auth-proto/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions auth-proto/deposit/CMakeLists.txt

This file was deleted.

45 changes: 0 additions & 45 deletions auth-proto/deposit/deposit.abi

This file was deleted.

Loading

0 comments on commit a330398

Please sign in to comment.