mirror of
https://github.com/depp/syncfiles.git
synced 2024-11-22 19:30:49 +00:00
f2317d0ce7
Add flags to the generator code to specify the location of input and output files.
37 lines
572 B
Python
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",
|
|
},
|
|
)
|