new file: projects/github.com/protobuf-c/protobuf-c/package.yml

new file:   projects/github.com/protobuf-c/protobuf-c/test.proto
This commit is contained in:
Andrii Riabchenko 2023-12-03 15:34:05 +02:00 committed by Jacob Heider
parent 25c2124053
commit 21b1d1bf45
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,26 @@
distributable:
url: https://github.com/protobuf-c/protobuf-c/releases/download/v{{version}}/protobuf-c-{{version}}.tar.gz
strip-components: 1
versions:
github: protobuf-c/protobuf-c
dependencies:
protobuf.dev: ^25.1
build:
script:
- ./configure $CONFIGURE_ARGS
- make --jobs {{ hw.concurrency }} install
env:
# https://github.com/protocolbuffers/protobuf/issues/9947
CFLAGS: "$CFLAGS -DNDEBUG"
CONFIGURE_ARGS:
- --disable-dependency-tracking
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
provides:
- bin/protoc-c
- bin/protoc-gen-c
test:
script:
- protoc-c test.proto --c_out=.
- ls | grep test.pb-c.c
- protoc-c --version | grep {{version}}

View file

@ -0,0 +1,8 @@
syntax = "proto3";
package test;
message TestCase {
string name = 4;
}
message Test {
repeated TestCase case = 1;
}