Use aidl_library in cc libraries

Introduce aidl.libs prop on cc libraries to pass in aidl_library. The goal is to eventually disallow aidl.include_dirs (a pattern for passing aidl headers dir for aidl compilation) and enforce aidl headers to be explicitly specified in Android.bp.

Bug: 278704136
Test: go test
(cherry picked from https://android-review.googlesource.com/q/commit:367d89da7887825f74b0c9554b2e1b9619d94f08)
Merged-In: Ia78bc11dfa12f47d2d1bb90dc65372ddb17f7e14
Change-Id: Ia78bc11dfa12f47d2d1bb90dc65372ddb17f7e14
This commit is contained in:
Vinh Tran
2023-04-28 11:21:25 -04:00
parent 4c43b2febc
commit 0059b69829
10 changed files with 324 additions and 90 deletions

View File

@@ -22,6 +22,10 @@ import (
"github.com/google/blueprint/proptools"
)
var PrepareForTestWithAidlLibrary = android.FixtureRegisterWithContext(func(ctx android.RegistrationContext) {
registerAidlLibraryBuildComponents(ctx)
})
func init() {
registerAidlLibraryBuildComponents(android.InitRegistrationContext)
}