Revert "Revert "Automated NDK API coverage used by Mainline modules build integration.""
This reverts commit 556b2ad77e
.
Original change-id: Ib1b2f0dd2f9ae85b1545c6cc5bb4c5bbdfac1c15
Reason for revert: Add excutable permission to the gen_ndk_backedby_apex.sh.
Test: TARGET_BUILD_APPS=com.android.adbd m dist apps_only
Change-Id: Ib587ba200cd7f2f61d478452b43c329d72b2de06
This commit is contained in:
@@ -422,12 +422,21 @@ func (a *apexBundle) androidMkForType() android.AndroidMkData {
|
||||
fmt.Fprintf(w, dist)
|
||||
}
|
||||
|
||||
if a.coverageOutputPath.String() != "" {
|
||||
if a.apisUsedByModuleFile.String() != "" {
|
||||
goal := "apps_only"
|
||||
distFile := a.coverageOutputPath.String()
|
||||
distFile := a.apisUsedByModuleFile.String()
|
||||
fmt.Fprintf(w, "ifneq (,$(filter $(my_register_name),$(TARGET_BUILD_APPS)))\n"+
|
||||
" $(call dist-for-goals,%s,%s:ndk_apis_usedby_apex/$(notdir %s))\n"+
|
||||
"endif",
|
||||
"endif\n",
|
||||
goal, distFile, distFile)
|
||||
}
|
||||
|
||||
if a.apisBackedByModuleFile.String() != "" {
|
||||
goal := "apps_only"
|
||||
distFile := a.apisBackedByModuleFile.String()
|
||||
fmt.Fprintf(w, "ifneq (,$(filter $(my_register_name),$(TARGET_BUILD_APPS)))\n"+
|
||||
" $(call dist-for-goals,%s,%s:ndk_apis_backedby_apex/$(notdir %s))\n"+
|
||||
"endif\n",
|
||||
goal, distFile, distFile)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user