Merge changes I2731ef15,Ib4b03035
* changes: Add a timestamp touch rule. Remove the implicit "_" in subnames.
This commit is contained in:
@@ -146,7 +146,7 @@ func translateAndroidMkModule(ctx blueprint.SingletonContext, w io.Writer, mod b
|
||||
}
|
||||
|
||||
if data.SubName != "" {
|
||||
name += "_" + data.SubName
|
||||
name += data.SubName
|
||||
}
|
||||
|
||||
if data.Custom != nil {
|
||||
|
@@ -52,6 +52,13 @@ var (
|
||||
},
|
||||
"cpFlags")
|
||||
|
||||
// A timestamp touch rule.
|
||||
Touch = pctx.StaticRule("Touch",
|
||||
blueprint.RuleParams{
|
||||
Command: "touch $out",
|
||||
Description: "touch $out",
|
||||
})
|
||||
|
||||
// A symlink rule.
|
||||
Symlink = pctx.StaticRule("Symlink",
|
||||
blueprint.RuleParams{
|
||||
|
@@ -134,7 +134,7 @@ func (binary *binaryLinker) AndroidMk(ctx AndroidMkContext, ret *android.Android
|
||||
func (test *testBinaryLinker) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkData) {
|
||||
test.binaryLinker.AndroidMk(ctx, ret)
|
||||
if Bool(test.testLinker.Properties.Test_per_src) {
|
||||
ret.SubName = test.binaryLinker.Properties.Stem
|
||||
ret.SubName = "_" + test.binaryLinker.Properties.Stem
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user