BUILD 1.8 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. 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. )
  36. cc_test(
  37. name = "proto_to_carbon_test",
  38. srcs = ["proto_to_carbon_test.cpp"],
  39. args = [
  40. "$(locations //executable_semantics:standard_libraries)",
  41. "$(locations //executable_semantics/testdata:carbon_files)",
  42. ],
  43. data = [
  44. "//executable_semantics:standard_libraries",
  45. "//executable_semantics/testdata:carbon_files",
  46. ],
  47. deps = [
  48. ":ast_to_proto_lib",
  49. "//common/fuzzing:carbon_cc_proto",
  50. "//common/fuzzing:proto_to_carbon_lib",
  51. "//executable_semantics/syntax",
  52. "@com_google_googletest//:gtest",
  53. "@com_google_protobuf//:protobuf_headers",
  54. "@llvm-project//llvm:Support",
  55. ],
  56. )