Merge changes from topic 'soong_init_rc'

* changes:
  Include frameworks/native
  Add init_rc property, equivalent to LOCAL_INIT_RC
This commit is contained in:
Dan Willemsen
2016-07-29 23:44:33 +00:00
committed by Gerrit Code Review
4 changed files with 8 additions and 1 deletions

View File

@@ -215,6 +215,9 @@ func translateAndroidMkModule(ctx blueprint.SingletonContext, w io.Writer, mod b
if len(amod.commonProperties.Logtags) > 0 {
fmt.Fprintln(w, "LOCAL_LOGTAGS_FILES := ", strings.Join(amod.commonProperties.Logtags, " "))
}
if len(amod.commonProperties.Init_rc) > 0 {
fmt.Fprintln(w, "LOCAL_INIT_RC := ", strings.Join(amod.commonProperties.Init_rc, " "))
}
}
if host {

View File

@@ -116,6 +116,9 @@ type commonProperties struct {
// file
Logtags []string
// init.rc files to be installed if this module is installed
Init_rc []string
// Set by TargetMutator
CompileTarget Target `blueprint:"mutated"`

View File

@@ -51,6 +51,7 @@ var standardProperties = map[string]struct {
"LOCAL_LOGTAGS_FILES": {"logtags", bpparser.ListType},
"LOCAL_EXPORT_SHARED_LIBRARY_HEADERS": {"export_shared_lib_headers", bpparser.ListType},
"LOCAL_EXPORT_STATIC_LIBRARY_HEADERS": {"export_static_lib_headers", bpparser.ListType},
"LOCAL_INIT_RC": {"init_rc", bpparser.ListType},
"LOCAL_JAVA_RESOURCE_DIRS": {"java_resource_dirs", bpparser.ListType},
"LOCAL_JAVACFLAGS": {"javacflags", bpparser.ListType},

View File

@@ -12,7 +12,7 @@ optional_subdirs = [
"dalvik",
"external/*",
"frameworks/base",
"frameworks/native/libs/*",
"frameworks/native",
"hardware/*",
"libcore",
"libnativehelper",