1 # Build the unit tests. 2 LOCAL_PATH:= $(call my-dir) 3 include $(CLEAR_VARS) 4 5 ifneq ($(TARGET_SIMULATOR),true) 6 7 LOCAL_MODULE := SurfaceMediaSource_test 8 9 LOCAL_MODULE_TAGS := tests 10 11 LOCAL_SRC_FILES := \ 12 SurfaceMediaSource_test.cpp \ 13 DummyRecorder.cpp \ 14 15 LOCAL_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 31 LOCAL_STATIC_LIBRARIES := \ 32 libgtest \ 33 libgtest_main \ 34 35 LOCAL_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 44 include $(BUILD_EXECUTABLE) 45 46 endif 47 48 # Include subdirectory makefiles 49 # ============================================================ 50 51 # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework 52 # team really wants is to build the stuff defined by this makefile. 53 ifeq (,$(ONE_SHOT_MAKEFILE)) 54 include $(call first-makefiles-under,$(LOCAL_PATH)) 55 endif 56