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