Direct Bazel builds from m.
This CL adds support to bp2build/Soong to dump a BUILD file under out/soong/soong_injection/targets containing alias targets to their real targets for every converted Soong module, regardless of whether they are handcrafted or generated. Test: TH Change-Id: Ic1816fda5d019c395301618134fac68b3057d752
This commit is contained in:
@@ -19,6 +19,7 @@ import (
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// BazelTargetModuleProperties contain properties and metadata used for
|
||||
@@ -33,6 +34,10 @@ type BazelTargetModuleProperties struct {
|
||||
|
||||
const BazelTargetModuleNamePrefix = "__bp2build__"
|
||||
|
||||
func StripNamePrefix(moduleName string) string {
|
||||
return strings.TrimPrefix(moduleName, BazelTargetModuleNamePrefix)
|
||||
}
|
||||
|
||||
var productVariableSubstitutionPattern = regexp.MustCompile("%(d|s)")
|
||||
|
||||
// Label is used to represent a Bazel compatible Label. Also stores the original
|
||||
|
Reference in New Issue
Block a user