pantry/projects/github.com/facebookincubator/fizz/package.yml

65 lines
1.6 KiB
YAML
Raw Normal View History

distributable:
url: https://github.com/facebookincubator/fizz/archive/refs/tags/v{{version.raw}}.tar.gz
strip-components: 1
versions:
github: facebookincubator/fizz/releases/tags
strip: /^v/
dependencies:
boost.org: '*'
google.com/double-conversion: ^3
fmt.dev: ^9
facebook.com/folly: '*'
gflags.github.io: '*'
google.com/glog: '*'
libevent.org: '*'
libsodium.org: '*'
lz4.org: 1
openssl.org: ^1.1
google.github.io/snappy: '*'
facebook.com/zstd: 1
2023-05-08 17:22:48 +03:00
sourceware.org/bzip2: 1
provides:
- bin/fizz
build:
dependencies:
cmake.org: ^3
ninja-build.org: ^1
script: |
cmake -S fizz -B build $ARGS
cmake --build build
cmake --install build
2023-10-02 17:17:26 +03:00
sed -i.bak "s:$PKGX_DIR:\$\{_IMPORT_PREFIX\}/../../../..:g" "{{prefix}}"/lib/cmake/fizz/fizz-targets.cmake
rm "{{prefix}}"/lib/cmake/fizz/fizz-targets.cmake.bak
env:
ARGS:
- -GNinja
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
- -DBUILD_TESTS=OFF
- -DBUILD_SHARED_LIBS=ON
- -DCMAKE_INSTALL_RPATH="{{prefix}}"
linux/aarch64:
ARGS:
- -DCMAKE_C_FLAGS=-fPIC
- -DCMAKE_CXX_FLAGS=-fPIC
- -DCMAKE_EXE_LINKER_FLAGS=-pie
test:
fixture: |
#include <fizz/client/AsyncFizzClient.h>
#include <iostream>
int main() {
auto context = fizz::client::FizzClientContext();
std::cout << toString(context.getSupportedVersions()[0]) << std::endl;
}
script: |
mv $FIXTURE test.cpp
2023-08-14 22:31:01 +03:00
c++ -std=c++17 test.cpp -lfizz -lfolly -lgflags -lglog -levent -lsodium -lcrypto -lssl -o fixture
2023-05-08 17:22:48 +03:00
./fixture | grep TLS