2022-04-27 14:10:13 +00:00
|
|
|
yaml_cpp_defines = select({
|
|
|
|
# On Windows, ensure static linking is used.
|
|
|
|
"@platforms//os:windows": ["YAML_CPP_STATIC_DEFINE", "YAML_CPP_NO_CONTRIB"],
|
|
|
|
"//conditions:default": [],
|
|
|
|
})
|
|
|
|
|
2019-09-27 15:11:38 +00:00
|
|
|
cc_library(
|
|
|
|
name = "yaml-cpp_internal",
|
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
strip_include_prefix = "src",
|
|
|
|
hdrs = glob(["src/**/*.h"]),
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "yaml-cpp",
|
|
|
|
visibility = ["//visibility:public"],
|
2020-03-01 04:27:16 +00:00
|
|
|
includes = ["include"],
|
2019-09-27 15:11:38 +00:00
|
|
|
hdrs = glob(["include/**/*.h"]),
|
|
|
|
srcs = glob(["src/**/*.cpp", "src/**/*.h"]),
|
2022-04-27 14:10:13 +00:00
|
|
|
defines = yaml_cpp_defines,
|
2019-09-27 15:11:38 +00:00
|
|
|
)
|