Bp2build support for runtime_libs
Bug: 213201180 Test: Updated the minimal apex in the build/bazel cl to include runtime_libs so the apex diff test will test it Change-Id: I10add1895cfa122a370d24196a33ec2dcfafccfc
This commit is contained in:
@@ -15,12 +15,12 @@
|
||||
package bp2build
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"android/soong/android"
|
||||
"android/soong/cc"
|
||||
"android/soong/genrule"
|
||||
"fmt"
|
||||
|
||||
"testing"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -1559,3 +1559,25 @@ func TestCcLibraryStaticStl(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestCCLibraryStaticRuntimeDeps(t *testing.T) {
|
||||
runCcLibrarySharedTestCase(t, Bp2buildTestCase{
|
||||
Blueprint: `cc_library_shared {
|
||||
name: "bar",
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "foo",
|
||||
runtime_libs: ["foo"],
|
||||
}`,
|
||||
ExpectedBazelTargets: []string{
|
||||
makeBazelTarget("cc_library_shared", "bar", AttrNameToString{
|
||||
"local_includes": `["."]`,
|
||||
}),
|
||||
makeBazelTarget("cc_library_static", "foo", AttrNameToString{
|
||||
"runtime_deps": `[":foo"]`,
|
||||
"local_includes": `["."]`,
|
||||
}),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user