Home | History | Annotate | Download | only in tests
      1 # Build the unit tests.
      2 LOCAL_PATH := $(call my-dir)
      3 
      4 include $(LOCAL_PATH)/Android.nativebridge-dummy.mk
      5 
      6 include $(CLEAR_VARS)
      7 
      8 # Build the unit tests.
      9 test_src_files := \
     10     CodeCacheCreate_test.cpp \
     11     CodeCacheExists_test.cpp \
     12     CodeCacheStatFail_test.cpp \
     13     CompleteFlow_test.cpp \
     14     InvalidCharsNativeBridge_test.cpp \
     15     NativeBridge2Signal_test.cpp \
     16     NativeBridgeVersion_test.cpp \
     17     NeedsNativeBridge_test.cpp \
     18     PreInitializeNativeBridge_test.cpp \
     19     PreInitializeNativeBridgeFail1_test.cpp \
     20     PreInitializeNativeBridgeFail2_test.cpp \
     21     ReSetupNativeBridge_test.cpp \
     22     UnavailableNativeBridge_test.cpp \
     23     ValidNameNativeBridge_test.cpp
     24 
     25 
     26 shared_libraries := \
     27     liblog \
     28     libnativebridge \
     29     libnativebridge-dummy
     30 
     31 $(foreach file,$(test_src_files), \
     32     $(eval include $(CLEAR_VARS)) \
     33     $(eval LOCAL_CLANG := true) \
     34     $(eval LOCAL_CPPFLAGS := -std=gnu++11) \
     35     $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
     36     $(eval LOCAL_SRC_FILES := $(file)) \
     37     $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
     38     $(eval include $(BUILD_NATIVE_TEST)) \
     39 )
     40 
     41 $(foreach file,$(test_src_files), \
     42     $(eval include $(CLEAR_VARS)) \
     43     $(eval LOCAL_CLANG := true) \
     44     $(eval LOCAL_CPPFLAGS := -std=gnu++11) \
     45     $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
     46     $(eval LOCAL_SRC_FILES := $(file)) \
     47     $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
     48     $(eval include $(BUILD_HOST_NATIVE_TEST)) \
     49 )
     50