You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
574 B

3 months ago
  1. yaml_cpp_defines = select({
  2. # On Windows, ensure static linking is used.
  3. "@platforms//os:windows": ["YAML_CPP_STATIC_DEFINE", "YAML_CPP_NO_CONTRIB"],
  4. "//conditions:default": [],
  5. })
  6. cc_library(
  7. name = "yaml-cpp_internal",
  8. visibility = ["//:__subpackages__"],
  9. strip_include_prefix = "src",
  10. hdrs = glob(["src/**/*.h"]),
  11. )
  12. cc_library(
  13. name = "yaml-cpp",
  14. visibility = ["//visibility:public"],
  15. includes = ["include"],
  16. hdrs = glob(["include/**/*.h"]),
  17. srcs = glob(["src/**/*.cpp", "src/**/*.h"]),
  18. defines = yaml_cpp_defines,
  19. )