Add LOCAL_DX_FLAGS := --multi-dex where it is enabled for jack. Also stop enabling multi-dex when coverge is enabled, since multi-dex is now enalbed unconditionally. Test: builds Change-Id: I67fedcdd5bb5d7091468bddcb0c22bab720a51d2 Merged-In: I67fedcdd5bb5d7091468bddcb0c22bab720a51d2 (cherry picked from commit 17ffa24277380c69bf365fa595e7d4e6e51825eb)
57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
#########################################################################
|
|
# Build FrameworksNotificationTests package
|
|
#########################################################################
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
# We only want this apk build for tests.
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
# Include test java files and source from notifications package.
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, src) \
|
|
$(call all-java-files-under, ../../core/java/com/android/server/notification)
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
frameworks-base-testutils \
|
|
services.accessibility \
|
|
services.core \
|
|
services.devicepolicy \
|
|
services.net \
|
|
services.retaildemo \
|
|
services.usage \
|
|
guava \
|
|
android-support-test \
|
|
mockito-target-minus-junit4 \
|
|
platform-test-annotations \
|
|
testables
|
|
|
|
LOCAL_JAVA_LIBRARIES := android.test.runner
|
|
|
|
LOCAL_JACK_FLAGS := --multi-dex native
|
|
LOCAL_DX_FLAGS := --multi-dex
|
|
|
|
LOCAL_PACKAGE_NAME := FrameworksNotificationTests
|
|
LOCAL_COMPATIBILITY_SUITE := device-tests
|
|
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
# These are not normally accessible from apps so they must be explicitly included.
|
|
LOCAL_JNI_SHARED_LIBRARIES := \
|
|
libbacktrace \
|
|
libbase \
|
|
libbinder \
|
|
libc++ \
|
|
libcutils \
|
|
liblog \
|
|
liblzma \
|
|
libnativehelper \
|
|
libnetdaidl \
|
|
libui \
|
|
libunwind \
|
|
libutils
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
|
|
|
include $(BUILD_PACKAGE)
|