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 := \ |
Narayan Kamath | d8b54e8 | 2014-08-21 12:25:24 +0100 | [diff] [blame] | 15 | services.core \ |
| 16 | services.devicepolicy \ |
Lorenzo Colitti | a12bde3 | 2015-03-31 16:26:57 +0900 | [diff] [blame] | 17 | services.net \ |
Amith Yamasani | a93542f | 2016-02-03 18:02:06 -0800 | [diff] [blame] | 18 | services.usage \ |
Jeff Sharkey | b7342ac | 2011-04-25 23:44:11 -0700 | [diff] [blame] | 19 | easymocklib \ |
Jeff Sharkey | fb878b6 | 2012-07-26 18:32:30 -0700 | [diff] [blame] | 20 | guava \ |
Xiaohui Chen | f86676a | 2015-08-19 13:30:07 -0700 | [diff] [blame] | 21 | android-support-test \ |
Jeff Sharkey | 3671b1e | 2013-01-31 17:22:26 -0800 | [diff] [blame] | 22 | mockito-target |
Neal Nguyen | 1a44d5d | 2010-01-13 10:42:43 -0800 | [diff] [blame] | 23 | |
Narayan Kamath | d8b54e8 | 2014-08-21 12:25:24 +0100 | [diff] [blame] | 24 | LOCAL_JAVA_LIBRARIES := android.test.runner |
Svetoslav Ganov | 0b29a58 | 2010-04-16 18:52:49 -0700 | [diff] [blame] | 25 | |
Neal Nguyen | 1a44d5d | 2010-01-13 10:42:43 -0800 | [diff] [blame] | 26 | LOCAL_PACKAGE_NAME := FrameworksServicesTests |
| 27 | |
Neal Nguyen | 3433d3c | 2010-02-02 17:09:00 -0800 | [diff] [blame] | 28 | LOCAL_CERTIFICATE := platform |
| 29 | |
Paul Jensen | 514a3bf | 2016-02-04 09:11:40 -0500 | [diff] [blame] | 30 | LOCAL_JNI_SHARED_LIBRARIES := \ |
| 31 | libapfjni \ |
| 32 | libnativehelper |
Paul Jensen | d38fb766 | 2016-01-07 23:13:19 -0500 | [diff] [blame] | 33 | |
Neal Nguyen | 1a44d5d | 2010-01-13 10:42:43 -0800 | [diff] [blame] | 34 | include $(BUILD_PACKAGE) |
| 35 | |
Paul Jensen | d38fb766 | 2016-01-07 23:13:19 -0500 | [diff] [blame] | 36 | ######################################################################### |
| 37 | # Build JNI Shared Library |
| 38 | ######################################################################### |
| 39 | |
| 40 | LOCAL_PATH:= $(LOCAL_PATH)/jni |
| 41 | |
| 42 | include $(CLEAR_VARS) |
| 43 | |
| 44 | LOCAL_MODULE_TAGS := tests |
| 45 | |
| 46 | LOCAL_CFLAGS := -Wall -Werror |
| 47 | |
| 48 | LOCAL_C_INCLUDES := \ |
| 49 | libpcap \ |
| 50 | hardware/google/apf |
| 51 | |
| 52 | LOCAL_SRC_FILES := apf_jni.cpp |
| 53 | |
| 54 | LOCAL_SHARED_LIBRARIES := \ |
| 55 | libnativehelper \ |
| 56 | liblog |
| 57 | |
| 58 | LOCAL_STATIC_LIBRARIES := \ |
| 59 | libpcap \ |
| 60 | libapf |
| 61 | |
| 62 | LOCAL_MODULE := libapfjni |
| 63 | |
| 64 | include $(BUILD_SHARED_LIBRARY) |