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