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