diff options
author | 2024-11-25 12:43:09 +0000 | |
---|---|---|
committer | 2024-12-02 18:03:32 +0000 | |
commit | 6e0c11049d859040c125f19cfab01d473b4bd398 (patch) | |
tree | 2352b38b681ed7aa97d7ab0891b80d8ab3efceab /apex/apex_test.go | |
parent | 1a6f176ce066fc39574db6b7bcb69da82e579199 (diff) |
Skip packaging cross container cc deps of apk-in-apex
With this change, apk-in-apex will skip packaging a cc library
dependency if the dependency is part of the platform or part of a
different apex.
Bug: 375473764
Test: go test ./java ./apex
Test: presubmits
Change-Id: I91351973c2c941c7531e9f7d4879049eab766a12
Diffstat (limited to 'apex/apex_test.go')
-rw-r--r-- | apex/apex_test.go | 54 |
1 files changed, 26 insertions, 28 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go index 5b5fe5ff1..2ca74a604 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -12137,34 +12137,32 @@ func TestApexVerifyNativeImplementationLibs(t *testing.T) { }, dependencyPath: []string{"myapex", "libjni", "libbar", "libplatform"}, }, - // TODO: embedded JNI in apps should be checked too, but Soong currently just packages the transitive - // JNI libraries even if they came from another apex. - //{ - // name: "app jni library dependency in other apex", - // bpModifier: addToSharedLibs("libembeddedjni", "libotherapex#impl"), - // dependencyPath: []string{"myapex", "myapp", "libembeddedjni", "libotherapex"}, - //}, - //{ - // name: "transitive app jni library dependency in other apex", - // bpModifier: func(bp *bpmodify.Blueprint) { - // addToSharedLibs("libembeddedjni", "libbar")(bp) - // addToSharedLibs("libbar", "libotherapex#impl")(bp) - // }, - // dependencyPath: []string{"myapex", "myapp", "libembeddedjni", "libbar", "libotherapex"}, - //}, - //{ - // name: "app jni library dependency in platform", - // bpModifier: addToSharedLibs("libembeddedjni", "libplatform#impl"), - // dependencyPath: []string{"myapex", "myapp", "libembeddedjni", "libplatform"}, - //}, - //{ - // name: "transitive app jni library dependency in platform", - // bpModifier: func(bp *bpmodify.Blueprint) { - // addToSharedLibs("libembeddedjni", "libbar")(bp) - // addToSharedLibs("libbar", "libplatform#impl")(bp) - // }, - // dependencyPath: []string{"myapex", "myapp", "libembeddedjni", "libbar", "libplatform"}, - //}, + { + name: "app jni library dependency in other apex", + bpModifier: addToSharedLibs("libembeddedjni", "libotherapex#impl"), + dependencyPath: []string{"myapex", "myapp", "libembeddedjni", "libotherapex"}, + }, + { + name: "transitive app jni library dependency in other apex", + bpModifier: func(bp *bpmodify.Blueprint) { + addToSharedLibs("libembeddedjni", "libbar")(bp) + addToSharedLibs("libbar", "libotherapex#impl")(bp) + }, + dependencyPath: []string{"myapex", "myapp", "libembeddedjni", "libbar", "libotherapex"}, + }, + { + name: "app jni library dependency in platform", + bpModifier: addToSharedLibs("libembeddedjni", "libplatform#impl"), + dependencyPath: []string{"myapex", "myapp", "libembeddedjni", "libplatform"}, + }, + { + name: "transitive app jni library dependency in platform", + bpModifier: func(bp *bpmodify.Blueprint) { + addToSharedLibs("libembeddedjni", "libbar")(bp) + addToSharedLibs("libbar", "libplatform#impl")(bp) + }, + dependencyPath: []string{"myapex", "myapp", "libembeddedjni", "libbar", "libplatform"}, + }, { name: "binary dependency in other apex", bpModifier: addToSharedLibs("mybin", "libotherapex#impl"), |