BUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
  5. package(default_visibility = ["//visibility:public"])
  6. cc_library(
  7. name = "index_base",
  8. hdrs = ["index_base.h"],
  9. deps = [
  10. "//common:ostream",
  11. "@llvm-project//llvm:Support",
  12. ],
  13. )
  14. cc_library(
  15. name = "kind_switch",
  16. hdrs = ["kind_switch.h"],
  17. deps = [
  18. "@llvm-project//llvm:Support",
  19. ],
  20. )
  21. cc_library(
  22. name = "pretty_stack_trace_function",
  23. hdrs = ["pretty_stack_trace_function.h"],
  24. deps = [
  25. "@llvm-project//llvm:Support",
  26. ],
  27. )
  28. cc_library(
  29. name = "value_store",
  30. hdrs = ["value_store.h"],
  31. deps = [
  32. ":index_base",
  33. ":yaml",
  34. "//common:check",
  35. "//common:ostream",
  36. "@llvm-project//llvm:Support",
  37. ],
  38. )
  39. cc_test(
  40. name = "value_store_test",
  41. size = "small",
  42. srcs = ["value_store_test.cpp"],
  43. deps = [
  44. ":value_store",
  45. "//testing/base:gtest_main",
  46. "//testing/base:test_raw_ostream",
  47. "//toolchain/testing:yaml_test_helpers",
  48. "@googletest//:gtest",
  49. ],
  50. )
  51. cc_library(
  52. name = "yaml",
  53. hdrs = ["yaml.h"],
  54. deps = [
  55. "//common:check",
  56. "//common:ostream",
  57. "@llvm-project//llvm:Support",
  58. ],
  59. )