1 ######################################################################### 2 # Build FrameworksServicesTests 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, src) 13 14 LOCAL_STATIC_JAVA_LIBRARIES := \ 15 services.core \ 16 services.devicepolicy \ 17 services.net \ 18 services.usage \ 19 easymocklib \ 20 guava \ 21 android-support-test \ 22 mockito-target 23 24 LOCAL_JAVA_LIBRARIES := android.test.runner 25 26 LOCAL_PACKAGE_NAME := FrameworksServicesTests 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 := libservicestestsjni \ 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 libcutils \ 70 libnativehelper \ 71 libnetdaidl 72 73 LOCAL_STATIC_LIBRARIES := \ 74 libpcap \ 75 libapf 76 77 LOCAL_MODULE := libservicestestsjni 78 79 include $(BUILD_SHARED_LIBRARY) 80