Paul Jensen | d38fb766 | 2016-01-07 23:13:19 -0500 | [diff] [blame] | 1 | ######################################################################### |
| 2 | # Build FrameworksServicesTests package |
| 3 | ######################################################################### |
| 4 | |
Neal Nguyen | 1a44d5d | 2010-01-13 10:42:43 -0800 | [diff] [blame] | 5 | LOCAL_PATH:= $(call my-dir) |
| 6 | include $(CLEAR_VARS) |
| 7 | |
| 8 | # We only want this apk build for tests. |
| 9 | LOCAL_MODULE_TAGS := tests |
| 10 | |
| 11 | # Include all test java files. |
| 12 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 13 | |
Jeff Sharkey | b7342ac | 2011-04-25 23:44:11 -0700 | [diff] [blame] | 14 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Christopher Wiley | 1cc6ffd | 2016-05-18 16:32:44 -0700 | [diff] [blame] | 15 | frameworks-base-testutils \ |
Phil Weaver | 8c1e36b | 2016-06-24 18:16:14 -0700 | [diff] [blame] | 16 | services.accessibility \ |
Sunny Goyal | 87a563e | 2017-01-01 19:42:45 -0800 | [diff] [blame] | 17 | services.appwidget \ |
Artem Iglikov | 6052ef5 | 2017-04-20 17:23:39 +0100 | [diff] [blame] | 18 | services.backup \ |
Narayan Kamath | d8b54e8 | 2014-08-21 12:25:24 +0100 | [diff] [blame] | 19 | services.core \ |
| 20 | services.devicepolicy \ |
Lorenzo Colitti | a12bde3 | 2015-03-31 16:26:57 +0900 | [diff] [blame] | 21 | services.net \ |
Amith Yamasani | a93542f | 2016-02-03 18:02:06 -0800 | [diff] [blame] | 22 | services.usage \ |
Jeff Sharkey | fb878b6 | 2012-07-26 18:32:30 -0700 | [diff] [blame] | 23 | guava \ |
Xiaohui Chen | f86676a | 2015-08-19 13:30:07 -0700 | [diff] [blame] | 24 | android-support-test \ |
Guang Zhu | 01c560f | 2016-08-24 10:49:23 -0700 | [diff] [blame] | 25 | mockito-target-minus-junit4 \ |
Wale Ogunwale | 5fc7096 | 2016-09-09 22:36:19 -0700 | [diff] [blame] | 26 | platform-test-annotations \ |
Daniel Nishi | a59272e | 2016-12-12 15:16:00 -0800 | [diff] [blame] | 27 | ShortcutManagerTestUtils \ |
Tony Mak | 1b708e6 | 2017-10-12 10:59:11 +0100 | [diff] [blame] | 28 | truth-prebuilt \ |
Adrian Roos | e1856fe | 2017-11-24 19:39:12 +0100 | [diff] [blame^] | 29 | testables \ |
Tony Mak | 1b708e6 | 2017-10-12 10:59:11 +0100 | [diff] [blame] | 30 | testng |
Neal Nguyen | 1a44d5d | 2010-01-13 10:42:43 -0800 | [diff] [blame] | 31 | |
Sudheer Shanka | 686bb2d | 2017-03-20 12:16:32 -0700 | [diff] [blame] | 32 | LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/aidl |
| 33 | |
Sudheer Shanka | ded7ab0 | 2017-08-11 18:22:16 -0700 | [diff] [blame] | 34 | LOCAL_SRC_FILES += aidl/com/android/servicestests/aidl/INetworkStateObserver.aidl \ |
| 35 | aidl/com/android/servicestests/aidl/ICmdReceiverService.aidl |
Suprabh Shukla | 3ac1daa | 2017-07-14 12:15:27 -0700 | [diff] [blame] | 36 | LOCAL_SRC_FILES += $(call all-java-files-under, test-apps/JobTestApp/src) |
Sudheer Shanka | 686bb2d | 2017-03-20 12:16:32 -0700 | [diff] [blame] | 37 | |
Yifan Hong | 9885279 | 2017-10-12 11:35:14 -0700 | [diff] [blame] | 38 | LOCAL_JAVA_LIBRARIES := \ |
| 39 | android.hidl.manager-V1.0-java \ |
| 40 | android.test.mock \ |
| 41 | legacy-android-test \ |
Svetoslav Ganov | 0b29a58 | 2010-04-16 18:52:49 -0700 | [diff] [blame] | 42 | |
Neal Nguyen | 1a44d5d | 2010-01-13 10:42:43 -0800 | [diff] [blame] | 43 | LOCAL_PACKAGE_NAME := FrameworksServicesTests |
Simran Basi | 473a16e | 2017-03-15 14:43:58 -0700 | [diff] [blame] | 44 | LOCAL_COMPATIBILITY_SUITE := device-tests |
Neal Nguyen | 1a44d5d | 2010-01-13 10:42:43 -0800 | [diff] [blame] | 45 | |
Neal Nguyen | 3433d3c | 2010-02-02 17:09:00 -0800 | [diff] [blame] | 46 | LOCAL_CERTIFICATE := platform |
| 47 | |
Robin Lee | cfe2669 | 2016-04-05 12:19:06 +0100 | [diff] [blame] | 48 | # These are not normally accessible from apps so they must be explicitly included. |
Colin Cross | e399468 | 2017-01-11 14:29:10 -0800 | [diff] [blame] | 49 | LOCAL_JNI_SHARED_LIBRARIES := \ |
Robin Lee | cfe2669 | 2016-04-05 12:19:06 +0100 | [diff] [blame] | 50 | libbacktrace \ |
| 51 | libbase \ |
| 52 | libbinder \ |
Paul Jensen | 5f3dec3 | 2016-02-07 21:55:45 -0500 | [diff] [blame] | 53 | libc++ \ |
Robin Lee | cfe2669 | 2016-04-05 12:19:06 +0100 | [diff] [blame] | 54 | libcutils \ |
| 55 | liblog \ |
| 56 | liblzma \ |
| 57 | libnativehelper \ |
| 58 | libnetdaidl \ |
| 59 | libui \ |
| 60 | libunwind \ |
| 61 | libutils |
| 62 | |
| 63 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Paul Jensen | d38fb766 | 2016-01-07 23:13:19 -0500 | [diff] [blame] | 64 | |
Allen Hair | aeaee4c | 2016-09-22 09:58:06 -0700 | [diff] [blame] | 65 | LOCAL_JACK_FLAGS := --multi-dex native |
Colin Cross | 7703249 | 2017-03-23 12:33:14 -0700 | [diff] [blame] | 66 | LOCAL_DX_FLAGS := --multi-dex |
Allen Hair | aeaee4c | 2016-09-22 09:58:06 -0700 | [diff] [blame] | 67 | |
Jorim Jaggi | 7b61437 | 2016-09-28 15:17:50 +0200 | [diff] [blame] | 68 | LOCAL_STATIC_JAVA_LIBRARIES += ub-uiautomator |
| 69 | |
Makoto Onuki | 016431f | 2017-10-11 11:53:00 -0700 | [diff] [blame] | 70 | LOCAL_PROGUARD_ENABLED := disabled |
| 71 | |
Neal Nguyen | 1a44d5d | 2010-01-13 10:42:43 -0800 | [diff] [blame] | 72 | include $(BUILD_PACKAGE) |
Suprabh Shukla | 3ac1daa | 2017-07-14 12:15:27 -0700 | [diff] [blame] | 73 | |
| 74 | include $(call all-makefiles-under, $(LOCAL_PATH)) |