13399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi# Build the unit tests.
23399b7267185646c69b04352211fca4fad9d7547Pannag SanketiLOCAL_PATH:= $(call my-dir)
33399b7267185646c69b04352211fca4fad9d7547Pannag Sanketiinclude $(CLEAR_VARS)
43399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi
53399b7267185646c69b04352211fca4fad9d7547Pannag Sanketiifneq ($(TARGET_SIMULATOR),true)
63399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi
71a2fafbaa36390a06cc9a066fcbe147c8c47ea77Pannag SanketiLOCAL_MODULE := SurfaceMediaSource_test
83399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi
93399b7267185646c69b04352211fca4fad9d7547Pannag SanketiLOCAL_MODULE_TAGS := tests
103399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi
113399b7267185646c69b04352211fca4fad9d7547Pannag SanketiLOCAL_SRC_FILES := \
121a2fafbaa36390a06cc9a066fcbe147c8c47ea77Pannag Sanketi    SurfaceMediaSource_test.cpp \
133399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi	DummyRecorder.cpp \
143399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi
153399b7267185646c69b04352211fca4fad9d7547Pannag SanketiLOCAL_SHARED_LIBRARIES := \
163399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi	libEGL \
173399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi	libGLESv2 \
183399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi	libbinder \
193399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi	libcutils \
203399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi	libgui \
210c5c7d2b119d2350c186ae9902919bcf28c3e277Pannag Sanketi	libmedia \
223399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi	libstagefright \
233399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi	libstagefright_foundation \
241e5b2b3361ddd07259bf4b29820ca4aa5f3a861bJamie Gennis	libstagefright_omx \
250c5c7d2b119d2350c186ae9902919bcf28c3e277Pannag Sanketi	libstlport \
261e5b2b3361ddd07259bf4b29820ca4aa5f3a861bJamie Gennis	libsync \
270c5c7d2b119d2350c186ae9902919bcf28c3e277Pannag Sanketi	libui \
280c5c7d2b119d2350c186ae9902919bcf28c3e277Pannag Sanketi	libutils \
293399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi
303399b7267185646c69b04352211fca4fad9d7547Pannag SanketiLOCAL_STATIC_LIBRARIES := \
313399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi	libgtest \
323399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi	libgtest_main \
333399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi
343399b7267185646c69b04352211fca4fad9d7547Pannag SanketiLOCAL_C_INCLUDES := \
353399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi    bionic \
363399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi    bionic/libstdc++/include \
373399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi    external/gtest/include \
383399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi    external/stlport/stlport \
39559bf2836f5da25b75bfb229fec0d20d540ee426James Dong	frameworks/av/media/libstagefright \
40559bf2836f5da25b75bfb229fec0d20d540ee426James Dong	frameworks/av/media/libstagefright/include \
416c6b4d0d2b98a7ceee8b697daaf611f8df3254fbJames Dong	$(TOP)/frameworks/native/include/media/openmax \
423399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi
433399b7267185646c69b04352211fca4fad9d7547Pannag Sanketiinclude $(BUILD_EXECUTABLE)
443399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi
453399b7267185646c69b04352211fca4fad9d7547Pannag Sanketiendif
463399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi
473399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi# Include subdirectory makefiles
483399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi# ============================================================
493399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi
503399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
513399b7267185646c69b04352211fca4fad9d7547Pannag Sanketi# team really wants is to build the stuff defined by this makefile.
523399b7267185646c69b04352211fca4fad9d7547Pannag Sanketiifeq (,$(ONE_SHOT_MAKEFILE))
533399b7267185646c69b04352211fca4fad9d7547Pannag Sanketiinclude $(call first-makefiles-under,$(LOCAL_PATH))
543399b7267185646c69b04352211fca4fad9d7547Pannag Sanketiendif
55