2023-12-22 18:00:25 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/facebook/fb303/archive/v{{version.raw}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
|
|
github: facebook/fb303/tags
|
|
|
|
dependencies:
|
|
|
|
# these need to version match, but we don't have a method for that
|
|
|
|
github.com/facebookincubator/fizz: '*'
|
|
|
|
facebook.com/wangle: '*'
|
|
|
|
facebook.com/folly: '*'
|
|
|
|
facebook.com/fbthrift: '>=2023.12.18.0'
|
2024-05-23 19:05:00 +03:00
|
|
|
fmt.dev: ^10
|
2023-12-22 18:00:25 +03:00
|
|
|
gflags.github.io: ^2.2.2
|
|
|
|
google.com/glog: ^0.6
|
|
|
|
libsodium.org: ^1.0.19
|
|
|
|
openssl.org: ^1.1
|
|
|
|
linux:
|
|
|
|
zlib.net: ^1
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
cmake.org: '*'
|
|
|
|
facebook.com/mvfst: '*'
|
|
|
|
boost.org: ^1.84
|
|
|
|
script:
|
|
|
|
- cmake -S . -B build $CMAKE_ARGS
|
|
|
|
- cmake --build build
|
|
|
|
- cmake --install build
|
|
|
|
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
|
|
|
|
- -DPYTHON_EXTENSIONS=OFF
|
|
|
|
- -DBUILD_SHARED_LIBS=ON
|
|
|
|
linux:
|
2024-05-23 19:05:00 +03:00
|
|
|
CC: clang
|
|
|
|
CXX: clang++
|
|
|
|
LD: clang
|
2023-12-22 18:00:25 +03:00
|
|
|
CMAKE_ARGS:
|
|
|
|
- -DCMAKE_C_FLAGS=-fPIC
|
|
|
|
- -DCMAKE_CXX_FLAGS=-fPIC
|
2024-05-23 19:05:00 +03:00
|
|
|
linux/x86-64:
|
|
|
|
CMAKE_ARGS:
|
|
|
|
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie
|
|
|
|
linux/aarch64:
|
|
|
|
CMAKE_ARGS:
|
|
|
|
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie,-latomic
|
2023-12-22 18:00:25 +03:00
|
|
|
test:
|
2023-12-22 19:15:06 +03:00
|
|
|
dependencies:
|
|
|
|
boost.org: ^1.84
|
|
|
|
script:
|
2024-05-23 19:05:00 +03:00
|
|
|
- $CXX -std=c++17 test.cpp -o test $EXTRA_LIBS -lfb303_thrift_cpp -lfolly -lglog -lthriftprotocol -lthriftcpp2 -ldl -lboost_context
|
2023-12-22 19:15:06 +03:00
|
|
|
- ./test | grep 'BaseService'
|
2024-05-23 19:05:00 +03:00
|
|
|
env:
|
|
|
|
CXX: c++
|
|
|
|
linux:
|
|
|
|
CXX: clang++
|
|
|
|
EXTRA_LIBS: -latomic
|