summaryrefslogtreecommitdiff
path: root/chromium/third_party/opencv/BUILD.gn
blob: 7dadf96d62eeef408c1125ea119b4b4660da477c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import("//testing/libfuzzer/fuzzer_test.gni")

config("opencv_warnings") {
  cflags = [ "-Wno-unused-function" ]
}

source_set("emd") {
  sources = [
    "src/emd.cpp",
    "src/emd_wrapper.h",
  ]

  defines = [ "CHROMIUM_OPENCV" ]

  deps = [ "//base" ]

  configs -= [ "//build/config/compiler:chromium_code" ]
  configs += [
    "//build/config/compiler:no_chromium_code",
    ":opencv_warnings",
  ]
}

fuzzer_test("opencv_emd_fuzzer") {
  sources = [ "src/emd_fuzzer.cc" ]
  deps = [ ":emd" ]
}