Paul Jensen | d38fb76 | 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 := \ |
Lorenzo Colitti | 744b0206 | 2016-12-09 14:19:57 +0900 | [diff] [blame] | 15 | easymocklib \ |
Christopher Wiley | 1ff75bd | 2016-05-18 16:32:44 -0700 | [diff] [blame] | 16 | frameworks-base-testutils \ |
Narayan Kamath | d8b54e8 | 2014-08-21 12:25:24 +0100 | [diff] [blame] | 17 | services.core \ |
| 18 | services.devicepolicy \ |
Lorenzo Colitti | a12bde3 | 2015-03-31 16:26:57 +0900 | [diff] [blame] | 19 | services.net \ |
Amith Yamasani | a93542f | 2016-02-03 18:02:06 -0800 | [diff] [blame] | 20 | services.usage \ |
Jeff Sharkey | fb878b6 | 2012-07-26 18:32:30 -0700 | [diff] [blame] | 21 | guava \ |
Xiaohui Chen | f86676a | 2015-08-19 13:30:07 -0700 | [diff] [blame] | 22 | android-support-test \ |
Makoto Onuki | 5ba0d3e | 2016-04-11 14:03:46 -0700 | [diff] [blame] | 23 | mockito-target \ |
| 24 | ShortcutManagerTestUtils |
Neal Nguyen | 1a44d5d | 2010-01-13 10:42:43 -0800 | [diff] [blame] | 25 | |
Narayan Kamath | d8b54e8 | 2014-08-21 12:25:24 +0100 | [diff] [blame] | 26 | LOCAL_JAVA_LIBRARIES := android.test.runner |
Svetoslav Ganov | 0b29a58 | 2010-04-16 18:52:49 -0700 | [diff] [blame] | 27 | |
Neal Nguyen | 1a44d5d | 2010-01-13 10:42:43 -0800 | [diff] [blame] | 28 | LOCAL_PACKAGE_NAME := FrameworksServicesTests |
| 29 | |
Neal Nguyen | 3433d3c | 2010-02-02 17:09:00 -0800 | [diff] [blame] | 30 | LOCAL_CERTIFICATE := platform |
| 31 | |
Robin Lee | cfe2669 | 2016-04-05 12:19:06 +0100 | [diff] [blame] | 32 | # These are not normally accessible from apps so they must be explicitly included. |
| 33 | LOCAL_JNI_SHARED_LIBRARIES := libservicestestsjni \ |
| 34 | libbacktrace \ |
| 35 | libbase \ |
| 36 | libbinder \ |
Paul Jensen | 5f3dec3 | 2016-02-07 21:55:45 -0500 | [diff] [blame] | 37 | libc++ \ |
Robin Lee | cfe2669 | 2016-04-05 12:19:06 +0100 | [diff] [blame] | 38 | libcutils \ |
| 39 | liblog \ |
| 40 | liblzma \ |
| 41 | libnativehelper \ |
| 42 | libnetdaidl \ |
| 43 | libui \ |
| 44 | libunwind \ |
| 45 | libutils |
| 46 | |
| 47 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Paul Jensen | d38fb76 | 2016-01-07 23:13:19 -0500 | [diff] [blame] | 48 | |
Neal Nguyen | 1a44d5d | 2010-01-13 10:42:43 -0800 | [diff] [blame] | 49 | include $(BUILD_PACKAGE) |
| 50 | |
Paul Jensen | d38fb76 | 2016-01-07 23:13:19 -0500 | [diff] [blame] | 51 | ######################################################################### |
| 52 | # Build JNI Shared Library |
| 53 | ######################################################################### |
| 54 | |
| 55 | LOCAL_PATH:= $(LOCAL_PATH)/jni |
| 56 | |
| 57 | include $(CLEAR_VARS) |
| 58 | |
| 59 | LOCAL_MODULE_TAGS := tests |
| 60 | |
Robin Lee | cfe2669 | 2016-04-05 12:19:06 +0100 | [diff] [blame] | 61 | LOCAL_CFLAGS := -Wall -Wextra -Werror |
Paul Jensen | d38fb76 | 2016-01-07 23:13:19 -0500 | [diff] [blame] | 62 | |
| 63 | LOCAL_C_INCLUDES := \ |
| 64 | libpcap \ |
| 65 | hardware/google/apf |
| 66 | |
Robin Lee | cfe2669 | 2016-04-05 12:19:06 +0100 | [diff] [blame] | 67 | LOCAL_SRC_FILES := $(call all-cpp-files-under) |
Paul Jensen | d38fb76 | 2016-01-07 23:13:19 -0500 | [diff] [blame] | 68 | |
| 69 | LOCAL_SHARED_LIBRARIES := \ |
Robin Lee | cfe2669 | 2016-04-05 12:19:06 +0100 | [diff] [blame] | 70 | libbinder \ |
Dimitry Ivanov | 1f34a1ba | 2016-09-23 17:20:32 -0700 | [diff] [blame] | 71 | liblog \ |
Robin Lee | cfe2669 | 2016-04-05 12:19:06 +0100 | [diff] [blame] | 72 | libcutils \ |
Paul Jensen | d38fb76 | 2016-01-07 23:13:19 -0500 | [diff] [blame] | 73 | libnativehelper \ |
Robin Lee | cfe2669 | 2016-04-05 12:19:06 +0100 | [diff] [blame] | 74 | libnetdaidl |
Paul Jensen | d38fb76 | 2016-01-07 23:13:19 -0500 | [diff] [blame] | 75 | |
| 76 | LOCAL_STATIC_LIBRARIES := \ |
| 77 | libpcap \ |
| 78 | libapf |
| 79 | |
Robin Lee | cfe2669 | 2016-04-05 12:19:06 +0100 | [diff] [blame] | 80 | LOCAL_MODULE := libservicestestsjni |
Paul Jensen | d38fb76 | 2016-01-07 23:13:19 -0500 | [diff] [blame] | 81 | |
| 82 | include $(BUILD_SHARED_LIBRARY) |