Home | History | Annotate | Download | only in xa
      1 # Build the unit tests.
      2 
      3 LOCAL_PATH:= $(call my-dir)
      4 
      5 test_executable := NativeMediaTest_XA
      6 list_executable := $(test_executable)_list
      7 
      8 include $(CLEAR_VARS)
      9 
     10 LOCAL_MODULE:= $(test_executable)
     11 LOCAL_MODULE_TAGS := optional
     12 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
     13 LOCAL_MULTILIB := both
     14 LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32
     15 LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64
     16 
     17 LOCAL_C_INCLUDES := \
     18     bionic \
     19     bionic/libstdc++/include \
     20     external/gtest/include \
     21     $(call include-path-for, wilhelm) \
     22     external/stlport/stlport \
     23     $(call include-path-for, wilhelm-ut)
     24 
     25 LOCAL_SRC_FILES := \
     26     src/XAObjectCreationTest.cpp
     27 
     28 LOCAL_SHARED_LIBRARIES := \
     29   libutils \
     30   liblog \
     31   libOpenMAXAL \
     32   libstlport
     33 
     34 LOCAL_STATIC_LIBRARIES := \
     35     libgtest
     36 
     37 LOCAL_CTS_TEST_PACKAGE := android.nativemedia.xa
     38 include $(BUILD_CTS_EXECUTABLE)
     39 
     40 include $(CLEAR_VARS)
     41 
     42 LOCAL_MODULE := $(list_executable)
     43 LOCAL_MODULE_TAGS := optional
     44 
     45 LOCAL_SRC_FILES := \
     46     src/XAObjectCreationTest.cpp
     47 
     48 LOCAL_CFLAGS := \
     49     -DBUILD_ONLY \
     50 
     51 LOCAL_SHARED_LIBRARIES := \
     52     liblog \
     53 
     54 include $(BUILD_HOST_NATIVE_TEST)
     55