Skip to content

Commit

Permalink
[wt] emweb initial integration (#10714)
Browse files Browse the repository at this point in the history
My PR emweb/wt#203

Signed-off-by: Arjun Singh <[email protected]>
  • Loading branch information
0x34d authored Oct 29, 2023
1 parent 4c40a91 commit 08d4746
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
20 changes: 20 additions & 0 deletions projects/wt/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2023 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 libboost-all-dev cmake
RUN git clone https://github.com/emweb/wt.git
COPY build.sh $SRC/
WORKDIR $SRC/wt/
28 changes: 28 additions & 0 deletions projects/wt/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash -eu
# Copyright 2023 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.
#
################################################################################

export CXXFLAGS="$CFLAGS"

mkdir -p mybuild

pushd mybuild/
cmake -DSHARED_LIBS=OFF -DBUILD_FUZZ=ON -DBoost_USE_STATIC_LIBS=ON ../.
make -j$(nproc) --ignore-errors
cp fuzz/fuzz-* $OUT/
popd

cp fuzz/*zip $OUT/
12 changes: 12 additions & 0 deletions projects/wt/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
homepage: "https://www.webtoolkit.eu/wt"
language: c++
primary_contact: "[email protected]"
auto_ccs:
- "[email protected]"
fuzzing_engines:
- libfuzzer
- afl
- honggfuzz
sanitizers:
- address
main_repo: 'https://github.com/emweb/wt'

0 comments on commit 08d4746

Please sign in to comment.