Parameterize cc_stub_suite for api surface
cc_stub_suite now has an additional attribute correponding to the api surface. This attribute will be used to pass additional args to the stub generator. Update bp2build to set the api_surface of the apex stubs. This ensures that its stubs are generated with "--systemapi --apex" Test: unit tests Bug: 298085502 Change-Id: If4c479f85e6e485b5c795a565a0c559f1f013bf5
This commit is contained in:
@@ -494,6 +494,7 @@ func createStubsBazelTargetIfNeeded(ctx android.TopDownMutatorContext, m *Module
|
||||
Soname: &soname,
|
||||
Source_library_label: proptools.StringPtr(m.GetBazelLabel(ctx, m)),
|
||||
Deps: baseAttributes.deps,
|
||||
Api_surface: proptools.StringPtr("module-libapi"),
|
||||
}
|
||||
ctx.CreateBazelTargetModule(stubSuitesProps,
|
||||
android.CommonAttributes{Name: m.Name() + "_stub_libs"},
|
||||
@@ -3121,6 +3122,7 @@ type bazelCcStubSuiteAttributes struct {
|
||||
Source_library_label *string
|
||||
Soname *string
|
||||
Deps bazel.LabelListAttribute
|
||||
Api_surface *string
|
||||
}
|
||||
|
||||
type bazelCcHeaderAbiCheckerAttributes struct {
|
||||
|
Reference in New Issue
Block a user