Delete ApiBp2build soong_build mode
This feature is obsolete. This makes a large number of codepaths "dead code" (such as module-specific implementations of ApiBp2build functionality). These will be deleted in a followup CL. Bug: 284029211 Test: Presubmits Change-Id: Ib53b99f1fe8c24380d219caf44e9bb3b96724fa0
This commit is contained in:
committed by
Cole Faust
parent
079efbda94
commit
73f411b72c
@@ -123,69 +123,6 @@ cc_library_headers {
|
||||
})
|
||||
}
|
||||
|
||||
func TestCcApiHeaders(t *testing.T) {
|
||||
fs := map[string]string{
|
||||
"bar/Android.bp": `cc_library_headers { name: "bar_headers", }`,
|
||||
}
|
||||
bp := `
|
||||
cc_library_headers {
|
||||
name: "foo_headers",
|
||||
export_include_dirs: ["dir1", "dir2"],
|
||||
export_header_lib_headers: ["bar_headers"],
|
||||
|
||||
arch: {
|
||||
arm: {
|
||||
export_include_dirs: ["dir_arm"],
|
||||
},
|
||||
x86: {
|
||||
export_include_dirs: ["dir_x86"],
|
||||
},
|
||||
},
|
||||
|
||||
target: {
|
||||
android: {
|
||||
export_include_dirs: ["dir1", "dir_android"],
|
||||
},
|
||||
windows: {
|
||||
export_include_dirs: ["dir_windows"],
|
||||
},
|
||||
}
|
||||
}
|
||||
`
|
||||
expectedBazelTargets := []string{
|
||||
MakeBazelTarget("cc_api_library_headers", "foo_headers.contribution.arm", AttrNameToString{
|
||||
"export_includes": `["dir_arm"]`,
|
||||
"arch": `"arm"`,
|
||||
}),
|
||||
MakeBazelTarget("cc_api_library_headers", "foo_headers.contribution.x86", AttrNameToString{
|
||||
"export_includes": `["dir_x86"]`,
|
||||
"arch": `"x86"`,
|
||||
}),
|
||||
MakeBazelTarget("cc_api_library_headers", "foo_headers.contribution.androidos", AttrNameToString{
|
||||
"export_includes": `["dir_android"]`, // common includes are deduped
|
||||
}),
|
||||
// Windows headers are not exported
|
||||
MakeBazelTarget("cc_api_library_headers", "foo_headers.contribution", AttrNameToString{
|
||||
"export_includes": `[
|
||||
"dir1",
|
||||
"dir2",
|
||||
]`,
|
||||
"deps": `[
|
||||
"//bar:bar_headers.contribution",
|
||||
":foo_headers.contribution.arm",
|
||||
":foo_headers.contribution.x86",
|
||||
":foo_headers.contribution.androidos",
|
||||
]`,
|
||||
}),
|
||||
}
|
||||
RunApiBp2BuildTestCase(t, cc.RegisterLibraryHeadersBuildComponents, Bp2buildTestCase{
|
||||
Blueprint: bp,
|
||||
Description: "Header library contributions to API surfaces",
|
||||
ExpectedBazelTargets: expectedBazelTargets,
|
||||
Filesystem: fs,
|
||||
})
|
||||
}
|
||||
|
||||
// header_libs has "variant_prepend" tag. In bp2build output,
|
||||
// variant info(select) should go before general info.
|
||||
func TestCcLibraryHeadersOsSpecificHeader(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user