BUILD.gn 718 B

123456789101112131415161718192021222324252627
  1. # Copyright 2020 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. config("farmhash_include") {
  5. include_dirs = [ "src/src" ]
  6. }
  7. config("farmhash-warnings") {
  8. cflags = []
  9. # The reduction of farmhash files to a minimum triggers -Wunused-function
  10. # warnings in farmhash.c
  11. cflags += [ "-Wno-unused-function" ]
  12. }
  13. source_set("farmhash") {
  14. public = [ "src/src/farmhash.h" ]
  15. sources = [ "src/src/farmhash.cc" ]
  16. configs -= [ "//build/config/compiler:chromium_code" ]
  17. configs += [ "//build/config/compiler:no_chromium_code" ]
  18. configs += [ ":farmhash-warnings" ]
  19. public_configs = [ ":farmhash_include" ]
  20. }