Home | History | Annotate | Download | only in tests
      1 # Build the unit tests.
      2 LOCAL_PATH := $(call my-dir)
      3 include $(CLEAR_VARS)
      4 
      5 # Build the unit tests.
      6 test_src_files := \
      7     asn1_decoder_test.cpp
      8 
      9 shared_libraries := \
     10     liblog \
     11     libcutils
     12 
     13 static_libraries := \
     14     libgtest \
     15     libgtest_main \
     16     libverifier
     17 
     18 $(foreach file,$(test_src_files), \
     19     $(eval include $(CLEAR_VARS)) \
     20     $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
     21     $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
     22     $(eval LOCAL_SRC_FILES := $(file)) \
     23     $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
     24     $(eval LOCAL_C_INCLUDES := $(LOCAL_PATH)/..) \
     25     $(eval include $(BUILD_NATIVE_TEST)) \
     26 )