Lines Matching full:attrs
17 load(":attrs.bzl", "ATTRS")
20 "@rules_android//rules:attrs.bzl",
21 _attrs = "attrs",
30 attrs = ATTRS,
36 attrs: A dict. The attributes for the rule.
44 attrs = attrs,
57 def sanitize_attrs(attrs, allowed_attrs = ATTRS.keys()):
65 attrs: A dict. The attributes for the android_packaged_resources rule.
71 for attr_name in attrs.keys():
73 attrs.pop(attr_name, None)
78 if attrs[attr_name] == None:
79 attrs.pop(attr_name, None)
81 attrs[attr_name] = _attrs.tristate.normalize(attrs[attr_name])
83 return attrs
85 def android_packaged_resources_macro(**attrs):
89 **attrs: Rule attributes
91 _android_packaged_resources(**sanitize_attrs(attrs))