Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 25 of 27) sorted by relevance

12

/build/bazel/rules_cc/cc/
Ddefs.bzl22 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
[all …]
Dfind_cc_toolchain.bzl26 attrs = {
/build/soong/bazel/
Dproperties.go322 func (attrs *LabelListAttribute) Append(other LabelListAttribute) {
324 this := attrs.GetValueForArch(arch)
327 attrs.SetValueForArch(arch, this)
331 this := attrs.GetValueForOS(os)
334 attrs.SetValueForOS(os, this)
337 attrs.Value.Append(other.Value)
342 func (attrs LabelListAttribute) HasConfigurableValues() bool {
344 if len(attrs.GetValueForArch(arch).Includes) > 0 {
350 if len(attrs.GetValueForOS(os).Includes) > 0 {
357 func (attrs *LabelListAttribute) archValuePtrs() map[string]*LabelList {
[all …]
/build/soong/bp2build/
Dbzl_conversion.go43 attrs string member
72 shim.content += fmt.Sprintf(moduleRuleShim, r.name, r.attrs)
111 attrs := `{
116 attrs += getAttributes(factory)
117 attrs += " },"
121 attrs: attrs,
225 attrs := ""
227 attrs += p.attributeString()
229 return attrs
Dtesting.go151 attrs := &customBazelModuleAttributes{
161 ctx.CreateBazelTargetModule(customBazelModuleFactory, m.Name(), props, attrs)
174 attrs := &customBazelModuleAttributes{}
180 ctx.CreateBazelTargetModule(customBazelModuleFactory, baseName, myLibraryProps, attrs)
186 …zelTargetModule(customBazelModuleFactory, baseName+"_proto_library_deps", protoLibraryProps, attrs)
192 …rgetModule(customBazelModuleFactory, baseName+"_my_proto_library_deps", myProtoLibraryProps, attrs)
Dbzl_conversion_test.go85 attrs = {
114 attrs = {
139 attrs = {
Dandroidbp_to_build_templates.go68 attrs = {
125 attrs = %[2]s
/build/soong/scripts/
Dmanifest_fixer_test.py74 attrs = ''
76 attrs += ' android:minSdkVersion="%s"' % (min)
78 attrs += ' android:targetSdkVersion="%s"' % (target)
80 attrs += ' ' + extra
81 return ' <uses-sdk%s/>\n' % (attrs)
247 attrs = ''
251 attrs += ' <application>\n %s </application>\n' % (meta_text)
253 return attrs
/build/soong/android/
Dfilegroup.go62 attrs := &bazelFilegroupAttributes{
68 ctx.CreateBazelTargetModule(BazelFileGroupFactory, fg.Name(), props, attrs)
Dbazel_handler.go394 attrs = {
407 attrs = {
421 attrs = {"deps" : attr.label_list()},
Dmutator.go529 attrs interface{}) BazelTargetModule {
543 b := t.createModuleWithoutInheritance(factory, &nameProp, attrs).(BazelTargetModule)
/build/soong/cc/
Dlibrary_headers.go149 attrs := &bazelCcLibraryHeadersAttributes{
160 ctx.CreateBazelTargetModule(BazelCcLibraryHeadersFactory, module.Name(), props, attrs)
Dobject.go187 attrs := &bazelObjectAttributes{
199 ctx.CreateBazelTargetModule(BazelObjectFactory, m.Name(), props, attrs)
/build/bazel/product_variables/
Dproduct_variables.bzl19 attrs = {
/build/soong/python/
Dbinary.go103 attrs := &bazelPythonBinaryAttributes{
115 ctx.CreateBazelTargetModule(BazelPythonBinaryFactory, m.Name(), props, attrs)
/build/bazel/bazel_skylib/rules/
Dcommon_settings.bzl81 attrs = {
92 attrs = {
/build/bazel/rules/
Dstatic_libc.bzl18 attrs = {
Dfull_cc_library.bzl95 attrs = {
Dcc_object.bzl92 attrs = {
Dcc_library_static.bzl137 attrs = {
/build/pesto/experiments/prepare_bazel_test_env/data/templates/build/bazel/rules/
Dcc_test.bzl.template58 attrs = {{
/build/bazel/bazel_skylib/
Dbzl_library.bzl47 attrs = {
/build/soong/sh/
Dsh_binary.go535 attrs := &bazelShBinaryAttributes{
543 ctx.CreateBazelTargetModule(BazelShBinaryFactory, m.Name(), props, attrs)
/build/soong/genrule/
Dgenrule.go879 attrs := &bazelGenruleAttributes{
891 ctx.CreateBazelTargetModule(BazelGenruleFactory, m.Name(), props, attrs)
/build/bazel/rules_cc/examples/
Dexperimental_cc_shared_library.bzl462 attrs = {
469 attrs = {

12