BUILD.gn 868 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. import("//testing/test.gni")
  5. config("one_euro_filter_config") {
  6. include_dirs = [ "src" ]
  7. }
  8. static_library("one_euro_filter") {
  9. sources = [
  10. "src/low_pass_filter.cc",
  11. "src/low_pass_filter.h",
  12. "src/one_euro_filter.cc",
  13. "src/one_euro_filter.h",
  14. ]
  15. configs -= [ "//build/config/compiler:chromium_code" ]
  16. configs += [ "//build/config/compiler:no_chromium_code" ]
  17. public_configs = [ ":one_euro_filter_config" ]
  18. }
  19. test("one_euro_filter_unittests") {
  20. include_dirs = [ "tests" ]
  21. sources = [
  22. "tests/gtest_main.cc",
  23. "tests/one_euro_filter_unittest.cc",
  24. ]
  25. deps = [
  26. ":one_euro_filter",
  27. "//testing/gtest",
  28. ]
  29. public_configs = [ ":one_euro_filter_config" ]
  30. }