syncfiles/bazel/BUILD.bazel
Dietrich Epp f2317d0ce7 Create build rules for generated data
Add flags to the generator code to specify the location of input and
output files.
2022-03-22 19:02:57 -04:00

37 lines
572 B
Python

load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
package(
default_visibility = ["//visibility:public"],
)
string_flag(
name = "warnings",
build_setting_default = "on",
values = [
"off",
"on",
"error",
],
)
config_setting(
name = "warnings_off",
flag_values = {
":warnings": "off",
},
)
config_setting(
name = "warnings_on",
flag_values = {
":warnings": "on",
},
)
config_setting(
name = "warnings_error",
flag_values = {
":warnings": "error",
},
)