blob: 2a8f4a34f158dd7ecd4576adf9c3c089bddd4514 [file] [log] [blame]
Paul Jensend38fb7662016-01-07 23:13:19 -05001#########################################################################
2# Build FrameworksServicesTests package
3#########################################################################
4
Neal Nguyen1a44d5d2010-01-13 10:42:43 -08005LOCAL_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
Jeff Sharkeyb7342ac2011-04-25 23:44:11 -070014LOCAL_STATIC_JAVA_LIBRARIES := \
Christopher Wiley1cc6ffd2016-05-18 16:32:44 -070015 frameworks-base-testutils \
Phil Weaver8c1e36b2016-06-24 18:16:14 -070016 services.accessibility \
Sunny Goyal87a563e2017-01-01 19:42:45 -080017 services.appwidget \
Narayan Kamathd8b54e82014-08-21 12:25:24 +010018 services.core \
19 services.devicepolicy \
Lorenzo Colittia12bde32015-03-31 16:26:57 +090020 services.net \
Sudheer Shankad9fcb692016-08-02 12:56:50 -070021 services.retaildemo \
Amith Yamasania93542f2016-02-03 18:02:06 -080022 services.usage \
Jeff Sharkeyfb878b62012-07-26 18:32:30 -070023 guava \
Xiaohui Chenf86676a2015-08-19 13:30:07 -070024 android-support-test \
Guang Zhu01c560f2016-08-24 10:49:23 -070025 mockito-target-minus-junit4 \
Wale Ogunwale5fc70962016-09-09 22:36:19 -070026 platform-test-annotations \
Daniel Nishia59272e2016-12-12 15:16:00 -080027 ShortcutManagerTestUtils \
28 truth-prebuilt
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080029
Narayan Kamathd8b54e82014-08-21 12:25:24 +010030LOCAL_JAVA_LIBRARIES := android.test.runner
Svetoslav Ganov0b29a582010-04-16 18:52:49 -070031
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080032LOCAL_PACKAGE_NAME := FrameworksServicesTests
Simran Basi473a16e2017-03-15 14:43:58 -070033LOCAL_COMPATIBILITY_SUITE := device-tests
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080034
Neal Nguyen3433d3c2010-02-02 17:09:00 -080035LOCAL_CERTIFICATE := platform
36
Robin Leecfe26692016-04-05 12:19:06 +010037# These are not normally accessible from apps so they must be explicitly included.
Colin Crosse3994682017-01-11 14:29:10 -080038LOCAL_JNI_SHARED_LIBRARIES := \
Robin Leecfe26692016-04-05 12:19:06 +010039 libbacktrace \
40 libbase \
41 libbinder \
Paul Jensen5f3dec32016-02-07 21:55:45 -050042 libc++ \
Robin Leecfe26692016-04-05 12:19:06 +010043 libcutils \
44 liblog \
45 liblzma \
46 libnativehelper \
47 libnetdaidl \
48 libui \
49 libunwind \
50 libutils
51
52LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Paul Jensend38fb7662016-01-07 23:13:19 -050053
Allen Hairaeaee4c2016-09-22 09:58:06 -070054LOCAL_JACK_FLAGS := --multi-dex native
Allen Hairaeaee4c2016-09-22 09:58:06 -070055
Jorim Jaggi7b614372016-09-28 15:17:50 +020056LOCAL_STATIC_JAVA_LIBRARIES += ub-uiautomator
57
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080058include $(BUILD_PACKAGE)