BUILD 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. load("@rules_cc//cc:defs.bzl", "cc_library")
  5. package(default_visibility = ["//executable_semantics:__subpackages__"])
  6. cc_library(
  7. name = "declaration",
  8. srcs = ["declaration.cpp"],
  9. hdrs = ["declaration.h"],
  10. deps = [
  11. ":function_definition",
  12. ":member",
  13. ":struct_definition",
  14. "//executable_semantics/interpreter:containers",
  15. ],
  16. )
  17. cc_library(
  18. name = "expression",
  19. srcs = ["expression.cpp"],
  20. hdrs = ["expression.h"],
  21. )
  22. cc_library(
  23. name = "field_list",
  24. srcs = ["field_list.cpp"],
  25. hdrs = ["field_list.h"],
  26. deps = [":expression"],
  27. )
  28. cc_library(
  29. name = "function_definition",
  30. srcs = ["function_definition.cpp"],
  31. hdrs = ["function_definition.h"],
  32. deps = [
  33. ":expression",
  34. ":statement",
  35. ],
  36. )
  37. cc_library(
  38. name = "member",
  39. srcs = ["member.cpp"],
  40. hdrs = ["member.h"],
  41. deps = [":expression"],
  42. )
  43. cc_library(
  44. name = "statement",
  45. srcs = ["statement.cpp"],
  46. hdrs = ["statement.h"],
  47. deps = [":expression"],
  48. )
  49. cc_library(
  50. name = "struct_definition",
  51. hdrs = ["struct_definition.h"],
  52. deps = [":member"],
  53. )