mirror of
https://github.com/RPCS3/yaml-cpp.git
synced 2024-11-26 19:30:20 +00:00
420c982310
Windows builds need some defines being set to use the static linking. Also add bazel builds and test to Github-CI.
22 lines
574 B
Python
22 lines
574 B
Python
yaml_cpp_defines = select({
|
|
# On Windows, ensure static linking is used.
|
|
"@platforms//os:windows": ["YAML_CPP_STATIC_DEFINE", "YAML_CPP_NO_CONTRIB"],
|
|
"//conditions:default": [],
|
|
})
|
|
|
|
cc_library(
|
|
name = "yaml-cpp_internal",
|
|
visibility = ["//:__subpackages__"],
|
|
strip_include_prefix = "src",
|
|
hdrs = glob(["src/**/*.h"]),
|
|
)
|
|
|
|
cc_library(
|
|
name = "yaml-cpp",
|
|
visibility = ["//visibility:public"],
|
|
includes = ["include"],
|
|
hdrs = glob(["include/**/*.h"]),
|
|
srcs = glob(["src/**/*.cpp", "src/**/*.h"]),
|
|
defines = yaml_cpp_defines,
|
|
)
|