2023-05-02 05:50:30 +03:00
|
|
|
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
|
2023-12-19 00:29:50 +03:00
|
|
|
zlib.net: ^1
|
2023-05-02 05:50:30 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/fizz
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
cmake.org: ^3
|
|
|
|
ninja-build.org: ^1
|
2023-10-03 01:00:52 +03:00
|
|
|
script:
|
2023-12-19 00:29:50 +03:00
|
|
|
# compilation errors in 2023.12.18.0
|
|
|
|
- run: |
|
|
|
|
sed -i -e '/#include <fizz\/crypto\/aead\/AESGCM128.h>/a\
|
|
|
|
#include <fizz/crypto/exchange/X25519.h>\
|
|
|
|
#include <fizz/protocol/OpenSSLFactory.h>' FizzServerCommand.cpp
|
|
|
|
if: =2023.12.18.0
|
|
|
|
working-directory: fizz/tool
|
|
|
|
|
2023-10-03 01:00:52 +03:00
|
|
|
- cmake -S fizz -B build $ARGS
|
|
|
|
- cmake --build build
|
|
|
|
- cmake --install build
|
2023-09-08 04:24:33 +03:00
|
|
|
|
2023-10-03 01:00:52 +03:00
|
|
|
- run: |
|
|
|
|
sed -E -i.bak \
|
|
|
|
-e "s:{{pkgx.prefix}}:\$\{_IMPORT_PREFIX\}/../../../..:g" \
|
|
|
|
-e '/^ INTERFACE_INCLUDE_DIRECTORIES/ s|/v([0-9]+)(\.[0-9]+)*[a-z]?/include|/v\1/include|g' \
|
|
|
|
-e '/^ INTERFACE_LINK_LIBRARIES/ s|/v([0-9]+)(\.[0-9]+)*[a-z]?/lib|/v\1/lib|g' \
|
|
|
|
fizz-targets.cmake
|
|
|
|
rm "{{prefix}}"/lib/cmake/fizz/fizz-targets.cmake.bak
|
2023-12-19 00:29:50 +03:00
|
|
|
working-directory: '{{prefix}}/lib/cmake/fizz'
|
2023-05-02 05:50:30 +03:00
|
|
|
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
|