BUILD 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 = "error",
  23. hdrs = ["error.h"],
  24. deps = [
  25. ":check",
  26. ":ostream",
  27. "@llvm-project//llvm:Support",
  28. ],
  29. )
  30. cc_test(
  31. name = "error_test",
  32. srcs = ["error_test.cpp"],
  33. deps = [
  34. ":error",
  35. "@com_google_googletest//:gtest_main",
  36. ],
  37. )
  38. cc_library(
  39. name = "indirect_value",
  40. hdrs = ["indirect_value.h"],
  41. )
  42. cc_test(
  43. name = "indirect_value_test",
  44. srcs = ["indirect_value_test.cpp"],
  45. deps = [
  46. ":indirect_value",
  47. "@com_google_googletest//:gtest_main",
  48. ],
  49. )
  50. cc_library(
  51. name = "metaprogramming",
  52. hdrs = ["metaprogramming.h"],
  53. )
  54. cc_library(
  55. name = "ostream",
  56. hdrs = ["ostream.h"],
  57. deps = [
  58. ":metaprogramming",
  59. "@llvm-project//llvm:Support",
  60. ],
  61. )
  62. cc_library(
  63. name = "string_helpers",
  64. srcs = ["string_helpers.cpp"],
  65. hdrs = ["string_helpers.h"],
  66. deps = [
  67. ":check",
  68. ":error",
  69. "@llvm-project//llvm:Support",
  70. ],
  71. )
  72. cc_test(
  73. name = "string_helpers_test",
  74. srcs = ["string_helpers_test.cpp"],
  75. deps = [
  76. ":string_helpers",
  77. "@com_google_googletest//:gtest_main",
  78. "@llvm-project//llvm:Support",
  79. ],
  80. )