|
Packit Service |
def718 |
#!/bin/bash -eu
|
|
Packit Service |
def718 |
# Copyright 2018 Google Inc.
|
|
Packit Service |
def718 |
#
|
|
Packit Service |
def718 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
Packit Service |
def718 |
# you may not use this file except in compliance with the License.
|
|
Packit Service |
def718 |
# You may obtain a copy of the License at
|
|
Packit Service |
def718 |
#
|
|
Packit Service |
def718 |
# http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit Service |
def718 |
#
|
|
Packit Service |
def718 |
# Unless required by applicable law or agreed to in writing, software
|
|
Packit Service |
def718 |
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit Service |
def718 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit Service |
def718 |
# See the License for the specific language governing permissions and
|
|
Packit Service |
def718 |
# limitations under the License.
|
|
Packit Service |
def718 |
#
|
|
Packit Service |
def718 |
################################################################################
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
./autogen.sh
|
|
Packit Service |
def718 |
./configure --enable-static --disable-shared
|
|
Packit Service |
def718 |
make -j$(nproc) all
|
|
Packit Service |
def718 |
ar rc json_c.a *.o
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
cp $SRC/*.dict $OUT/
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
for f in $SRC/*_fuzzer.cc; do
|
|
Packit Service |
def718 |
fuzzer=$(basename "$f" _fuzzer.cc)
|
|
Packit Service |
def718 |
$CXX $CXXFLAGS -std=c++11 -I$SRC/json-c \
|
|
Packit Service |
def718 |
$SRC/${fuzzer}_fuzzer.cc -o $OUT/${fuzzer}_fuzzer \
|
|
Packit Service |
def718 |
-lFuzzingEngine $SRC/json-c/json_c.a
|
|
Packit Service |
def718 |
done
|