Home | History | Annotate | Download | only in servicestests
      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     frameworks-base-testutils \
     16     services.core \
     17     services.devicepolicy \
     18     services.net \
     19     services.usage \
     20     easymocklib \
     21     guava \
     22     android-support-test \
     23     mockito-target \
     24     ShortcutManagerTestUtils
     25 
     26 LOCAL_JAVA_LIBRARIES := android.test.runner
     27 
     28 LOCAL_PACKAGE_NAME := FrameworksServicesTests
     29 
     30 LOCAL_CERTIFICATE := platform
     31 
     32 # These are not normally accessible from apps so they must be explicitly included.
     33 LOCAL_JNI_SHARED_LIBRARIES := libservicestestsjni \
     34     libbacktrace \
     35     libbase \
     36     libbinder \
     37     libc++ \
     38     libcutils \
     39     liblog \
     40     liblzma \
     41     libnativehelper \
     42     libnetdaidl \
     43     libui \
     44     libunwind \
     45     libutils
     46 
     47 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
     48 
     49 include $(BUILD_PACKAGE)
     50 
     51 #########################################################################
     52 # Build JNI Shared Library
     53 #########################################################################
     54 
     55 LOCAL_PATH:= $(LOCAL_PATH)/jni
     56 
     57 include $(CLEAR_VARS)
     58 
     59 LOCAL_MODULE_TAGS := tests
     60 
     61 LOCAL_CFLAGS := -Wall -Wextra -Werror
     62 
     63 LOCAL_C_INCLUDES := \
     64   libpcap \
     65   hardware/google/apf
     66 
     67 LOCAL_SRC_FILES := $(call all-cpp-files-under)
     68 
     69 LOCAL_SHARED_LIBRARIES := \
     70   libbinder \
     71   libcutils \
     72   libnativehelper \
     73   libnetdaidl
     74 
     75 LOCAL_STATIC_LIBRARIES := \
     76   libpcap \
     77   libapf
     78 
     79 LOCAL_MODULE := libservicestestsjni
     80 
     81 include $(BUILD_SHARED_LIBRARY)
     82