Android.mk revision e09d6784d14b138484179aae680fbfe1b08eeba0
1# Build the unit tests. 2LOCAL_PATH:= $(call my-dir) 3include $(CLEAR_VARS) 4 5test_src_files := \ 6 mimeUri_test.cpp \ 7 8shared_libraries := \ 9 libstlport \ 10 libutils \ 11 libOpenSLES 12 13static_libraries := \ 14 libgtest \ 15 libgtest_main 16 17c_includes := \ 18 bionic \ 19 bionic/libstdc++/include \ 20 external/gtest/include \ 21 external/stlport/stlport \ 22 $(JNI_H_INCLUDE) \ 23 $(TOP)/system/media/opensles/include 24 25module_tags := tests 26 27# We have to use the android version of libdl when we are not on the simulator 28ifneq ($(TARGET_SIMULATOR),true) 29LOCAL_SHARED_LIBRARIES += libdl libstlport 30include external/stlport/libstlport.mk 31endif 32 33$(foreach file,$(test_src_files), \ 34 $(eval include $(CLEAR_VARS)) \ 35 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ 36 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ 37 $(eval LOCAL_C_INCLUDES := $(c_includes)) \ 38 $(eval LOCAL_SRC_FILES := $(file)) \ 39 $(eval LOCAL_MODULE := libopenslestests) \ 40 $(eval LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest) \ 41 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \ 42 $(eval include $(BUILD_EXECUTABLE)) \ 43) 44 45# Build the manual test programs. 46include $(call all-subdir-makefiles)