1# Build the unit tests. 2LOCAL_PATH:= $(call my-dir) 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_TAGS := tests 6 7LOCAL_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 15LOCAL_SRC_FILES:= \ 16 BufferQueue_test.cpp 17 18LOCAL_SHARED_LIBRARIES := \ 19 libutils \ 20 libOpenSLES \ 21 libstlport 22 23LOCAL_STATIC_LIBRARIES := \ 24 libOpenSLESUT \ 25 libgtest 26 27ifeq ($(TARGET_OS),linux) 28 LOCAL_CFLAGS += -DXP_UNIX 29 #LOCAL_SHARED_LIBRARIES += librt 30endif 31 32LOCAL_MODULE:= BufferQueue_test 33 34LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest 35 36include $(BUILD_EXECUTABLE) 37 38# Build the manual test programs. 39include $(call all-makefiles-under,$(LOCAL_PATH)) 40