Home | History | Annotate | Download | only in tests
      1 # Build the unit tests for audioflinger
      2 
      3 #
      4 # resampler unit test
      5 #
      6 LOCAL_PATH:= $(call my-dir)
      7 include $(CLEAR_VARS)
      8 
      9 LOCAL_SHARED_LIBRARIES := \
     10 	liblog \
     11 	libutils \
     12 	libcutils \
     13 	libaudioutils \
     14 	libaudioresampler
     15 
     16 LOCAL_C_INCLUDES := \
     17 	$(call include-path-for, audio-utils) \
     18 	frameworks/av/services/audioflinger
     19 
     20 LOCAL_SRC_FILES := \
     21 	resampler_tests.cpp
     22 
     23 LOCAL_MODULE := resampler_tests
     24 LOCAL_MODULE_TAGS := tests
     25 
     26 LOCAL_CFLAGS := -Werror -Wall
     27 
     28 include $(BUILD_NATIVE_TEST)
     29 
     30 #
     31 # audio mixer test tool
     32 #
     33 include $(CLEAR_VARS)
     34 
     35 LOCAL_SRC_FILES:= \
     36 	test-mixer.cpp \
     37 	../AudioMixer.cpp.arm \
     38 	../BufferProviders.cpp
     39 
     40 LOCAL_C_INCLUDES := \
     41 	$(call include-path-for, audio-effects) \
     42 	$(call include-path-for, audio-utils) \
     43 	frameworks/av/services/audioflinger \
     44 	external/sonic
     45 
     46 LOCAL_STATIC_LIBRARIES := \
     47 	libsndfile
     48 
     49 LOCAL_SHARED_LIBRARIES := \
     50 	libeffects \
     51 	libnbaio \
     52 	libaudioresampler \
     53 	libaudioutils \
     54 	libdl \
     55 	libcutils \
     56 	libutils \
     57 	liblog \
     58 	libsonic
     59 
     60 LOCAL_MODULE:= test-mixer
     61 
     62 LOCAL_MODULE_TAGS := optional
     63 
     64 LOCAL_CXX_STL := libc++
     65 
     66 LOCAL_CFLAGS := -Werror -Wall
     67 
     68 include $(BUILD_EXECUTABLE)
     69