Android.mk revision a50ee3ecb377c69758254a0af9542bb64ecc5b71
1# Build the unit tests. 2LOCAL_PATH:= $(call my-dir) 3include $(CLEAR_VARS) 4 5ifneq ($(TARGET_SIMULATOR),true) 6 7# Build the unit tests. 8test_src_files := \ 9 InputChannel_test.cpp \ 10 InputDispatcher_test.cpp \ 11 InputPublisherAndConsumer_test.cpp 12 13shared_libraries := \ 14 libcutils \ 15 libutils \ 16 libEGL \ 17 libbinder \ 18 libpixelflinger \ 19 libhardware \ 20 libhardware_legacy \ 21 libui \ 22 libstlport 23 24static_libraries := \ 25 libgtest \ 26 libgtest_main 27 28c_includes := \ 29 bionic \ 30 bionic/libstdc++/include \ 31 external/gtest/include \ 32 external/stlport/stlport 33 34module_tags := eng tests 35 36$(foreach file,$(test_src_files), \ 37 $(eval include $(CLEAR_VARS)) \ 38 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ 39 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ 40 $(eval LOCAL_C_INCLUDES := $(c_includes)) \ 41 $(eval LOCAL_SRC_FILES := $(file)) \ 42 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ 43 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \ 44 $(eval include $(BUILD_EXECUTABLE)) \ 45) 46 47# Build the manual test programs. 48include $(call all-subdir-makefiles) 49 50endif