Pannag Sanketi | 26a1971 | 2011-06-10 18:30:30 -0700 | [diff] [blame] | 1 | # Build the unit tests. |
| 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | ifneq ($(TARGET_SIMULATOR),true) |
| 6 | |
Pannag Sanketi | f48987d | 2011-06-30 15:30:03 -0700 | [diff] [blame] | 7 | LOCAL_MODULE := SurfaceMediaSource_test |
Pannag Sanketi | 26a1971 | 2011-06-10 18:30:30 -0700 | [diff] [blame] | 8 | |
| 9 | LOCAL_MODULE_TAGS := tests |
| 10 | |
| 11 | LOCAL_SRC_FILES := \ |
Pannag Sanketi | f48987d | 2011-06-30 15:30:03 -0700 | [diff] [blame] | 12 | SurfaceMediaSource_test.cpp \ |
Pannag Sanketi | 26a1971 | 2011-06-10 18:30:30 -0700 | [diff] [blame] | 13 | DummyRecorder.cpp \ |
| 14 | |
| 15 | LOCAL_SHARED_LIBRARIES := \ |
| 16 | libEGL \ |
| 17 | libGLESv2 \ |
| 18 | libandroid \ |
| 19 | libbinder \ |
| 20 | libcutils \ |
| 21 | libgui \ |
Pannag Sanketi | 557b709 | 2011-08-18 21:53:02 -0700 | [diff] [blame] | 22 | libmedia \ |
Pannag Sanketi | 26a1971 | 2011-06-10 18:30:30 -0700 | [diff] [blame] | 23 | libstagefright \ |
| 24 | libstagefright_omx \ |
| 25 | libstagefright_foundation \ |
Pannag Sanketi | 557b709 | 2011-08-18 21:53:02 -0700 | [diff] [blame] | 26 | libstlport \ |
| 27 | libui \ |
| 28 | libutils \ |
Pannag Sanketi | 26a1971 | 2011-06-10 18:30:30 -0700 | [diff] [blame] | 29 | |
| 30 | LOCAL_STATIC_LIBRARIES := \ |
| 31 | libgtest \ |
| 32 | libgtest_main \ |
| 33 | |
| 34 | LOCAL_C_INCLUDES := \ |
| 35 | bionic \ |
| 36 | bionic/libstdc++/include \ |
| 37 | external/gtest/include \ |
| 38 | external/stlport/stlport \ |
| 39 | frameworks/base/media/libstagefright \ |
| 40 | frameworks/base/media/libstagefright/include \ |
| 41 | $(TOP)/frameworks/base/include/media/stagefright/openmax \ |
| 42 | |
| 43 | include $(BUILD_EXECUTABLE) |
| 44 | |
| 45 | endif |
| 46 | |
| 47 | # Include subdirectory makefiles |
| 48 | # ============================================================ |
| 49 | |
| 50 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework |
| 51 | # team really wants is to build the stuff defined by this makefile. |
| 52 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 53 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 54 | endif |