forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3dc9f9
commit 925836d
Showing
18 changed files
with
85 additions
and
1,251 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 |
---|---|---|
@@ -1,44 +1,18 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
cmake_minimum_required(VERSION 2.5) | ||
PROJECT(iroha C CXX) | ||
|
||
SET(CMAKE_CXX_FLAGS "-std=c++1y -Wall -fPIC") | ||
SET(CMAKE_CXX_FLAGS_RELEASE "-O3") | ||
SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wextra -Wno-unused-parameter -O0") | ||
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib) | ||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules) | ||
|
||
option(BENCHMARKING "Build benchmarks" OFF) | ||
option(TESTING "Build tests" ON) | ||
|
||
if (NOT CMAKE_BUILD_TYPE) | ||
set(CMAKE_BUILD_TYPE Debug) | ||
endif() | ||
message(STATUS "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}") | ||
message(STATUS "-DTESTING=${TESTING}") | ||
message(STATUS "-DBENCHMARKING=${BENCHMARKING}") | ||
|
||
set(IROHA_SCHEMA_DIR "${PROJECT_SOURCE_DIR}/schema") | ||
|
||
include_directories( | ||
${PROJECT_SOURCE_DIR}/core | ||
${PROJECT_SOURCE_DIR}/core/infra/ametsuchi/include | ||
${IROHA_SCHEMA_DIR} | ||
) | ||
|
||
include("cmake/dependencies.cmake") | ||
set(IROHA_SCHEMA_DIR "${PROJECT_SOURCE_DIR}/schema") | ||
add_subdirectory(schema) | ||
add_subdirectory(core) | ||
add_subdirectory(peer) | ||
add_subdirectory(tools) | ||
|
||
link_directories(${PROJECT_BINARY_DIR}/lib) | ||
|
||
if(TESTING) | ||
enable_testing() | ||
add_subdirectory(test) | ||
endif() | ||
|
||
|
||
if(BENCHMARKING) | ||
add_subdirectory(benchmark) | ||
endif() |
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
|
||
# ToDo use macro | ||
execute_process(COMMAND "protoc -I. --cpp_out=. --proto_path=commands.proto block.proto") | ||
execute_process(COMMAND "protoc -I. --cpp_out=. --proto_path=commands.proto asset.proto") | ||
execute_process(COMMAND "protoc -I. --cpp_out=. --proto_path=commands.proto commands.proto") | ||
execute_process(COMMAND "protoc -I. --cpp_out=. --proto_path=commands.proto primitive.proto") |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
syntax = "proto3"; | ||
package iroha.protocol; // I think protocol is better, by mizuki | ||
package iroha.protocol; | ||
|
||
// For Add/Subtract/Transfer | ||
message Asset{ | ||
string asset_id = 1; | ||
int64 amount = 2; | ||
int32 precision = 3; | ||
string data = 4; | ||
} | ||
} |
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
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,7 @@ | ||
syntax = "proto3"; | ||
package iroha.protocol; // I think protocol is better, by mizuki | ||
|
||
message Signature { | ||
bytes pubkey = 1; | ||
bytes signature = 2; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.