Andy Hung | 546734b | 2014-04-01 18:31:42 -0700 | [diff] [blame] | 1 | # Build the unit tests for audioflinger |
| 2 | |
Andy Hung | c0e5ec8 | 2014-06-17 14:33:39 -0700 | [diff] [blame] | 3 | # |
| 4 | # resampler unit test |
| 5 | # |
Andy Hung | 546734b | 2014-04-01 18:31:42 -0700 | [diff] [blame] | 6 | LOCAL_PATH:= $(call my-dir) |
| 7 | include $(CLEAR_VARS) |
| 8 | |
| 9 | LOCAL_SHARED_LIBRARIES := \ |
| 10 | liblog \ |
| 11 | libutils \ |
| 12 | libcutils \ |
Andy Hung | 546734b | 2014-04-01 18:31:42 -0700 | [diff] [blame] | 13 | libaudioutils \ |
| 14 | libaudioresampler |
| 15 | |
Andy Hung | 546734b | 2014-04-01 18:31:42 -0700 | [diff] [blame] | 16 | LOCAL_C_INCLUDES := \ |
Andy Hung | c0e5ec8 | 2014-06-17 14:33:39 -0700 | [diff] [blame] | 17 | $(call include-path-for, audio-utils) \ |
Andy Hung | 546734b | 2014-04-01 18:31:42 -0700 | [diff] [blame] | 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 | |
Dan Albert | effaa78 | 2014-11-10 14:47:41 -0800 | [diff] [blame] | 26 | include $(BUILD_NATIVE_TEST) |
Andy Hung | e4fc423 | 2014-06-17 15:10:51 -0700 | [diff] [blame] | 27 | |
| 28 | # |
| 29 | # audio mixer test tool |
| 30 | # |
| 31 | include $(CLEAR_VARS) |
| 32 | |
Chih-Hung Hsieh | 42e5a1e | 2014-11-14 09:57:36 -0800 | [diff] [blame^] | 33 | # Clang++ aborts on AudioMixer.cpp, |
| 34 | # b/18373866, "do not know how to split this operator." |
| 35 | ifeq ($(filter $(TARGET_ARCH),arm arm64),$(TARGET_ARCH)) |
| 36 | LOCAL_CLANG := false |
| 37 | endif |
| 38 | |
Andy Hung | e4fc423 | 2014-06-17 15:10:51 -0700 | [diff] [blame] | 39 | LOCAL_SRC_FILES:= \ |
| 40 | test-mixer.cpp \ |
| 41 | ../AudioMixer.cpp.arm \ |
| 42 | |
| 43 | LOCAL_C_INCLUDES := \ |
Andy Hung | e4fc423 | 2014-06-17 15:10:51 -0700 | [diff] [blame] | 44 | $(call include-path-for, audio-effects) \ |
| 45 | $(call include-path-for, audio-utils) \ |
| 46 | frameworks/av/services/audioflinger |
| 47 | |
| 48 | LOCAL_STATIC_LIBRARIES := \ |
| 49 | libsndfile |
| 50 | |
| 51 | LOCAL_SHARED_LIBRARIES := \ |
Andy Hung | e4fc423 | 2014-06-17 15:10:51 -0700 | [diff] [blame] | 52 | libeffects \ |
| 53 | libnbaio \ |
| 54 | libcommon_time_client \ |
| 55 | libaudioresampler \ |
| 56 | libaudioutils \ |
| 57 | libdl \ |
| 58 | libcutils \ |
| 59 | libutils \ |
| 60 | liblog |
| 61 | |
| 62 | LOCAL_MODULE:= test-mixer |
| 63 | |
| 64 | LOCAL_MODULE_TAGS := optional |
| 65 | |
Dan Albert | effaa78 | 2014-11-10 14:47:41 -0800 | [diff] [blame] | 66 | LOCAL_CXX_STL := libc++ |
| 67 | |
Andy Hung | e4fc423 | 2014-06-17 15:10:51 -0700 | [diff] [blame] | 68 | include $(BUILD_EXECUTABLE) |