Home | History | Annotate | Download | only in tests
      1 # Build the unit tests,
      2 LOCAL_PATH:= $(call my-dir)
      3 include $(CLEAR_VARS)
      4 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
      5 
      6 LOCAL_MODULE := SurfaceFlinger_test
      7 LOCAL_COMPATIBILITY_SUITE := device-tests
      8 LOCAL_MODULE_TAGS := tests
      9 
     10 LOCAL_SRC_FILES := \
     11    Transaction_test.cpp \
     12    Stress_test.cpp \
     13    SurfaceInterceptor_test.cpp
     14 
     15 LOCAL_SHARED_LIBRARIES := \
     16     libEGL \
     17     libGLESv2 \
     18     libbinder \
     19     libcutils \
     20     libgui \
     21     libprotobuf-cpp-full \
     22     libui \
     23     libutils \
     24     libandroid \
     25     liblog
     26 
     27 LOCAL_STATIC_LIBRARIES := libtrace_proto
     28 
     29 LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
     30 
     31 LOCAL_TEST_DATA = SurfaceFlinger_test.filter
     32 
     33 # Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
     34 # to integrate with auto-test framework.
     35 include $(BUILD_NATIVE_TEST)
     36 
     37 # Include subdirectory makefiles
     38 # ============================================================
     39 
     40 # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
     41 # team really wants is to build the stuff defined by this makefile.
     42 ifeq (,$(ONE_SHOT_MAKEFILE))
     43 include $(call first-makefiles-under,$(LOCAL_PATH))
     44 endif
     45