BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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:address",
  18. "//executable_semantics/interpreter:containers",
  19. ],
  20. )
  21. cc_library(
  22. name = "expression",
  23. srcs = ["expression.cpp"],
  24. hdrs = ["expression.h"],
  25. deps = ["//common:indirect_value"],
  26. )
  27. cc_library(
  28. name = "function_definition",
  29. srcs = ["function_definition.cpp"],
  30. hdrs = ["function_definition.h"],
  31. deps = [
  32. ":expression",
  33. ":statement",
  34. ],
  35. )
  36. cc_library(
  37. name = "member",
  38. srcs = ["member.cpp"],
  39. hdrs = ["member.h"],
  40. deps = [":expression"],
  41. )
  42. cc_library(
  43. name = "statement",
  44. srcs = ["statement.cpp"],
  45. hdrs = ["statement.h"],
  46. deps = [
  47. ":expression",
  48. "//common:check",
  49. ],
  50. )
  51. cc_library(
  52. name = "struct_definition",
  53. hdrs = ["struct_definition.h"],
  54. deps = [":member"],
  55. )