Android.mk revision d6f8b03c7265928dc9ff0516ffe5106028a54069
1#Build the unit tests.
2ifneq ($(TARGET_SIMULATOR),true)
3
4LOCAL_PATH:= $(call my-dir)
5include $(CLEAR_VARS)
6
7LOCAL_MODULE_TAGS := tests
8
9LOCAL_C_INCLUDES:= \
10    bionic \
11    bionic/libstdc++/include \
12    external/gtest/include \
13    system/media/opensles/include \
14    external/stlport/stlport
15
16LOCAL_SRC_FILES:= \
17    BufferQueue_test.cpp
18
19LOCAL_SHARED_LIBRARIES := \
20	libutils \
21	libOpenSLES \
22    libstlport
23
24LOCAL_STATIC_LIBRARIES := \
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
38endif
39
40#Build the manual test programs.
41include $(call all-subdir-makefiles)
42