Prepend default to allow overriding in the bp file.
Bug: 143948100 Bug: 151303681 Test: m nothing Change-Id: Iefcf4fbe9d2971ce267242185165f0c38f68db30
This commit is contained in:
@@ -69,6 +69,28 @@ func TestSdkIsCompileMultilibBoth(t *testing.T) {
|
||||
ensureListContains(t, inputs, arm64Output.String())
|
||||
}
|
||||
|
||||
func TestSdkCompileMultilibOverride(t *testing.T) {
|
||||
result := testSdkWithCc(t, `
|
||||
sdk {
|
||||
name: "mysdk",
|
||||
native_shared_libs: ["sdkmember"],
|
||||
compile_multilib: "64",
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "sdkmember",
|
||||
srcs: ["Test.cpp"],
|
||||
stl: "none",
|
||||
compile_multilib: "64",
|
||||
}
|
||||
`)
|
||||
|
||||
result.CheckSnapshot("mysdk", "",
|
||||
checkAllCopyRules(`
|
||||
.intermediates/sdkmember/android_arm64_armv8-a_shared/sdkmember.so -> arm64/lib/sdkmember.so
|
||||
`))
|
||||
}
|
||||
|
||||
func TestBasicSdkWithCc(t *testing.T) {
|
||||
result := testSdkWithCc(t, `
|
||||
sdk {
|
||||
|
Reference in New Issue
Block a user