blob: b611bacc811b14f331c3c9c8b2d6b1ff6402ae8c [file] [log] [blame]
Tri Vofecee412017-01-07 13:42:32 -08001//
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
Tri Vod0229fb2017-08-10 17:27:49 -070017cc_library {
Tri Vofecee412017-01-07 13:42:32 -080018 name: "libvts_proto_fuzzer",
19 srcs: [
20 "ProtoFuzzerUtils.cpp",
21 "ProtoFuzzerMutator.cpp",
Tri Vo70c1ab62017-03-15 09:19:10 -070022 "ProtoFuzzerMutateFns.cpp",
Tri Vo9f5fd852017-05-20 12:32:26 -070023 "ProtoFuzzerRunner.cpp",
Tri Vof657d672017-07-26 16:13:02 -070024 "ProtoFuzzerStats.cpp",
Tri Vofecee412017-01-07 13:42:32 -080025 ],
26 include_dirs: [
Keun Soo Yima3dc8d42017-02-13 13:28:35 -080027 "test/vts/drivers/hal/common/include",
Tri Vo3b663d82017-01-12 12:26:14 -080028 "test/vts-testcase/fuzz/iface_fuzzer/include",
Tri Vofecee412017-01-07 13:42:32 -080029 ],
30 shared_libs: [
31 "libprotobuf-cpp-full",
Tri Voc5131ff2017-04-20 16:31:30 -070032 "libvintf",
Tri Vofecee412017-01-07 13:42:32 -080033 "libvts_common",
34 "libvts_multidevice_proto",
35 "libvts_proto_fuzzer_proto",
36 ],
37 cflags: [
Chih-Hung Hsieh80a4a952017-10-03 14:27:53 -070038 "-Wall",
39 "-Werror",
Tri Vofecee412017-01-07 13:42:32 -080040 "-Wno-unused-parameter",
41 ],
42}
Tri Vo6c75a122017-01-10 14:31:44 -080043
44cc_binary {
45 name: "vts_proto_fuzzer",
46 srcs: [
47 "ProtoFuzzerMain.cpp",
48 ],
49 include_dirs: [
50 "external/llvm/lib/Fuzzer",
Keun Soo Yima3dc8d42017-02-13 13:28:35 -080051 "test/vts/drivers/hal/common/include",
Tri Vo3b663d82017-01-12 12:26:14 -080052 "test/vts-testcase/fuzz/iface_fuzzer/include",
Tri Vo6c75a122017-01-10 14:31:44 -080053 ],
54 shared_libs: [
55 "libprotobuf-cpp-full",
Tri Vod0229fb2017-08-10 17:27:49 -070056 "libvintf",
Tri Vo6c75a122017-01-10 14:31:44 -080057 "libvts_common",
58 "libvts_multidevice_proto",
Tri Vo6c75a122017-01-10 14:31:44 -080059 "libvts_proto_fuzzer_proto",
60 ],
61 static_libs: [
Tri Vo8ad81ea2017-04-02 12:44:13 -070062 "libFuzzer",
Tri Vod0229fb2017-08-10 17:27:49 -070063 "libvts_proto_fuzzer",
Tri Vo6c75a122017-01-10 14:31:44 -080064 ],
65 cflags: [
Chih-Hung Hsieh80a4a952017-10-03 14:27:53 -070066 "-Wall",
67 "-Werror",
Tri Vo6c75a122017-01-10 14:31:44 -080068 "-Wno-unused-parameter",
69 "-Wno-macro-redefined",
70 "-Wno-extra-tokens",
71 "-Wno-c99-extensions",
72 "-fno-omit-frame-pointer",
73 ],
74}