diff options
author | Randy <randy408@protonmail.com> | 2019-10-15 00:46:03 +0200 |
---|---|---|
committer | Max Moroz <mmoroz@chromium.org> | 2019-10-14 15:46:03 -0700 |
commit | 69a7f1c4139c57bcc7f0b4643ae1bca2117b887b (patch) | |
tree | 71d1119eb83f2bafba97f722e51425a61bed22b4 /projects/libzip/build.sh | |
parent | 5943ef19d4c98efde77b0509ac364e73f7e4c7b3 (diff) |
[libzip] move build script upstream (#2948)
* [libzip] move build.sh upstream
* build script was renamed, update Dockerfile
* add dummy script
* dummy commit
Diffstat (limited to 'projects/libzip/build.sh')
-rw-r--r-- | projects/libzip/build.sh | 49 |
1 files changed, 18 insertions, 31 deletions
diff --git a/projects/libzip/build.sh b/projects/libzip/build.sh index edffec3f..de108ffe 100644 --- a/projects/libzip/build.sh +++ b/projects/libzip/build.sh @@ -1,31 +1,18 @@ -#!/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. -# -################################################################################ - -mkdir build -cd build -cmake -DBUILD_SHARED_LIBS=OFF -DENABLE_GNUTLS=OFF -DENABLE_MBEDTLS=OFF -DENABLE_OPENSSL=OFF -DBUILD_TOOLS=OFF .. -make -j$(nproc) - -$CXX $CXXFLAGS -std=c++11 -I. -I../lib \ - $SRC/libzip/regress/zip_read_fuzzer.cc \ - -o $OUT/zip_read_fuzzer \ - $LIB_FUZZING_ENGINE $SRC/libzip/build/lib/libzip.a -lz - -find $SRC/libzip/regress -name "*.zip" | \ - xargs zip $OUT/zip_read_fuzzer_seed_corpus.zip - -cp $SRC/libzip/regress/zip_read_fuzzer.dict $OUT/ +#!/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.
+#
+################################################################################
+# Run the OSS-Fuzz script in the project
+$SRC/libzip/regress/ossfuzz.sh
\ No newline at end of file |