Lines Matching refs:attrs
22 def _add_tags(attrs):
23 if "tags" in attrs and attrs["tags"] != None:
24 attrs["tags"] = attrs["tags"] + [_MIGRATION_TAG]
26 attrs["tags"] = [_MIGRATION_TAG]
27 return attrs
29 def cc_binary(**attrs):
35 **attrs: Rule attributes
39 native.cc_binary(**_add_tags(attrs))
41 def cc_test(**attrs):
47 **attrs: Rule attributes
51 native.cc_test(**_add_tags(attrs))
53 def cc_library(**attrs):
59 **attrs: Rule attributes
63 native.cc_library(**_add_tags(attrs))
65 def cc_import(**attrs):
71 **attrs: Rule attributes
75 native.cc_import(**_add_tags(attrs))
77 def cc_proto_library(**attrs):
83 **attrs: Rule attributes
87 native.cc_proto_library(**_add_tags(attrs))
89 def fdo_prefetch_hints(**attrs):
95 **attrs: Rule attributes
99 native.fdo_prefetch_hints(**_add_tags(attrs))
101 def fdo_profile(**attrs):
107 **attrs: Rule attributes
111 native.fdo_profile(**_add_tags(attrs))
113 def cc_toolchain(**attrs):
119 **attrs: Rule attributes
123 native.cc_toolchain(**_add_tags(attrs))
125 def cc_toolchain_suite(**attrs):
131 **attrs: Rule attributes
135 native.cc_toolchain_suite(**_add_tags(attrs))
137 def objc_library(**attrs):
143 **attrs: Rule attributes
147 native.objc_library(**_add_tags(attrs))
149 def objc_import(**attrs):
155 **attrs: Rule attributes
159 native.objc_import(**_add_tags(attrs))
161 # def cc_flags_supplier(**attrs):
165 # **attrs: Rule attributes
167 # _cc_flags_supplier(**_add_tags(attrs))
169 # def compiler_flag(**attrs):
173 # **attrs: Rule attributes
175 # _compiler_flag(**_add_tags(attrs))