mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+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:
parent
f38c3b4a82
commit
47d37cb5bb
5
projects/facebook.com/fbthrift/example.thrift
Normal file
5
projects/facebook.com/fbthrift/example.thrift
Normal file
|
@ -0,0 +1,5 @@
|
|||
namespace cpp tamvm
|
||||
|
||||
service ExampleService {
|
||||
i32 get_number(1:i32 number);
|
||||
}
|
44
projects/facebook.com/fbthrift/package.yml
Normal file
44
projects/facebook.com/fbthrift/package.yml
Normal 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
|
Loading…
Reference in a new issue