• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#########################################################################
2# Build FrameworksServicesTests package
3#########################################################################
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 all test java files.
12LOCAL_SRC_FILES := $(call all-java-files-under, src)
13
14LOCAL_STATIC_JAVA_LIBRARIES := \
15    frameworks-base-testutils \
16    services.accessibility \
17    services.appwidget \
18    services.core \
19    services.devicepolicy \
20    services.net \
21    services.retaildemo \
22    services.usage \
23    guava \
24    android-support-test \
25    mockito-target-minus-junit4 \
26    platform-test-annotations \
27    ShortcutManagerTestUtils \
28    truth-prebuilt
29
30LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/aidl
31
32LOCAL_SRC_FILES += aidl/com/android/servicestests/aidl/INetworkStateObserver.aidl
33
34LOCAL_JAVA_LIBRARIES := android.test.runner
35
36LOCAL_PACKAGE_NAME := FrameworksServicesTests
37LOCAL_COMPATIBILITY_SUITE := device-tests
38
39LOCAL_CERTIFICATE := platform
40
41# These are not normally accessible from apps so they must be explicitly included.
42LOCAL_JNI_SHARED_LIBRARIES := \
43    libbacktrace \
44    libbase \
45    libbinder \
46    libc++ \
47    libcutils \
48    liblog \
49    liblzma \
50    libnativehelper \
51    libnetdaidl \
52    libui \
53    libunwind \
54    libutils
55
56LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
57
58LOCAL_JACK_FLAGS := --multi-dex native
59LOCAL_DX_FLAGS := --multi-dex
60
61LOCAL_STATIC_JAVA_LIBRARIES += ub-uiautomator
62
63include $(BUILD_PACKAGE)
64