diff options
author | Google AutoFuzz Team <security-tps@google.com> | 2019-08-02 00:37:55 +0200 |
---|---|---|
committer | Max Moroz <mmoroz@chromium.org> | 2019-08-01 15:37:55 -0700 |
commit | 0073eebe041629978a8c1591e90b729076c02d4d (patch) | |
tree | 911f14e22289d15b8c0901643c7eb6b35c861f51 /projects/zopfli/build.sh | |
parent | fc4c02825eebbd2fdadb3b58d8f519ac3b547821 (diff) |
[zopfli] Add zopfli as a starting point (#2631)
* add zopfli
* added primary contact
* update zopfli files
* removed unnecessary comments
* pushed new version of target
* added FuzzedDataProvider
Diffstat (limited to 'projects/zopfli/build.sh')
-rwxr-xr-x | projects/zopfli/build.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/projects/zopfli/build.sh b/projects/zopfli/build.sh new file mode 100755 index 00000000..14dac027 --- /dev/null +++ b/projects/zopfli/build.sh @@ -0,0 +1,27 @@ +#!/bin/bash -eu +# Copyright 2019 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. +# +################################################################################ + +# build project +make -j$(nproc) clean +make -j$(nproc) libzopfli.a + +# build fuzzers +for fuzzers in $(find $SRC -name '*_fuzzer.cc'); do + base=$(basename -s .cc $fuzzers) + $CXX $CXXFLAGS -std=c++11 -I. -Isrc/zopfli \ + $fuzzers ./libzopfli.a -o $OUT/$base $LIB_FUZZING_ENGINE +done |