diff options
Diffstat (limited to 'projects/libregf/build.sh')
-rwxr-xr-x | projects/libregf/build.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/projects/libregf/build.sh b/projects/libregf/build.sh new file mode 100755 index 00000000..07ce84e1 --- /dev/null +++ b/projects/libregf/build.sh @@ -0,0 +1,29 @@ +#!/bin/bash -eu +# Copyright 2020 Google Inc. +# +# 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. +# +################################################################################ + +# Prepare the project source for build. +./synclibs.sh +./synctestdata.sh +./autogen.sh +./configure --enable-shared=no + +# Build the project and fuzzer binaries. +make -j$(nproc) LIB_FUZZING_ENGINE=${LIB_FUZZING_ENGINE} + +# Copy the fuzzer binaries and test data to the output directory. +find ossfuzz -executable -type f -exec cp {} ${OUT} \; +(cd tests/input/public/ && zip ${OUT}/file_fuzzer_seed_corpus.zip *) |