1# Build the unit tests.
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
5
6LOCAL_MODULE := SurfaceMediaSource_test
7
8LOCAL_MODULE_TAGS := tests
9
10LOCAL_SRC_FILES := \
11	SurfaceMediaSource_test.cpp \
12	DummyRecorder.cpp \
13
14LOCAL_SHARED_LIBRARIES := \
15	libEGL \
16	libGLESv2 \
17	libbinder \
18	libcutils \
19	libgui \
20	libmedia \
21	libstagefright \
22	libstagefright_foundation \
23	libstagefright_omx \
24	libsync \
25	libui \
26	libutils \
27	liblog
28
29LOCAL_C_INCLUDES := \
30	frameworks/av/media/libstagefright \
31	frameworks/av/media/libstagefright/include \
32	$(TOP)/frameworks/native/include/media/openmax \
33	$(TOP)/frameworks/native/include/media/hardware \
34
35LOCAL_CFLAGS += -Werror -Wall
36LOCAL_CLANG := true
37
38LOCAL_32_BIT_ONLY := true
39
40include $(BUILD_NATIVE_TEST)
41
42
43include $(CLEAR_VARS)
44LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
45
46LOCAL_MODULE := Utils_test
47
48LOCAL_MODULE_TAGS := tests
49
50LOCAL_SRC_FILES := \
51	Utils_test.cpp \
52
53LOCAL_SHARED_LIBRARIES := \
54	libcutils \
55	liblog \
56	libmedia \
57	libstagefright \
58	libstagefright_foundation \
59	libstagefright_omx \
60
61LOCAL_C_INCLUDES := \
62	frameworks/av/include \
63	frameworks/av/media/libstagefright \
64	frameworks/av/media/libstagefright/include \
65	$(TOP)/frameworks/native/include/media/openmax \
66
67LOCAL_CFLAGS += -Werror -Wall
68LOCAL_CLANG := true
69
70include $(BUILD_NATIVE_TEST)
71
72include $(CLEAR_VARS)
73LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
74
75LOCAL_MODULE := MediaCodecListOverrides_test
76
77LOCAL_MODULE_TAGS := tests
78
79LOCAL_SRC_FILES := \
80	MediaCodecListOverrides_test.cpp \
81
82LOCAL_SHARED_LIBRARIES := \
83	libmedia \
84	libstagefright \
85	libstagefright_foundation \
86	libstagefright_omx \
87	libutils \
88	liblog
89
90LOCAL_C_INCLUDES := \
91	frameworks/av/media/libstagefright \
92	frameworks/av/media/libstagefright/include \
93	frameworks/native/include/media/openmax \
94
95LOCAL_32_BIT_ONLY := true
96
97LOCAL_CFLAGS += -Werror -Wall
98LOCAL_CLANG := true
99
100include $(BUILD_NATIVE_TEST)
101
102# Include subdirectory makefiles
103# ============================================================
104
105# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
106# team really wants is to build the stuff defined by this makefile.
107ifeq (,$(ONE_SHOT_MAKEFILE))
108include $(call first-makefiles-under,$(LOCAL_PATH))
109endif
110