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