Add support for logtags am: 0fda89f4a8

am: c6b1ed56b7

* commit 'c6b1ed56b7ae2d0243e2403b5ef510eb8646ee68':
  Add support for logtags

Change-Id: I455605463380060601f2be7b84dbfc0801a04a40
This commit is contained in:
Dan Willemsen 2016-06-01 23:54:11 +00:00 committed by android-build-merger
commit 0d4e7bb37f
2 changed files with 9 additions and 0 deletions

View file

@ -22,6 +22,7 @@ import (
"os"
"path/filepath"
"sort"
"strings"
"android/soong"
@ -200,6 +201,10 @@ func translateAndroidMkModule(ctx blueprint.SingletonContext, w io.Writer, mod b
fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true")
} else {
fmt.Fprintln(w, "LOCAL_MODULE_TARGET_ARCH :=", archStr)
if len(amod.commonProperties.Logtags) > 0 {
fmt.Fprintln(w, "LOCAL_LOGTAGS_FILES := ", strings.Join(amod.commonProperties.Logtags, " "))
}
}
for _, extra := range data.Extra {

View file

@ -111,6 +111,10 @@ type commonProperties struct {
// whether this is a proprietary vendor module, and should be installed into /vendor
Proprietary bool
// *.logtags files, to combine together in order to generate the /system/etc/event-log-tags
// file
Logtags []string
// Set by HostOrDeviceMutator
CompileHostOrDevice HostOrDevice `blueprint:"mutated"`