xref: /aosp_15_r20/external/openscreen/third_party/libfuzzer/BUILD.gn (revision 3f982cf4871df8771c9d4abe6e9a6f8d829b2736)
1# Copyright 2019 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build_overrides/build.gni")
6
7config("ignore_warnings") {
8  if (is_clang) {
9    cflags_cc = [
10      "-Wno-unused-result",
11      "-Wno-exit-time-destructors",
12    ]
13  }
14}
15
16source_set("libfuzzer") {
17  sources = [
18    "src/FuzzerCrossOver.cpp",
19    "src/FuzzerDataFlowTrace.cpp",
20    "src/FuzzerDriver.cpp",
21    "src/FuzzerExtFunctionsDlsym.cpp",
22    "src/FuzzerExtFunctionsWeak.cpp",
23    "src/FuzzerExtFunctionsWindows.cpp",
24    "src/FuzzerExtraCounters.cpp",
25    "src/FuzzerFork.cpp",
26    "src/FuzzerIO.cpp",
27    "src/FuzzerIOPosix.cpp",
28    "src/FuzzerIOWindows.cpp",
29    "src/FuzzerLoop.cpp",
30    "src/FuzzerMain.cpp",
31    "src/FuzzerMerge.cpp",
32    "src/FuzzerMutate.cpp",
33    "src/FuzzerSHA1.cpp",
34    "src/FuzzerTracePC.cpp",
35    "src/FuzzerUtil.cpp",
36    "src/FuzzerUtilDarwin.cpp",
37    "src/FuzzerUtilFuchsia.cpp",
38    "src/FuzzerUtilLinux.cpp",
39    "src/FuzzerUtilPosix.cpp",
40    "src/FuzzerUtilWindows.cpp",
41  ]
42
43  configs += [ ":ignore_warnings" ]
44}
45