1######################################################################### 2# Build FrameworksNetTests package 3######################################################################### 4 5LOCAL_PATH:= $(call my-dir) 6include $(CLEAR_VARS) 7 8# We only want this apk build for tests. 9LOCAL_MODULE_TAGS := tests 10 11# Include all test java files. 12LOCAL_SRC_FILES := $(call all-java-files-under, java) 13 14LOCAL_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 23LOCAL_JAVA_LIBRARIES := \ 24 android.test.runner 25 26LOCAL_PACKAGE_NAME := FrameworksNetTests 27LOCAL_COMPATIBILITY_SUITE := device-tests 28 29LOCAL_CERTIFICATE := platform 30 31# These are not normally accessible from apps so they must be explicitly included. 32LOCAL_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 \ 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 57 58LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 59 60include $(BUILD_PACKAGE) 61 62######################################################################### 63# Build JNI Shared Library 64######################################################################### 65 66LOCAL_PATH:= $(LOCAL_PATH)/jni 67 68include $(CLEAR_VARS) 69 70LOCAL_MODULE_TAGS := tests 71 72LOCAL_CFLAGS := -Wall -Wextra -Werror 73 74LOCAL_C_INCLUDES := \ 75 libpcap \ 76 hardware/google/apf 77 78LOCAL_SRC_FILES := $(call all-cpp-files-under) 79 80LOCAL_SHARED_LIBRARIES := \ 81 libbinder \ 82 liblog \ 83 libcutils \ 84 libnativehelper \ 85 libnetdaidl 86 87LOCAL_STATIC_LIBRARIES := \ 88 libpcap \ 89 libapf 90 91LOCAL_MODULE := libframeworksnettestsjni 92 93include $(BUILD_SHARED_LIBRARY) 94