mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-08 23:24:20 +00:00
28 lines
674 B
Text
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"],
|
|
)
|