1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-08 23:24:20 +00:00
magic_enum/example/BUILD.bazel
2023-04-26 20:16:08 +04:00

28 lines
674 B
Text

load("@rules_cc//cc:defs.bzl", "cc_binary")
load("@magic_enum//bazel:copts.bzl", "COPTS")
_EXAMPLES = [
"enum_flag_example",
"example",
"example_containers_array",
"example_containers_bitset",
"example_containers_set",
"example_custom_name",
"example_switch",
]
[cc_binary(
name = example,
srcs = ["{}.cpp".format(example)],
deps = ["@magic_enum"],
copts = COPTS,
) for example in _EXAMPLES]
cc_binary(
name = "example_nonascii_name",
srcs = ["example_nonascii_name.cpp"],
deps = ["@magic_enum"],
copts = COPTS,
defines = ["MAGIC_ENUM_ENABLE_NONASCII"],
tags = ["manual"],
)