# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
config("farmhash_include") {
include_dirs = [ "src/src" ]
}
config("farmhash-warnings") {
cflags = []
# The reduction of farmhash files to a minimum triggers -Wunused-function
# warnings in farmhash.c
cflags += [ "-Wno-unused-function" ]
}
source_set("farmhash") {
public = [ "src/src/farmhash.h" ]
sources = [ "src/src/farmhash.cc" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":farmhash-warnings" ]
public_configs = [ ":farmhash_include" ]
}