BUILD 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. cc_library(
  5. name = "ast_to_proto_lib",
  6. srcs = ["ast_to_proto.cpp"],
  7. hdrs = ["ast_to_proto.h"],
  8. deps = [
  9. "//common/fuzzing:carbon_cc_proto",
  10. "//executable_semantics/ast",
  11. "//executable_semantics/ast:declaration",
  12. "//executable_semantics/ast:expression",
  13. "@llvm-project//llvm:Support",
  14. ],
  15. )
  16. cc_test(
  17. name = "ast_to_proto_test",
  18. srcs = ["ast_to_proto_test.cpp"],
  19. args = [
  20. "$(locations //executable_semantics:standard_libraries)",
  21. "$(locations //executable_semantics/testdata:carbon_files)",
  22. ],
  23. data = [
  24. "//executable_semantics:standard_libraries",
  25. "//executable_semantics/testdata:carbon_files",
  26. ],
  27. deps = [
  28. ":ast_to_proto_lib",
  29. "//common/fuzzing:carbon_cc_proto",
  30. "//executable_semantics/syntax",
  31. "@com_google_googletest//:gtest",
  32. "@com_google_protobuf//:protobuf_headers",
  33. "@llvm-project//llvm:Support",
  34. ],
  35. )