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 |
Simran Basi | 473a16e | 2017-03-15 14:43:58 -0700 | [diff] [blame] | 27 | LOCAL_COMPATIBILITY_SUITE := device-tests |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 28 | |
| 29 | LOCAL_CERTIFICATE := platform |
| 30 | |
| 31 | # These are not normally accessible from apps so they must be explicitly included. |
| 32 | LOCAL_JNI_SHARED_LIBRARIES := libframeworksnettestsjni \ |
| 33 | libbacktrace \ |
| 34 | libbase \ |
| 35 | libbinder \ |
| 36 | libc++ \ |
| 37 | libcutils \ |
| 38 | liblog \ |
| 39 | liblzma \ |
| 40 | libnativehelper \ |
| 41 | libnetdaidl \ |
| 42 | libui \ |
| 43 | libunwind \ |
Hugo Benichi | 22291f8 | 2017-03-08 10:10:28 +0900 | [diff] [blame] | 44 | libutils \ |
| 45 | libcrypto \ |
| 46 | libhidl-gen-utils \ |
| 47 | libhidlbase \ |
| 48 | libhidltransport \ |
| 49 | libpackagelistparser \ |
| 50 | libpcre2 \ |
| 51 | libselinux \ |
| 52 | libtinyxml2 \ |
| 53 | libvintf \ |
| 54 | libhwbinder \ |
| 55 | android.hidl.base@1.0 \ |
| 56 | android.hidl.token@1.0 |
Lorenzo Colitti | ecc986d | 2016-10-28 12:48:36 +0900 | [diff] [blame] | 57 | |
| 58 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 59 | |
| 60 | include $(BUILD_PACKAGE) |
| 61 | |
| 62 | ######################################################################### |
| 63 | # Build JNI Shared Library |
| 64 | ######################################################################### |
| 65 | |
| 66 | LOCAL_PATH:= $(LOCAL_PATH)/jni |
| 67 | |
| 68 | include $(CLEAR_VARS) |
| 69 | |
| 70 | LOCAL_MODULE_TAGS := tests |
| 71 | |
| 72 | LOCAL_CFLAGS := -Wall -Wextra -Werror |
| 73 | |
| 74 | LOCAL_C_INCLUDES := \ |
| 75 | libpcap \ |
| 76 | hardware/google/apf |
| 77 | |
| 78 | LOCAL_SRC_FILES := $(call all-cpp-files-under) |
| 79 | |
| 80 | LOCAL_SHARED_LIBRARIES := \ |
| 81 | libbinder \ |
| 82 | liblog \ |
| 83 | libcutils \ |
| 84 | libnativehelper \ |
| 85 | libnetdaidl |
| 86 | |
| 87 | LOCAL_STATIC_LIBRARIES := \ |
| 88 | libpcap \ |
| 89 | libapf |
| 90 | |
| 91 | LOCAL_MODULE := libframeworksnettestsjni |
| 92 | |
| 93 | include $(BUILD_SHARED_LIBRARY) |