blob: 00ebae6613cce0d121c7d6edbc9b5a825eb480a7 [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.
Tadashi G. Takaoka3f9e0282018-09-14 13:58:44 +090012LOCAL_SRC_FILES := \
13 $(call all-java-files-under, src) \
14 $(call all-java-files-under, utils) \
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080015
Jeff Sharkeyb7342ac2011-04-25 23:44:11 -070016LOCAL_STATIC_JAVA_LIBRARIES := \
Christopher Wiley1cc6ffd2016-05-18 16:32:44 -070017 frameworks-base-testutils \
Phil Weaver8c1e36b2016-06-24 18:16:14 -070018 services.accessibility \
Sunny Goyal87a563e2017-01-01 19:42:45 -080019 services.appwidget \
Felipe Leme1c7eb0c2018-03-09 14:13:18 -080020 services.autofill \
Artem Iglikov6052ef52017-04-20 17:23:39 +010021 services.backup \
Narayan Kamathd8b54e82014-08-21 12:25:24 +010022 services.core \
23 services.devicepolicy \
Lorenzo Colittia12bde32015-03-31 16:26:57 +090024 services.net \
Amith Yamasania93542f2016-02-03 18:02:06 -080025 services.usage \
Jeff Sharkeyfb878b62012-07-26 18:32:30 -070026 guava \
Xiaohui Chenf86676a2015-08-19 13:30:07 -070027 android-support-test \
Guang Zhu01c560f2016-08-24 10:49:23 -070028 mockito-target-minus-junit4 \
Wale Ogunwale5fc70962016-09-09 22:36:19 -070029 platform-test-annotations \
Daniel Nishia59272e2016-12-12 15:16:00 -080030 ShortcutManagerTestUtils \
Tony Mak1b708e62017-10-12 10:59:11 +010031 truth-prebuilt \
Adrian Roose1856fe2017-11-24 19:39:12 +010032 testables \
Ricky Waid89243b2018-01-31 18:06:21 +000033 testng \
Suprabh Shukla3c3af142018-03-30 00:28:37 -070034 ub-uiautomator\
Ricky Waid89243b2018-01-31 18:06:21 +000035 platformprotosnano
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080036
Sudheer Shanka686bb2d2017-03-20 12:16:32 -070037LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/aidl
38
Sudheer Shankaded7ab02017-08-11 18:22:16 -070039LOCAL_SRC_FILES += aidl/com/android/servicestests/aidl/INetworkStateObserver.aidl \
40 aidl/com/android/servicestests/aidl/ICmdReceiverService.aidl
Suprabh Shukla3ac1daa2017-07-14 12:15:27 -070041LOCAL_SRC_FILES += $(call all-java-files-under, test-apps/JobTestApp/src)
Suprabh Shukla021b57a2018-03-08 18:21:50 -080042LOCAL_SRC_FILES += $(call all-java-files-under, test-apps/SuspendTestApp/src)
Sudheer Shanka686bb2d2017-03-20 12:16:32 -070043
Yifan Hong98852792017-10-12 11:35:14 -070044LOCAL_JAVA_LIBRARIES := \
45 android.hidl.manager-V1.0-java \
46 android.test.mock \
Paul Duffin2710ca12017-12-05 18:36:56 +000047 android.test.base android.test.runner \
Svetoslav Ganov0b29a582010-04-16 18:52:49 -070048
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080049LOCAL_PACKAGE_NAME := FrameworksServicesTests
Anton Hanssonab6ec612018-02-23 12:57:51 +000050LOCAL_PRIVATE_PLATFORM_APIS := true
Simran Basi473a16e2017-03-15 14:43:58 -070051LOCAL_COMPATIBILITY_SUITE := device-tests
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080052
Neal Nguyen3433d3c2010-02-02 17:09:00 -080053LOCAL_CERTIFICATE := platform
54
Robin Leecfe26692016-04-05 12:19:06 +010055# These are not normally accessible from apps so they must be explicitly included.
Colin Crosse3994682017-01-11 14:29:10 -080056LOCAL_JNI_SHARED_LIBRARIES := \
Robin Leecfe26692016-04-05 12:19:06 +010057 libbacktrace \
58 libbase \
59 libbinder \
Jayant Chowdhary14aeab62018-09-28 12:56:05 -070060 libbinderthreadstate \
Paul Jensen5f3dec32016-02-07 21:55:45 -050061 libc++ \
Robin Leecfe26692016-04-05 12:19:06 +010062 libcutils \
63 liblog \
64 liblzma \
65 libnativehelper \
66 libnetdaidl \
67 libui \
68 libunwind \
69 libutils
70
71LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Paul Jensend38fb7662016-01-07 23:13:19 -050072
Allen Hairaeaee4c2016-09-22 09:58:06 -070073LOCAL_JACK_FLAGS := --multi-dex native
Colin Cross77032492017-03-23 12:33:14 -070074LOCAL_DX_FLAGS := --multi-dex
Allen Hairaeaee4c2016-09-22 09:58:06 -070075
Makoto Onuki016431f2017-10-11 11:53:00 -070076LOCAL_PROGUARD_ENABLED := disabled
77
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080078include $(BUILD_PACKAGE)
Suprabh Shukla3ac1daa2017-07-14 12:15:27 -070079
80include $(call all-makefiles-under, $(LOCAL_PATH))