aboutsummaryrefslogtreecommitdiffstats
path: root/sysprop
diff options
context:
space:
mode:
authorInseob Kim <inseob@google.com>2019-06-10 23:03:16 +0900
committerInseob Kim <inseob@google.com>2019-06-10 14:18:13 +0000
commitda63a49338c1e9d95d5ba6f0074ffc778101d83d (patch)
tree8d672c7fb0020b19f4ba340018195e629c56fd28 /sysprop
parent4cb61bed13a4219ad7cde909145f1abd6e9b2856 (diff)
downloadbuild_soong-da63a49338c1e9d95d5ba6f0074ffc778101d83d.tar.gz
build_soong-da63a49338c1e9d95d5ba6f0074ffc778101d83d.tar.bz2
build_soong-da63a49338c1e9d95d5ba6f0074ffc778101d83d.zip
Fix sysprop_library build err when using filegroup
.sysprop files are intended to be used only with sysprop_library, and we can prevent build error by specifying dependencies upon CreateModule. Bug: 131708148 Test: 1) try building sysprop_library module. Test: 2) see liblog is correctly linked. Change-Id: I702cedc255ee0b6a30c15e474dd6a88d9607b145
Diffstat (limited to 'sysprop')
-rw-r--r--sysprop/sysprop_library.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysprop/sysprop_library.go b/sysprop/sysprop_library.go
index 3f2709e2..86061c6a 100644
--- a/sysprop/sysprop_library.go
+++ b/sysprop/sysprop_library.go
@@ -123,6 +123,8 @@ func syspropLibraryHook(ctx android.LoadHookContext, m *syspropLibrary) {
Sysprop struct {
Platform *bool
}
+ Header_libs []string
+ Shared_libs []string
}{}
ccProps.Name = proptools.StringPtr(m.CcModuleName())
@@ -130,6 +132,8 @@ func syspropLibraryHook(ctx android.LoadHookContext, m *syspropLibrary) {
ccProps.Device_specific = proptools.BoolPtr(deviceSpecific)
ccProps.Product_specific = proptools.BoolPtr(productSpecific)
ccProps.Sysprop.Platform = proptools.BoolPtr(owner == "Platform")
+ ccProps.Header_libs = []string{"libbase_headers"}
+ ccProps.Shared_libs = []string{"liblog"}
ctx.CreateModule(android.ModuleFactoryAdaptor(cc.LibraryFactory), &m.commonProperties, &ccProps)
}