forked from Research/WhisperCom
Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
6422c368de | |||
690e600f0f | |||
44ba3b23cd | |||
db918e84d1 | |||
b2034aa7fc | |||
838d0e95fd | |||
24058e3cbe | |||
1a396fc27b | |||
fcc294847e | |||
0c83bd76ea | |||
c0e5c73716 |
48
.drone.yml
Normal file
48
.drone.yml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: build-amd64
|
||||||
|
platform:
|
||||||
|
arch: amd64
|
||||||
|
node_selector:
|
||||||
|
kubernetes.io/arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: submodules
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
|
- name: build-amd64
|
||||||
|
image: debian:bookworm-slim
|
||||||
|
commands:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get -qy install gcc-12 libsodium-dev cmake make build-essential pkg-config
|
||||||
|
- mkdir build
|
||||||
|
- cd build; cmake ..
|
||||||
|
- make -j 4
|
||||||
|
- make test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: build-arm64
|
||||||
|
platform:
|
||||||
|
arch: arm64
|
||||||
|
node_selector:
|
||||||
|
kubernetes.io/arch: arm64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: submodules
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
|
- name: build-arm64
|
||||||
|
image: debian:bookworm-slim
|
||||||
|
commands:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get -qy install gcc-12 libsodium-dev cmake make build-essential pkg-config
|
||||||
|
- mkdir build
|
||||||
|
- cd build; cmake ..
|
||||||
|
- make -j 4
|
||||||
|
- make test
|
@ -45,8 +45,8 @@ IF(NOT TARGET libzmq)
|
|||||||
set(BUILD_STATIC ON CACHE BOOL "enable building zmq as static library")
|
set(BUILD_STATIC ON CACHE BOOL "enable building zmq as static library")
|
||||||
set(ENABLE_DRAFTS ON CACHE BOOL "enable zmq drafts")
|
set(ENABLE_DRAFTS ON CACHE BOOL "enable zmq drafts")
|
||||||
set(ENABLE_RADIX_TREE ON CACHE BOOL "enable ENABLE_RADIX_TREE drafts")
|
set(ENABLE_RADIX_TREE ON CACHE BOOL "enable ENABLE_RADIX_TREE drafts")
|
||||||
set(ENABLE_WS ON CACHE BOOL "enable websocket support")
|
set(ENABLE_WS OFF CACHE BOOL "enable websocket support")
|
||||||
set(WITH_OPENPGM ON CACHE BOOL "enable pgm protocol")
|
set(WITH_OPENPGM OFF CACHE BOOL "enable pgm protocol")
|
||||||
set(WITH_LIBSODIUM ON CACHE BOOL "enable static libsodium support")
|
set(WITH_LIBSODIUM ON CACHE BOOL "enable static libsodium support")
|
||||||
set(WITH_LIBSODIUM_STATIC ON CACHE BOOL "enable static libsodium support")
|
set(WITH_LIBSODIUM_STATIC ON CACHE BOOL "enable static libsodium support")
|
||||||
set(ENABLE_CURVE ON CACHE BOOL "enable curve cryptography in libsodium support")
|
set(ENABLE_CURVE ON CACHE BOOL "enable curve cryptography in libsodium support")
|
||||||
@ -65,6 +65,8 @@ IF(NOT TARGET protobuf)
|
|||||||
SET(protobuf_BUILD_SHARED_LIBS OFF CACHE BOOL "disable shared libraries")
|
SET(protobuf_BUILD_SHARED_LIBS OFF CACHE BOOL "disable shared libraries")
|
||||||
#SET(WITH_PROTOC ON CACHE BOOL "enable building of protoc")
|
#SET(WITH_PROTOC ON CACHE BOOL "enable building of protoc")
|
||||||
add_subdirectory(libs/protobuf EXCLUDE_FROM_ALL)
|
add_subdirectory(libs/protobuf EXCLUDE_FROM_ALL)
|
||||||
|
set(PROTOC ${CMAKE_CURRENT_BINARY_DIR}/libs/protobuf/protoc CACHE INTERNAL "" )
|
||||||
|
set(PROTO_SRC_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libs/protobuf/src CACHE INTERNAL "" )
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# we are building with c++20
|
# we are building with c++20
|
||||||
|
@ -13,8 +13,6 @@ function(protobuf_generate_cpp)
|
|||||||
${ARGN})
|
${ARGN})
|
||||||
|
|
||||||
FILE(GLOB PROTO_FILES ${protobuf_PROTO_PATH}/*.proto)
|
FILE(GLOB PROTO_FILES ${protobuf_PROTO_PATH}/*.proto)
|
||||||
set(PROTOC ${CMAKE_BINARY_DIR}/libs/protobuf/protoc)
|
|
||||||
# set(PROTOC protoc)
|
|
||||||
|
|
||||||
FOREACH(proto ${PROTO_FILES})
|
FOREACH(proto ${PROTO_FILES})
|
||||||
FILE(TO_NATIVE_PATH ${proto} proto_native)
|
FILE(TO_NATIVE_PATH ${proto} proto_native)
|
||||||
@ -25,7 +23,7 @@ function(protobuf_generate_cpp)
|
|||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT "${protoDIR}/${protoFILENAME}.pb.cc"
|
OUTPUT "${protoDIR}/${protoFILENAME}.pb.cc"
|
||||||
DEPENDS "${protoDIR}/${protoFILENAME}.proto"
|
DEPENDS "${protoDIR}/${protoFILENAME}.proto"
|
||||||
COMMAND ${PROTOC} --cpp_out=${protoDIR} --proto_path=${protoDIR} --proto_path="${CMAKE_SOURCE_DIR}/libs/protobuf/src" "${protoDIR}/${protoFILENAME}.proto"
|
COMMAND ${PROTOC} --cpp_out=${protoDIR} --proto_path=${protoDIR} --proto_path=${PROTO_SRC_PATH} "${protoDIR}/${protoFILENAME}.proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
ENDFOREACH(proto)
|
ENDFOREACH(proto)
|
||||||
|
Loading…
Reference in New Issue
Block a user