BUILD 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 = "pretty_stack_trace_function",
  16. hdrs = ["pretty_stack_trace_function.h"],
  17. deps = [
  18. "@llvm-project//llvm:Support",
  19. ],
  20. )
  21. cc_library(
  22. name = "value_store",
  23. hdrs = ["value_store.h"],
  24. deps = [
  25. ":index_base",
  26. ":yaml",
  27. "//common:check",
  28. "//common:ostream",
  29. "@llvm-project//llvm:Support",
  30. ],
  31. )
  32. cc_test(
  33. name = "value_store_test",
  34. size = "small",
  35. srcs = ["value_store_test.cpp"],
  36. deps = [
  37. ":value_store",
  38. "//testing/base:gtest_main",
  39. "//testing/base:test_raw_ostream",
  40. "//toolchain/testing:yaml_test_helpers",
  41. "@com_google_googletest//:gtest",
  42. ],
  43. )
  44. cc_library(
  45. name = "yaml",
  46. hdrs = ["yaml.h"],
  47. deps = [
  48. "//common:check",
  49. "//common:ostream",
  50. "@llvm-project//llvm:Support",
  51. ],
  52. )