Tri Vo | fecee41 | 2017-01-07 13:42:32 -0800 | [diff] [blame] | 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 | |
Tri Vo | d0229fb | 2017-08-10 17:27:49 -0700 | [diff] [blame] | 17 | cc_library { |
Tri Vo | fecee41 | 2017-01-07 13:42:32 -0800 | [diff] [blame] | 18 | name: "libvts_proto_fuzzer", |
| 19 | srcs: [ |
| 20 | "ProtoFuzzerUtils.cpp", |
| 21 | "ProtoFuzzerMutator.cpp", |
Tri Vo | 70c1ab6 | 2017-03-15 09:19:10 -0700 | [diff] [blame] | 22 | "ProtoFuzzerMutateFns.cpp", |
Tri Vo | 9f5fd85 | 2017-05-20 12:32:26 -0700 | [diff] [blame] | 23 | "ProtoFuzzerRunner.cpp", |
Tri Vo | f657d67 | 2017-07-26 16:13:02 -0700 | [diff] [blame] | 24 | "ProtoFuzzerStats.cpp", |
Tri Vo | fecee41 | 2017-01-07 13:42:32 -0800 | [diff] [blame] | 25 | ], |
| 26 | include_dirs: [ |
Keun Soo Yim | a3dc8d4 | 2017-02-13 13:28:35 -0800 | [diff] [blame] | 27 | "test/vts/drivers/hal/common/include", |
Tri Vo | 3b663d8 | 2017-01-12 12:26:14 -0800 | [diff] [blame] | 28 | "test/vts-testcase/fuzz/iface_fuzzer/include", |
Tri Vo | fecee41 | 2017-01-07 13:42:32 -0800 | [diff] [blame] | 29 | ], |
| 30 | shared_libs: [ |
| 31 | "libprotobuf-cpp-full", |
Tri Vo | c5131ff | 2017-04-20 16:31:30 -0700 | [diff] [blame] | 32 | "libvintf", |
Tri Vo | fecee41 | 2017-01-07 13:42:32 -0800 | [diff] [blame] | 33 | "libvts_common", |
| 34 | "libvts_multidevice_proto", |
| 35 | "libvts_proto_fuzzer_proto", |
| 36 | ], |
| 37 | cflags: [ |
Chih-Hung Hsieh | 80a4a95 | 2017-10-03 14:27:53 -0700 | [diff] [blame] | 38 | "-Wall", |
| 39 | "-Werror", |
Tri Vo | fecee41 | 2017-01-07 13:42:32 -0800 | [diff] [blame] | 40 | "-Wno-unused-parameter", |
| 41 | ], |
| 42 | } |
Tri Vo | 6c75a12 | 2017-01-10 14:31:44 -0800 | [diff] [blame] | 43 | |
| 44 | cc_binary { |
| 45 | name: "vts_proto_fuzzer", |
| 46 | srcs: [ |
| 47 | "ProtoFuzzerMain.cpp", |
| 48 | ], |
| 49 | include_dirs: [ |
| 50 | "external/llvm/lib/Fuzzer", |
Keun Soo Yim | a3dc8d4 | 2017-02-13 13:28:35 -0800 | [diff] [blame] | 51 | "test/vts/drivers/hal/common/include", |
Tri Vo | 3b663d8 | 2017-01-12 12:26:14 -0800 | [diff] [blame] | 52 | "test/vts-testcase/fuzz/iface_fuzzer/include", |
Tri Vo | 6c75a12 | 2017-01-10 14:31:44 -0800 | [diff] [blame] | 53 | ], |
| 54 | shared_libs: [ |
| 55 | "libprotobuf-cpp-full", |
Tri Vo | d0229fb | 2017-08-10 17:27:49 -0700 | [diff] [blame] | 56 | "libvintf", |
Tri Vo | 6c75a12 | 2017-01-10 14:31:44 -0800 | [diff] [blame] | 57 | "libvts_common", |
| 58 | "libvts_multidevice_proto", |
Tri Vo | 6c75a12 | 2017-01-10 14:31:44 -0800 | [diff] [blame] | 59 | "libvts_proto_fuzzer_proto", |
| 60 | ], |
| 61 | static_libs: [ |
Tri Vo | 8ad81ea | 2017-04-02 12:44:13 -0700 | [diff] [blame] | 62 | "libFuzzer", |
Tri Vo | d0229fb | 2017-08-10 17:27:49 -0700 | [diff] [blame] | 63 | "libvts_proto_fuzzer", |
Tri Vo | 6c75a12 | 2017-01-10 14:31:44 -0800 | [diff] [blame] | 64 | ], |
| 65 | cflags: [ |
Chih-Hung Hsieh | 80a4a95 | 2017-10-03 14:27:53 -0700 | [diff] [blame] | 66 | "-Wall", |
| 67 | "-Werror", |
Tri Vo | 6c75a12 | 2017-01-10 14:31:44 -0800 | [diff] [blame] | 68 | "-Wno-unused-parameter", |
| 69 | "-Wno-macro-redefined", |
| 70 | "-Wno-extra-tokens", |
| 71 | "-Wno-c99-extensions", |
| 72 | "-fno-omit-frame-pointer", |
| 73 | ], |
| 74 | } |