blob: 722f95e5081819807c6da0e2f90451800614c229 [file] [log] [blame]
# Copyright 2020 The Chromium Authors. All rights reserved.
# 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" ]
}