BUILD 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. package(default_visibility = ["//visibility:public"])
  5. cc_library(
  6. name = "enum_base",
  7. hdrs = ["enum_base.h"],
  8. deps = [
  9. "//common:ostream",
  10. "@llvm-project//llvm:Support",
  11. ],
  12. )
  13. cc_library(
  14. name = "enum_base_test_def",
  15. textual_hdrs = ["enum_base_test.def"],
  16. )
  17. cc_test(
  18. name = "enum_base_test",
  19. srcs = ["enum_base_test.cpp"],
  20. deps = [
  21. ":enum_base",
  22. ":enum_base_test_def",
  23. "//common:gtest_main",
  24. "@com_google_googletest//:gtest",
  25. ],
  26. )
  27. cc_library(
  28. name = "index_base",
  29. hdrs = ["index_base.h"],
  30. deps = [
  31. "//common:ostream",
  32. "@llvm-project//llvm:Support",
  33. ],
  34. )
  35. cc_library(
  36. name = "yaml_test_helpers",
  37. testonly = 1,
  38. srcs = ["yaml_test_helpers.cpp"],
  39. hdrs = ["yaml_test_helpers.h"],
  40. deps = [
  41. "//common:ostream",
  42. "@com_google_googletest//:gtest",
  43. "@llvm-project//llvm:Support",
  44. ],
  45. )