pantry/projects/facebook.com/fbthrift/package.yml
Andrew 47d37cb5bb
+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>
2023-12-12 16:19:24 -05:00

45 lines
1.1 KiB
YAML

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