summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2018-01-24 15:22:19 +0900
committerJiyong Park <jiyong@google.com>2018-01-24 15:22:19 +0900
commit8edaa8f951100ca92a57ecf145204202e5d32d6a (patch)
tree97bc09f6103283000111b1ca642a6a2cd01b0f77
parentdae77e56716abe38131a0e6a2a4f9eca500d0285 (diff)
downloadrs-8edaa8f951100ca92a57ecf145204202e5d32d6a.tar.gz
Use stubs libs for android.test.base/runner/mock
android.test.base/runner/mock libraries are shared libraries that are built without SDK, but with framework interanl libraries (framework.jar, etc). Apps or libs that are built with SDK (LOCAL_SDK_VERSION is set) shouldn't use them, but instead the stubs version of the test framework libraries, which are built using SDK. This is because, the build system does not allow a module built with SDK to depend on another module built without SDK. This has been exceptionally allowed with warnings, but will soon be errors. In order to prevent the expected build breakage, direct reference to the shared libraries are all changed to the stubs libraries. Note: no one has been using these shared libs statically. So, it is guaranteed that they won't encounter a problem due to missing <uses-library name="android.test.runner"/> even after this change. Bug: 69899800 Test: m -j checkbuild Change-Id: I0d1b752c4b249ea4c6516bc8e1daf1df2a3ce3e0
-rw-r--r--tests/java_api/ImageProcessing/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/java_api/ImageProcessing/Android.mk b/tests/java_api/ImageProcessing/Android.mk
index 4623448e..2fcb8a41 100644
--- a/tests/java_api/ImageProcessing/Android.mk
+++ b/tests/java_api/ImageProcessing/Android.mk
@@ -19,7 +19,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
-LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base.stubs
+LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
LOCAL_STATIC_JAVA_LIBRARIES := junit