BUILD 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. ],
  15. )
  16. cc_library(
  17. name = "expression",
  18. srcs = ["expression.cpp"],
  19. hdrs = ["expression.h"],
  20. )
  21. cc_library(
  22. name = "field_list",
  23. srcs = ["field_list.cpp"],
  24. hdrs = ["field_list.h"],
  25. deps = [":expression"],
  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 = [":expression"],
  47. )
  48. cc_library(
  49. name = "struct_definition",
  50. hdrs = ["struct_definition.h"],
  51. deps = [":member"],
  52. )