+facebook.com/fbthrift (#4373)

* new file:   projects/facebook.com/fbthrift/package.yml

* new file:   projects/facebook.com/fbthrift/example.thrift
	modified:   projects/facebook.com/fbthrift/package.yml

* fix version coding; unlock facebook deps

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
Andrew 2023-12-12 23:19:24 +02:00 committed by GitHub
parent f38c3b4a82
commit 47d37cb5bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,5 @@
namespace cpp tamvm
service ExampleService {
i32 get_number(1:i32 number);
}

View file

@ -0,0 +1,44 @@
distributable:
url: https://github.com/facebook/fbthrift/archive/v{{version.raw}}.tar.gz
strip-components: 1
versions:
github: facebook/fbthrift/tags
ignore: [v0.x.y, 0.x.y] # they moved _to_ calver
dependencies:
# these need to version match, but we don't have a method for that
github.com/facebookincubator/fizz: '*'
facebook.com/folly: '*'
facebook.com/wangle: '*'
fmt.dev: ^9
gflags.github.io: ^2.2.2
google.com/glog: ^0.6
openssl.org: ^1.1
boost.org: ^1.83
facebook.com/zstd: ^1.5.5
zlib.net: ^1.3
libsodium.org: ^1.0.19
build:
dependencies:
cmake.org: '*'
facebook.com/mvfst: '*'
gnu.org/bison: '*'
github.com/westes/flex: '*'
script:
- cmake -S . -B build/shared $CMAKE_ARGS
- cmake --build build/shared
- cmake --install build/shared
env:
CMAKE_ARGS:
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
- -DCMAKE_INSTALL_LIBDIR=lib
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_FIND_FRAMEWORK=LAST
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -Wno-dev
- -DBUILD_TESTING=OFF
provides:
- bin/thrift1
test:
script:
- thrift1 --gen mstch_cpp2 example.thrift
- ls | grep gen-cpp2