Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 1 | ######################################################################### |
| 2 | # Build FrameworksNetTests package |
| 3 | ######################################################################### |
| 4 | |
| 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, java) |
| 13 | |
| 14 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 15 | frameworks-base-testutils \ |
| 16 | framework-protos \ |
| 17 | android-support-test \ |
| 18 | mockito-target-minus-junit4 \ |
| 19 | platform-test-annotations \ |
| 20 | services.core \ |
Chalard Jean | 8c141bd | 2018-12-04 20:20:56 +0900 | [diff] [blame] | 21 | services.ipmemorystore \ |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 22 | services.net |
| 23 | |
| 24 | LOCAL_JAVA_LIBRARIES := \ |
Paul Duffin | 2710ca1 | 2017-12-05 18:36:56 +0000 | [diff] [blame] | 25 | android.test.runner \ |
| 26 | android.test.base \ |
| 27 | android.test.mock |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 28 | |
| 29 | LOCAL_PACKAGE_NAME := FrameworksNetTests |
Anton Hansson | d137c87 | 2018-02-23 12:57:51 +0000 | [diff] [blame] | 30 | LOCAL_PRIVATE_PLATFORM_APIS := true |
Simran Basi | 473a16e | 2017-03-15 14:43:58 -0700 | [diff] [blame] | 31 | LOCAL_COMPATIBILITY_SUITE := device-tests |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 32 | |
| 33 | LOCAL_CERTIFICATE := platform |
| 34 | |
| 35 | # These are not normally accessible from apps so they must be explicitly included. |
Lorenzo Colitti | 18aeff8 | 2018-01-22 12:53:18 +0900 | [diff] [blame] | 36 | LOCAL_JNI_SHARED_LIBRARIES := \ |
| 37 | android.hidl.token@1.0 \ |
Remi NGUYEN VAN | 76be372 | 2018-05-30 13:52:08 +0900 | [diff] [blame] | 38 | libartbase \ |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 39 | libbacktrace \ |
| 40 | libbase \ |
| 41 | libbinder \ |
Jayant Chowdhary | 14aeab6 | 2018-09-28 12:56:05 -0700 | [diff] [blame] | 42 | libbinderthreadstate \ |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 43 | libc++ \ |
Lorenzo Colitti | 18aeff8 | 2018-01-22 12:53:18 +0900 | [diff] [blame] | 44 | libcrypto \ |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 45 | libcutils \ |
Hugo Benichi | 5775177 | 2018-01-29 13:16:12 +0900 | [diff] [blame] | 46 | libdexfile \ |
Lorenzo Colitti | 18aeff8 | 2018-01-22 12:53:18 +0900 | [diff] [blame] | 47 | libframeworksnettestsjni \ |
| 48 | libhidl-gen-utils \ |
| 49 | libhidlbase \ |
| 50 | libhidltransport \ |
| 51 | libhwbinder \ |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 52 | liblog \ |
| 53 | liblzma \ |
| 54 | libnativehelper \ |
Hugo Benichi | 22291f8 | 2017-03-08 10:10:28 +0900 | [diff] [blame] | 55 | libpackagelistparser \ |
| 56 | libpcre2 \ |
Suren Baghdasaryan | ced57bb | 2019-01-17 09:47:51 -0800 | [diff] [blame^] | 57 | libprocessgroup \ |
Hugo Benichi | 22291f8 | 2017-03-08 10:10:28 +0900 | [diff] [blame] | 58 | libselinux \ |
Lorenzo Colitti | 18aeff8 | 2018-01-22 12:53:18 +0900 | [diff] [blame] | 59 | libui \ |
Lorenzo Colitti | 18aeff8 | 2018-01-22 12:53:18 +0900 | [diff] [blame] | 60 | libutils \ |
Hugo Benichi | 22291f8 | 2017-03-08 10:10:28 +0900 | [diff] [blame] | 61 | libvintf \ |
Lorenzo Colitti | 18aeff8 | 2018-01-22 12:53:18 +0900 | [diff] [blame] | 62 | libvndksupport \ |
| 63 | libtinyxml2 \ |
Hugo Benichi | 99e8ab6 | 2017-08-04 12:12:25 +0900 | [diff] [blame] | 64 | libunwindstack \ |
Remi NGUYEN VAN | 76be372 | 2018-05-30 13:52:08 +0900 | [diff] [blame] | 65 | libutilscallstack \ |
| 66 | libziparchive \ |
Luke Huang | 13b79e8 | 2018-09-26 14:53:42 +0800 | [diff] [blame] | 67 | libz \ |
| 68 | netd_aidl_interface-cpp |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 69 | |
| 70 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 71 | |
| 72 | include $(BUILD_PACKAGE) |
| 73 | |
| 74 | ######################################################################### |
| 75 | # Build JNI Shared Library |
| 76 | ######################################################################### |
| 77 | |
| 78 | LOCAL_PATH:= $(LOCAL_PATH)/jni |
| 79 | |
| 80 | include $(CLEAR_VARS) |
| 81 | |
| 82 | LOCAL_MODULE_TAGS := tests |
| 83 | |
| 84 | LOCAL_CFLAGS := -Wall -Wextra -Werror |
| 85 | |
| 86 | LOCAL_C_INCLUDES := \ |
| 87 | libpcap \ |
| 88 | hardware/google/apf |
| 89 | |
| 90 | LOCAL_SRC_FILES := $(call all-cpp-files-under) |
| 91 | |
| 92 | LOCAL_SHARED_LIBRARIES := \ |
| 93 | libbinder \ |
| 94 | liblog \ |
| 95 | libcutils \ |
| 96 | libnativehelper \ |
Luke Huang | 13b79e8 | 2018-09-26 14:53:42 +0800 | [diff] [blame] | 97 | netd_aidl_interface-cpp |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 98 | |
| 99 | LOCAL_STATIC_LIBRARIES := \ |
| 100 | libpcap \ |
| 101 | libapf |
| 102 | |
| 103 | LOCAL_MODULE := libframeworksnettestsjni |
| 104 | |
| 105 | include $(BUILD_SHARED_LIBRARY) |