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