BUILD 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 = [
  10. "abstract_syntax_tree.h",
  11. "declaration.h",
  12. ],
  13. deps = [
  14. ":function_definition",
  15. ":member",
  16. ":struct_definition",
  17. "//executable_semantics/interpreter:containers",
  18. ],
  19. )
  20. cc_library(
  21. name = "expression",
  22. srcs = ["expression.cpp"],
  23. hdrs = ["expression.h"],
  24. )
  25. cc_library(
  26. name = "function_definition",
  27. srcs = ["function_definition.cpp"],
  28. hdrs = ["function_definition.h"],
  29. deps = [
  30. ":expression",
  31. ":statement",
  32. ],
  33. )
  34. cc_library(
  35. name = "member",
  36. srcs = ["member.cpp"],
  37. hdrs = ["member.h"],
  38. deps = [":expression"],
  39. )
  40. cc_library(
  41. name = "statement",
  42. srcs = ["statement.cpp"],
  43. hdrs = ["statement.h"],
  44. deps = [":expression"],
  45. )
  46. cc_library(
  47. name = "struct_definition",
  48. hdrs = ["struct_definition.h"],
  49. deps = [":member"],
  50. )