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 \ |
| 21 | services.net |
| 22 | |
| 23 | LOCAL_JAVA_LIBRARIES := \ |
Paul Duffin | 2710ca1 | 2017-12-05 18:36:56 +0000 | [diff] [blame] | 24 | android.test.runner \ |
| 25 | android.test.base \ |
| 26 | android.test.mock |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 27 | |
| 28 | LOCAL_PACKAGE_NAME := FrameworksNetTests |
Anton Hansson | d137c87 | 2018-02-23 12:57:51 +0000 | [diff] [blame] | 29 | LOCAL_PRIVATE_PLATFORM_APIS := true |
Simran Basi | 473a16e | 2017-03-15 14:43:58 -0700 | [diff] [blame] | 30 | LOCAL_COMPATIBILITY_SUITE := device-tests |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 31 | |
| 32 | LOCAL_CERTIFICATE := platform |
| 33 | |
| 34 | # 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] | 35 | LOCAL_JNI_SHARED_LIBRARIES := \ |
| 36 | android.hidl.token@1.0 \ |
Remi NGUYEN VAN | 76be372 | 2018-05-30 13:52:08 +0900 | [diff] [blame] | 37 | libartbase \ |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 38 | libbacktrace \ |
| 39 | libbase \ |
| 40 | libbinder \ |
Jayant Chowdhary | 14aeab6 | 2018-09-28 12:56:05 -0700 | [diff] [blame] | 41 | libbinderthreadstate \ |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 42 | libc++ \ |
Lorenzo Colitti | 18aeff8 | 2018-01-22 12:53:18 +0900 | [diff] [blame] | 43 | libcrypto \ |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 44 | libcutils \ |
Hugo Benichi | 5775177 | 2018-01-29 13:16:12 +0900 | [diff] [blame] | 45 | libdexfile \ |
Lorenzo Colitti | 18aeff8 | 2018-01-22 12:53:18 +0900 | [diff] [blame] | 46 | libframeworksnettestsjni \ |
| 47 | libhidl-gen-utils \ |
| 48 | libhidlbase \ |
| 49 | libhidltransport \ |
| 50 | libhwbinder \ |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 51 | liblog \ |
| 52 | liblzma \ |
| 53 | libnativehelper \ |
| 54 | libnetdaidl \ |
Hugo Benichi | 22291f8 | 2017-03-08 10:10:28 +0900 | [diff] [blame] | 55 | libpackagelistparser \ |
| 56 | libpcre2 \ |
| 57 | libselinux \ |
Lorenzo Colitti | 18aeff8 | 2018-01-22 12:53:18 +0900 | [diff] [blame] | 58 | libui \ |
Lorenzo Colitti | 18aeff8 | 2018-01-22 12:53:18 +0900 | [diff] [blame] | 59 | libutils \ |
Hugo Benichi | 22291f8 | 2017-03-08 10:10:28 +0900 | [diff] [blame] | 60 | libvintf \ |
Lorenzo Colitti | 18aeff8 | 2018-01-22 12:53:18 +0900 | [diff] [blame] | 61 | libvndksupport \ |
| 62 | libtinyxml2 \ |
Hugo Benichi | 99e8ab6 | 2017-08-04 12:12:25 +0900 | [diff] [blame] | 63 | libunwindstack \ |
Remi NGUYEN VAN | 76be372 | 2018-05-30 13:52:08 +0900 | [diff] [blame] | 64 | libutilscallstack \ |
| 65 | libziparchive \ |
Luke Huang | 13b79e8 | 2018-09-26 14:53:42 +0800 | [diff] [blame] | 66 | libz \ |
| 67 | netd_aidl_interface-cpp |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 68 | |
| 69 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 70 | |
| 71 | include $(BUILD_PACKAGE) |
| 72 | |
| 73 | ######################################################################### |
| 74 | # Build JNI Shared Library |
| 75 | ######################################################################### |
| 76 | |
| 77 | LOCAL_PATH:= $(LOCAL_PATH)/jni |
| 78 | |
| 79 | include $(CLEAR_VARS) |
| 80 | |
| 81 | LOCAL_MODULE_TAGS := tests |
| 82 | |
| 83 | LOCAL_CFLAGS := -Wall -Wextra -Werror |
| 84 | |
| 85 | LOCAL_C_INCLUDES := \ |
| 86 | libpcap \ |
| 87 | hardware/google/apf |
| 88 | |
| 89 | LOCAL_SRC_FILES := $(call all-cpp-files-under) |
| 90 | |
| 91 | LOCAL_SHARED_LIBRARIES := \ |
| 92 | libbinder \ |
| 93 | liblog \ |
| 94 | libcutils \ |
| 95 | libnativehelper \ |
Luke Huang | 13b79e8 | 2018-09-26 14:53:42 +0800 | [diff] [blame] | 96 | libnetdaidl \ |
| 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) |