Home | History | Annotate | Download | only in notification
      1 #########################################################################
      2 # Build FrameworksNotificationTests 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 test java files and source from notifications package.
     12 LOCAL_SRC_FILES := $(call all-java-files-under, src) \
     13 	$(call all-java-files-under, ../../core/java/com/android/server/notification)
     14 
     15 LOCAL_STATIC_JAVA_LIBRARIES := \
     16     frameworks-base-testutils \
     17     services.accessibility \
     18     services.core \
     19     services.devicepolicy \
     20     services.net \
     21     services.retaildemo \
     22     services.usage \
     23     guava \
     24     android-support-test \
     25     mockito-target-minus-junit4 \
     26     platform-test-annotations \
     27     testables
     28 
     29 LOCAL_JAVA_LIBRARIES := android.test.runner
     30 
     31 LOCAL_JACK_FLAGS := --multi-dex native
     32 
     33 LOCAL_PACKAGE_NAME := FrameworksNotificationTests
     34 LOCAL_COMPATIBILITY_SUITE := device-tests
     35 
     36 LOCAL_CERTIFICATE := platform
     37 
     38 # These are not normally accessible from apps so they must be explicitly included.
     39 LOCAL_JNI_SHARED_LIBRARIES := \
     40     libbacktrace \
     41     libbase \
     42     libbinder \
     43     libc++ \
     44     libcutils \
     45     liblog \
     46     liblzma \
     47     libnativehelper \
     48     libnetdaidl \
     49     libui \
     50     libunwind \
     51     libutils
     52 
     53 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
     54 
     55 # Code coverage puts us over the dex limit, so enable multi-dex for coverage-enabled builds
     56 ifeq (true,$(EMMA_INSTRUMENT))
     57 LOCAL_JACK_FLAGS := --multi-dex native
     58 endif # EMMA_INSTRUMENT_STATIC
     59 
     60 include $(BUILD_PACKAGE)
     61