blob: 40e78785b9f5a4da3510bc442eea8d3ee629d1c9 [file] [log] [blame]
Geoffrey Pitschb879cc62016-11-01 13:38:22 -04001#########################################################################
Jason Monkec4b6772017-12-06 10:31:09 -05002# Build FrameworksUiServicesTests package
Geoffrey Pitschb879cc62016-11-01 13:38:22 -04003#########################################################################
4
5LOCAL_PATH:= $(call my-dir)
6include $(CLEAR_VARS)
7
8# We only want this apk build for tests.
9LOCAL_MODULE_TAGS := tests
10
11# Include test java files and source from notifications package.
12LOCAL_SRC_FILES := $(call all-java-files-under, src) \
13 $(call all-java-files-under, ../../core/java/com/android/server/notification)
14
15LOCAL_STATIC_JAVA_LIBRARIES := \
16 frameworks-base-testutils \
17 services.accessibility \
18 services.core \
19 services.devicepolicy \
20 services.net \
Geoffrey Pitschb879cc62016-11-01 13:38:22 -040021 services.usage \
22 guava \
23 android-support-test \
24 mockito-target-minus-junit4 \
Geoffrey Pitsch415e4542017-04-10 13:12:58 -040025 platform-test-annotations \
26 testables
Geoffrey Pitschb879cc62016-11-01 13:38:22 -040027
Paul Duffin2710ca12017-12-05 18:36:56 +000028LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base
Geoffrey Pitschb879cc62016-11-01 13:38:22 -040029
Paul Duffin2abe1be2017-03-11 12:26:13 +000030LOCAL_JACK_FLAGS := --multi-dex native
Colin Cross17ffa242017-06-20 15:38:05 -070031LOCAL_DX_FLAGS := --multi-dex
Paul Duffin2abe1be2017-03-11 12:26:13 +000032
Jason Monkec4b6772017-12-06 10:31:09 -050033LOCAL_PACKAGE_NAME := FrameworksUiServicesTests
Simran Basi473a16e2017-03-15 14:43:58 -070034LOCAL_COMPATIBILITY_SUITE := device-tests
Geoffrey Pitschb879cc62016-11-01 13:38:22 -040035
36LOCAL_CERTIFICATE := platform
37
38# These are not normally accessible from apps so they must be explicitly included.
Colin Crosse3994682017-01-11 14:29:10 -080039LOCAL_JNI_SHARED_LIBRARIES := \
Geoffrey Pitschb879cc62016-11-01 13:38:22 -040040 libbacktrace \
41 libbase \
42 libbinder \
43 libc++ \
44 libcutils \
45 liblog \
46 liblzma \
47 libnativehelper \
48 libnetdaidl \
49 libui \
50 libunwind \
51 libutils
52
53LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
54
Geoffrey Pitschb879cc62016-11-01 13:38:22 -040055include $(BUILD_PACKAGE)