From 4f19ce2b5d8aa4eec2e570fbf775ca3dffb0df1e Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Tue, 1 Jun 2021 22:40:12 +0100 Subject: [PATCH] Pistache: initial integration (#5793) * pistache: initial integration. * updated license header. * Updated the pistache set up * Updated setup to use meson instead of cmake. * updated dockerfile to reflect upstream merge. * use the actual real link. * Set up email list for pistache. * Fuzzer is now upstream. --- projects/pistache/Dockerfile | 22 ++++++++++++++++++++++ projects/pistache/build.sh | 22 ++++++++++++++++++++++ projects/pistache/project.yaml | 10 ++++++++++ 3 files changed, 54 insertions(+) create mode 100644 projects/pistache/Dockerfile create mode 100755 projects/pistache/build.sh create mode 100644 projects/pistache/project.yaml diff --git a/projects/pistache/Dockerfile b/projects/pistache/Dockerfile new file mode 100644 index 000000000..7071af9a5 --- /dev/null +++ b/projects/pistache/Dockerfile @@ -0,0 +1,22 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +FROM gcr.io/oss-fuzz-base/base-builder +RUN apt-get update && apt-get install -y make autoconf automake libtool +RUN pip3 install meson==0.53.0 ninja +RUN git clone --depth 1 https://github.com/pistacheio/pistache pistache +WORKDIR pistache +COPY build.sh $SRC/ diff --git a/projects/pistache/build.sh b/projects/pistache/build.sh new file mode 100755 index 000000000..ea8fd177e --- /dev/null +++ b/projects/pistache/build.sh @@ -0,0 +1,22 @@ +#!/bin/bash -eu +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +mkdir build && cd build +meson --default-library=static ../ +ninja +$CXX $CXXFLAGS $LIB_FUZZING_ENGINE -o $OUT/fuzz_parsers \ + -std=c++17 -I../include/ ../tests/fuzzers/fuzz_parser.cpp ./src/libpistache.a diff --git a/projects/pistache/project.yaml b/projects/pistache/project.yaml new file mode 100644 index 000000000..8da315c3a --- /dev/null +++ b/projects/pistache/project.yaml @@ -0,0 +1,10 @@ +homepage: "http://pistache.io" +language: c++ +primary_contact: "kip@thevertigo.com" +main_repo: "https://github.com/pistacheio/pistache" +auto_ccs: + - "dennis.jenkins.75@gmail.com" + - "andrea@pappacoda.it" + - "hyperxor@protonmail.com" + - "auquetal@gmail.com" + - "david@adalogics.com"