• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15################################################################################
16
17PROJECT_YAML_TEMPLATE = """\
18homepage: "<your_project_homepage>"
19primary_contact: "<primary_contact_email>"
20"""
21
22DOCKER_TEMPLATE = """\
23# Copyright %(year)d Google Inc.
24#
25# Licensed under the Apache License, Version 2.0 (the "License");
26# you may not use this file except in compliance with the License.
27# You may obtain a copy of the License at
28#
29#      http://www.apache.org/licenses/LICENSE-2.0
30#
31# Unless required by applicable law or agreed to in writing, software
32# distributed under the License is distributed on an "AS IS" BASIS,
33# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34# See the License for the specific language governing permissions and
35# limitations under the License.
36#
37################################################################################
38
39FROM gcr.io/oss-fuzz-base/base-builder
40MAINTAINER your@email.com
41RUN apt-get update && apt-get install -y make autoconf automake libtool
42RUN git clone --depth 1 <git_url> %(project_name)s     # or use other version control
43WORKDIR %(project_name)s
44COPY build.sh $SRC/
45"""
46
47BUILD_TEMPLATE = """\
48#!/bin/bash -eu
49# Copyright %(year)d Google Inc.
50#
51# Licensed under the Apache License, Version 2.0 (the "License");
52# you may not use this file except in compliance with the License.
53# You may obtain a copy of the License at
54#
55#      http://www.apache.org/licenses/LICENSE-2.0
56#
57# Unless required by applicable law or agreed to in writing, software
58# distributed under the License is distributed on an "AS IS" BASIS,
59# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
60# See the License for the specific language governing permissions and
61# limitations under the License.
62#
63################################################################################
64
65# build project
66# e.g.
67# ./autogen.sh
68# ./configure
69# make -j$(nproc) all
70
71# build fuzzers
72# e.g.
73# $CXX $CXXFLAGS -std=c++11 -Iinclude \\
74#     /path/to/name_of_fuzzer.cc -o $OUT/name_of_fuzzer \\
75#     $LIB_FUZZING_ENGINE /path/to/library.a
76"""
77