Lorenzo Colitti | 2fbc934 | 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 |
| 27 | |
| 28 | LOCAL_CERTIFICATE := platform |
| 29 | |
| 30 | # These are not normally accessible from apps so they must be explicitly included. |
| 31 | LOCAL_JNI_SHARED_LIBRARIES := libframeworksnettestsjni \ |
| 32 | libbacktrace \ |
| 33 | libbase \ |
| 34 | libbinder \ |
| 35 | libc++ \ |
| 36 | libcutils \ |
| 37 | liblog \ |
| 38 | liblzma \ |
| 39 | libnativehelper \ |
| 40 | libnetdaidl \ |
| 41 | libui \ |
| 42 | libunwind \ |
| 43 | libutils |
| 44 | |
| 45 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 46 | |
| 47 | include $(BUILD_PACKAGE) |
| 48 | |
| 49 | ######################################################################### |
| 50 | # Build JNI Shared Library |
| 51 | ######################################################################### |
| 52 | |
| 53 | LOCAL_PATH:= $(LOCAL_PATH)/jni |
| 54 | |
| 55 | include $(CLEAR_VARS) |
| 56 | |
| 57 | LOCAL_MODULE_TAGS := tests |
| 58 | |
| 59 | LOCAL_CFLAGS := -Wall -Wextra -Werror |
| 60 | |
| 61 | LOCAL_C_INCLUDES := \ |
| 62 | libpcap \ |
| 63 | hardware/google/apf |
| 64 | |
| 65 | LOCAL_SRC_FILES := $(call all-cpp-files-under) |
| 66 | |
| 67 | LOCAL_SHARED_LIBRARIES := \ |
| 68 | libbinder \ |
| 69 | liblog \ |
| 70 | libcutils \ |
| 71 | libnativehelper \ |
| 72 | libnetdaidl |
| 73 | |
| 74 | LOCAL_STATIC_LIBRARIES := \ |
| 75 | libpcap \ |
| 76 | libapf |
| 77 | |
| 78 | LOCAL_MODULE := libframeworksnettestsjni |
| 79 | |
| 80 | include $(BUILD_SHARED_LIBRARY) |