BUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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:hashing",
  36. "//common:ostream",
  37. "@llvm-project//llvm:Support",
  38. ],
  39. )
  40. cc_test(
  41. name = "value_store_test",
  42. size = "small",
  43. srcs = ["value_store_test.cpp"],
  44. deps = [
  45. ":value_store",
  46. "//testing/base:gtest_main",
  47. "//testing/base:test_raw_ostream",
  48. "//toolchain/testing:yaml_test_helpers",
  49. "@googletest//:gtest",
  50. ],
  51. )
  52. cc_library(
  53. name = "yaml",
  54. hdrs = ["yaml.h"],
  55. deps = [
  56. "//common:check",
  57. "//common:ostream",
  58. "@llvm-project//llvm:Support",
  59. ],
  60. )