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