13b2a7f6713db24c529a117a67aaabbc676678748Yu Shan Emily Lau# Build the unit tests.
2a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn KastenLOCAL_PATH:= $(call my-dir)
3a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasteninclude $(CLEAR_VARS)
4a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten
5a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn KastenLOCAL_MODULE_TAGS := tests
6a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten
7a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn KastenLOCAL_C_INCLUDES:= \
8a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten    bionic \
9a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten    bionic/libstdc++/include \
10a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten    external/gtest/include \
115321b3665e1a538cdcf894dea99d15c10b18ccf8Glenn Kasten    $(call include-path-for, wilhelm) \
121d081e49a10543018e1ae33792bd3d30504719baGlenn Kasten    external/stlport/stlport \
135321b3665e1a538cdcf894dea99d15c10b18ccf8Glenn Kasten    $(call include-path-for, wilhelm-ut)
14a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten
15a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn KastenLOCAL_SRC_FILES:= \
16a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten    BufferQueue_test.cpp
17a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten
18a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn KastenLOCAL_SHARED_LIBRARIES := \
19a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten	libutils \
20a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten	libOpenSLES \
21a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten    libstlport
22a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten
23a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn KastenLOCAL_STATIC_LIBRARIES := \
24fd640f8202a0cf94421b37dddf798864a1b173cdGlenn Kasten    libOpenSLESUT \
25a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten    libgtest
26a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten
27a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kastenifeq ($(TARGET_OS),linux)
28a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten	LOCAL_CFLAGS += -DXP_UNIX
29a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten	#LOCAL_SHARED_LIBRARIES += librt
30a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kastenendif
31a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten
32a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn KastenLOCAL_MODULE:= BufferQueue_test
33a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasten
343b2a7f6713db24c529a117a67aaabbc676678748Yu Shan Emily LauLOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
353b2a7f6713db24c529a117a67aaabbc676678748Yu Shan Emily Lau
36a15af1c45c3ad1d96e3012f1613a79a86c0b2547Glenn Kasteninclude $(BUILD_EXECUTABLE)
37c23abf191a62d274ec1f36eb3b2afeb4d9d0e7a1Wink Saville
383b2a7f6713db24c529a117a67aaabbc676678748Yu Shan Emily Lau# Build the manual test programs.
39c7afcd0a8aa1c1710ba37688f1843f31ff377af3Ying Wanginclude $(call all-makefiles-under,$(LOCAL_PATH))
40