mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-08 04:11:17 +00:00

Example of how someone might consume yaml-cpp with bazel: cc_binary( name = "example", srcs = ["example.cc"], deps = ["@com_github_jbeder_yaml_cpp//:yaml-cpp"], )
15 lines
358 B
Python
15 lines
358 B
Python
cc_library(
|
|
name = "yaml-cpp_internal",
|
|
visibility = ["//:__subpackages__"],
|
|
strip_include_prefix = "src",
|
|
hdrs = glob(["src/**/*.h"]),
|
|
)
|
|
|
|
cc_library(
|
|
name = "yaml-cpp",
|
|
visibility = ["//visibility:public"],
|
|
strip_include_prefix = "include",
|
|
hdrs = glob(["include/**/*.h"]),
|
|
srcs = glob(["src/**/*.cpp", "src/**/*.h"]),
|
|
)
|