aboutsummaryrefslogtreecommitdiffstats
path: root/apex/apex_test.go
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2018-12-07 16:25:39 +0900
committerJiyong Park <jiyong@google.com>2018-12-16 02:13:14 +0900
commit3fd0baf6517a317d89be00be7f9be6df29e3a779 (patch)
tree4c610f4de579d44b6e21c611393c9cd41cc2f623 /apex/apex_test.go
parentbb4e13536ec188ad3e5623b004703071dea8d4c6 (diff)
downloadandroid_build_soong-3fd0baf6517a317d89be00be7f9be6df29e3a779.tar.gz
android_build_soong-3fd0baf6517a317d89be00be7f9be6df29e3a779.tar.bz2
android_build_soong-3fd0baf6517a317d89be00be7f9be6df29e3a779.zip
When a stub is built for APEX, it is generated with --apex
Now, symbols that are only to be visible to across APEXes can be tagged as # vndk. Then when generating the stubs library, the tagged symbol is included. The symbol is NOT included in other cases; build NDK stubs, etc. Bug: 120638081 Test: m (apex_test updated.) Change-Id: Idb2b552badddfc26af113cc8d4b984788f478813
Diffstat (limited to 'apex/apex_test.go')
-rw-r--r--apex/apex_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go
index 88c57bc0..acc895fe 100644
--- a/apex/apex_test.go
+++ b/apex/apex_test.go
@@ -321,6 +321,9 @@ func TestApexWithStubs(t *testing.T) {
// Ensure that stubs libs are built without -include flags
mylib2Cflags := ctx.ModuleForTests("mylib2", "android_arm64_armv8-a_static_myapex").Rule("cc").Args["cFlags"]
ensureNotContains(t, mylib2Cflags, "-include ")
+
+ // Ensure that genstub is invoked with --apex
+ ensureContains(t, "--apex", ctx.ModuleForTests("mylib2", "android_arm64_armv8-a_static_3_myapex").Rule("genStubSrc").Args["flags"])
}
func TestApexWithExplicitStubsDependency(t *testing.T) {