Home | History | Annotate | Download | only in tests
      1 # Build the unit tests for installd
      2 LOCAL_PATH := $(call my-dir)
      3 include $(CLEAR_VARS)
      4 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
      5 
      6 # Build the unit tests.
      7 test_src_files := \
      8     installd_utils_test.cpp
      9 
     10 shared_libraries := \
     11     libbase \
     12     libutils \
     13     libcutils \
     14 
     15 static_libraries := \
     16     libinstalld \
     17     libdiskusage \
     18 
     19 c_includes := \
     20     frameworks/native/cmds/installd
     21 
     22 $(foreach file,$(test_src_files), \
     23     $(eval include $(CLEAR_VARS)) \
     24     $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
     25     $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
     26     $(eval LOCAL_SRC_FILES := $(file)) \
     27     $(eval LOCAL_C_INCLUDES := $(c_includes)) \
     28     $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
     29     $(eval LOCAL_CLANG := true) \
     30     $(eval include $(BUILD_NATIVE_TEST)) \
     31 )
     32