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 17 cc_library_shared { 18 name: "libvts_proto_fuzzer", 19 srcs: [ 20 "ProtoFuzzerUtils.cpp", 21 "ProtoFuzzerMutator.cpp", 22 "ProtoFuzzerMutateFns.cpp", 23 ], 24 include_dirs: [ 25 "test/vts/drivers/hal/common/include", 26 "test/vts-testcase/fuzz/iface_fuzzer/include", 27 ], 28 shared_libs: [ 29 "libprotobuf-cpp-full", 30 "libvts_common", 31 "libvts_multidevice_proto", 32 "libvts_proto_fuzzer_proto", 33 ], 34 cflags: [ 35 "-Wno-unused-parameter", 36 ], 37 } 38 39 cc_binary { 40 name: "vts_proto_fuzzer", 41 srcs: [ 42 "ProtoFuzzerMain.cpp", 43 ], 44 include_dirs: [ 45 "external/llvm/lib/Fuzzer", 46 "test/vts/drivers/hal/common/include", 47 "test/vts-testcase/fuzz/iface_fuzzer/include", 48 ], 49 shared_libs: [ 50 "libprotobuf-cpp-full", 51 "libvts_common", 52 "libvts_multidevice_proto", 53 "libvts_proto_fuzzer", 54 "libvts_proto_fuzzer_proto", 55 ], 56 static_libs: [ 57 "libLLVMFuzzer", 58 ], 59 cflags: [ 60 "-Wno-unused-parameter", 61 "-Wno-macro-redefined", 62 "-Wno-extra-tokens", 63 "-Wno-c99-extensions", 64 "-fno-omit-frame-pointer", 65 ], 66 } 67