• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2016 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//       http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17cc_library {
18    name: "libvts_proto_fuzzer",
19    srcs: [
20        "ProtoFuzzerUtils.cpp",
21        "ProtoFuzzerMutator.cpp",
22        "ProtoFuzzerMutateFns.cpp",
23        "ProtoFuzzerRunner.cpp",
24        "ProtoFuzzerStats.cpp",
25    ],
26    include_dirs: [
27        "test/vts/drivers/hal/common/include",
28        "test/vts-testcase/fuzz/iface_fuzzer/include",
29    ],
30    shared_libs: [
31        "libprotobuf-cpp-full",
32        "libvintf",
33        "libvts_common",
34        "libvts_multidevice_proto",
35        "libvts_proto_fuzzer_proto",
36    ],
37    cflags: [
38        "-Wall",
39        "-Werror",
40        "-Wno-unused-parameter",
41    ],
42}
43
44cc_binary {
45    name: "vts_proto_fuzzer",
46    srcs: [
47        "ProtoFuzzerMain.cpp",
48    ],
49    include_dirs: [
50        "external/llvm/lib/Fuzzer",
51        "test/vts/drivers/hal/common/include",
52        "test/vts-testcase/fuzz/iface_fuzzer/include",
53    ],
54    shared_libs: [
55        "libprotobuf-cpp-full",
56        "libvintf",
57        "libvts_common",
58        "libvts_multidevice_proto",
59        "libvts_proto_fuzzer_proto",
60    ],
61    static_libs: [
62        "libFuzzer",
63        "libvts_proto_fuzzer",
64    ],
65    cflags: [
66        "-Wall",
67        "-Werror",
68        "-Wno-unused-parameter",
69        "-Wno-macro-redefined",
70        "-Wno-extra-tokens",
71        "-Wno-c99-extensions",
72        "-fno-omit-frame-pointer",
73    ],
74}
75