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