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     Region_test.cpp \
      8     vec_test.cpp \
      9     mat_test.cpp
     10 
     11 shared_libraries := \
     12     libutils \
     13     libui
     14 
     15 static_libraries := \
     16     libgtest \
     17     libgtest_main
     18 
     19 $(foreach file,$(test_src_files), \
     20     $(eval include $(CLEAR_VARS)) \
     21     $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
     22     $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
     23     $(eval LOCAL_SRC_FILES := $(file)) \
     24     $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
     25     $(eval include $(BUILD_NATIVE_TEST)) \
     26 )
     27 
     28 # Build the unit tests.
     29 LOCAL_PATH:= $(call my-dir)
     30 include $(CLEAR_VARS)
     31 
     32 # Build the manual test programs.
     33 include $(call all-makefiles-under, $(LOCAL_PATH))
     34