Skip to content
Snippets Groups Projects
Commit 23049a6a authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Merge branch 'feature-14123' into 'main'

Feature 14123

See merge request !1
parents 16b503c4 780900ab
No related branches found
No related tags found
1 merge request!1Feature 14123
Pipeline #48301 passed with stage
in 1 minute and 49 seconds
......@@ -33,4 +33,7 @@ amd64:linux.rwd.bld:
- /opt/buildtools/prepare_environment.sh amd64-linux
script:
- mkdir build && cd build && cmake .. && make
- /opt/buildtools/deploy_files.sh pub_cellframe linux/cellframe-tool-sign/$CI_COMMIT_REF_NAME/ cellframe-tool-sign
\ No newline at end of file
[submodule "cellframe-sdk"]
path = cellframe-sdk
url = https://gitlab.demlabs.net/cellframe/cellframe-sdk.git
cmake_minimum_required(VERSION 3.10)
project(cellframe-tool-sign C)
include(cellframe-sdk/cmake/ReadMKFile.cmake)
ReadVariables(version.mk)
execute_process(
COMMAND git log -1 --format=%h
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_COMMIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
string(TIMESTAMP BUILD_TIMESTAMP "%d.%m.%Y")
message("Build date: ${BUILD_TIMESTAMP}")
message("Git SHA: ${GIT_COMMIT_HASH}")
add_definitions("-DDAP_VERSION=\"${VERSION_MAJOR}.${VERSION_MINOR}-${VERSION_PATCH}\"")
add_definitions("-DBUILD_TS=\"${BUILD_TIMESTAMP}\"")
add_definitions("-DBUILD_HASH=\"${GIT_COMMIT_HASH}\"")
set(CELLFRAME_MODULES "core chains network cs-none srv srv-datum srv-stake cs-esbocs srv-xchange srv-voting")
set(SPHINCSPLUS_FLEX ON)
option(CELLFRAME_NO_OPTIMIZATION "Build without BMI BMI2 CPU instruction." ON)
set(DAP_CRYPTO_XKCP_PLAINC ON)
include (cellframe-sdk/dap-sdk/cmake/OS_Detection.cmake)
add_subdirectory(cellframe-sdk)
add_subdirectory(cellframe-sdk/dap-sdk)
add_executable(${PROJECT_NAME} "main.c")
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS "-D_GNU_SOURCE")
target_link_libraries(${PROJECT_NAME} m cellframe-sdk pthread)
target_include_directories(${PROJECT_NAME} INTERFACE .)
\ No newline at end of file
Subproject commit 5fd7f5d7f49eeffd095c150f8363c453838ac9d5
main.c 0 → 100644
This diff is collapsed.
VERSION_MAJOR=1
VERSION_MINOR=0
VERSION_PATCH=0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment