BUILD 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 = "check",
  7. srcs = ["check_internal.h"],
  8. hdrs = ["check.h"],
  9. deps = [
  10. "@llvm-project//llvm:Support",
  11. ],
  12. )
  13. cc_test(
  14. name = "check_test",
  15. srcs = ["check_test.cpp"],
  16. deps = [
  17. ":check",
  18. "@com_google_googletest//:gtest_main",
  19. ],
  20. )
  21. cc_library(
  22. name = "indirect_value",
  23. hdrs = ["indirect_value.h"],
  24. )
  25. cc_test(
  26. name = "indirect_value_test",
  27. srcs = ["indirect_value_test.cpp"],
  28. deps = [
  29. ":indirect_value",
  30. "@com_google_googletest//:gtest_main",
  31. ],
  32. )
  33. cc_library(
  34. name = "ostream",
  35. hdrs = ["ostream.h"],
  36. deps = [
  37. "@llvm-project//llvm:Support",
  38. ],
  39. )
  40. cc_library(
  41. name = "string_helpers",
  42. srcs = ["string_helpers.cpp"],
  43. hdrs = ["string_helpers.h"],
  44. deps = [
  45. ":check",
  46. "@llvm-project//llvm:Support",
  47. ],
  48. )
  49. cc_test(
  50. name = "string_helpers_test",
  51. srcs = ["string_helpers_test.cpp"],
  52. deps = [
  53. ":string_helpers",
  54. "@com_google_googletest//:gtest_main",
  55. "@llvm-project//llvm:Support",
  56. "@llvm-project//llvm:TestingSupport",
  57. ],
  58. )