Android.mk revision d84d6c7b1acb527c289b5ed7fcebe2ee6a5a01ff
1# Build the unit tests. 2LOCAL_PATH:= $(call my-dir) 3include $(CLEAR_VARS) 4 5# Build the unit tests. 6test_src_files := \ 7 InputReader_test.cpp \ 8 InputDispatcher_test.cpp 9 10shared_libraries := \ 11 libcutils \ 12 libutils \ 13 libhardware \ 14 libhardware_legacy \ 15 libui \ 16 libskia \ 17 libstlport \ 18 libinput 19 20static_libraries := \ 21 libgtest \ 22 libgtest_main 23 24c_includes := \ 25 bionic \ 26 bionic/libstdc++/include \ 27 external/gtest/include \ 28 external/stlport/stlport \ 29 external/skia/include/core 30 31module_tags := eng tests 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 := $(notdir $(file:%.cpp=%))) \ 40 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \ 41 $(eval include $(BUILD_EXECUTABLE)) \ 42) 43 44# Build the manual test programs. 45include $(call all-makefiles-under, $(LOCAL_PATH)) 46