BUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. "//executable_semantics/ast:generic_binding",
  14. "@llvm-project//llvm:Support",
  15. ],
  16. )
  17. cc_test(
  18. name = "ast_to_proto_test",
  19. srcs = ["ast_to_proto_test.cpp"],
  20. args = [
  21. "$(location //executable_semantics:data/prelude.carbon)",
  22. "$(locations //executable_semantics/testdata:carbon_files)",
  23. ],
  24. data = [
  25. "//executable_semantics:data/prelude.carbon",
  26. "//executable_semantics/testdata:carbon_files",
  27. ],
  28. deps = [
  29. ":ast_to_proto_lib",
  30. "//common/fuzzing:carbon_cc_proto",
  31. "//executable_semantics/syntax",
  32. "@com_google_googletest//:gtest",
  33. "@com_google_protobuf//:protobuf_headers",
  34. "@llvm-project//llvm:Support",
  35. ],
  36. )