Home | History | Annotate | Download | only in automated
      1 # Build the unit tests.
      2 ifneq ($(TARGET_SIMULATOR),true)
      3 
      4 LOCAL_PATH:= $(call my-dir)
      5 include $(CLEAR_VARS)
      6 
      7 LOCAL_MODULE_TAGS := tests
      8 
      9 LOCAL_C_INCLUDES:= \
     10     bionic \
     11     bionic/libstdc++/include \
     12     external/gtest/include \
     13     system/media/opensles/include \
     14     external/stlport/stlport
     15 
     16 LOCAL_SRC_FILES:= \
     17     BufferQueue_test.cpp
     18 
     19 LOCAL_SHARED_LIBRARIES := \
     20 	libutils \
     21 	libOpenSLES \
     22     libstlport
     23 
     24 LOCAL_STATIC_LIBRARIES := \
     25     libOpenSLESUT \
     26     libgtest
     27 
     28 ifeq ($(TARGET_OS),linux)
     29 	LOCAL_CFLAGS += -DXP_UNIX
     30 	#LOCAL_SHARED_LIBRARIES += librt
     31 endif
     32 
     33 LOCAL_MODULE:= BufferQueue_test
     34 
     35 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
     36 
     37 include $(BUILD_EXECUTABLE)
     38 
     39 endif
     40 # Build the manual test programs.
     41 include $(call all-subdir-makefiles)
     42