andrew@webrtc.org | b9d7d93 | 2012-01-25 19:21:13 +0000 | [diff] [blame^] | 1 | # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
leozwang@google.com | 81520b7 | 2011-08-05 22:20:03 +0000 | [diff] [blame] | 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
| 9 | LOCAL_PATH := $(call my-dir) |
| 10 | |
| 11 | include $(CLEAR_VARS) |
| 12 | |
andrew@webrtc.org | 4d5d5c1 | 2011-10-19 01:40:33 +0000 | [diff] [blame] | 13 | include $(LOCAL_PATH)/../../../android-webrtc.mk |
leozwang@google.com | 81520b7 | 2011-08-05 22:20:03 +0000 | [diff] [blame] | 14 | |
| 15 | LOCAL_ARM_MODE := arm |
| 16 | LOCAL_MODULE := libwebrtc_apm |
| 17 | LOCAL_MODULE_TAGS := optional |
| 18 | LOCAL_CPP_EXTENSION := .cc |
| 19 | LOCAL_SRC_FILES := \ |
andrew@webrtc.org | 4d5d5c1 | 2011-10-19 01:40:33 +0000 | [diff] [blame] | 20 | $(call all-proto-files-under, .) \ |
| 21 | audio_buffer.cc \ |
| 22 | audio_processing_impl.cc \ |
| 23 | echo_cancellation_impl.cc \ |
| 24 | echo_control_mobile_impl.cc \ |
| 25 | gain_control_impl.cc \ |
| 26 | high_pass_filter_impl.cc \ |
| 27 | level_estimator_impl.cc \ |
| 28 | noise_suppression_impl.cc \ |
| 29 | splitting_filter.cc \ |
| 30 | processing_component.cc \ |
| 31 | voice_detection_impl.cc |
leozwang@google.com | 81520b7 | 2011-08-05 22:20:03 +0000 | [diff] [blame] | 32 | |
| 33 | # Flags passed to both C and C++ files. |
| 34 | LOCAL_CFLAGS := \ |
| 35 | $(MY_WEBRTC_COMMON_DEFS) \ |
| 36 | '-DWEBRTC_NS_FIXED' |
| 37 | # floating point |
| 38 | # -DWEBRTC_NS_FLOAT' |
| 39 | |
| 40 | LOCAL_C_INCLUDES := \ |
andrew@webrtc.org | b9d7d93 | 2012-01-25 19:21:13 +0000 | [diff] [blame^] | 41 | $(LOCAL_PATH)/include \ |
| 42 | $(LOCAL_PATH)/aec/include \ |
| 43 | $(LOCAL_PATH)/aecm/include \ |
| 44 | $(LOCAL_PATH)/agc/include \ |
| 45 | $(LOCAL_PATH)/ns/include \ |
andrew@webrtc.org | 4d5d5c1 | 2011-10-19 01:40:33 +0000 | [diff] [blame] | 46 | $(LOCAL_PATH)/../interface \ |
| 47 | $(LOCAL_PATH)/../.. \ |
kjellander@webrtc.org | 0403ef4 | 2011-11-17 08:35:47 +0000 | [diff] [blame] | 48 | $(LOCAL_PATH)/../../common_audio/signal_processing/include \ |
| 49 | $(LOCAL_PATH)/../../common_audio/vad/include \ |
andrew@webrtc.org | 4d5d5c1 | 2011-10-19 01:40:33 +0000 | [diff] [blame] | 50 | $(LOCAL_PATH)/../../system_wrappers/interface \ |
leozwang@google.com | 81520b7 | 2011-08-05 22:20:03 +0000 | [diff] [blame] | 51 | external/protobuf/src |
| 52 | |
| 53 | LOCAL_SHARED_LIBRARIES := \ |
| 54 | libcutils \ |
| 55 | libdl \ |
| 56 | libstlport |
| 57 | |
| 58 | ifndef NDK_ROOT |
| 59 | include external/stlport/libstlport.mk |
| 60 | endif |
| 61 | include $(BUILD_STATIC_LIBRARY) |
| 62 | |
| 63 | # apm process test app |
| 64 | |
| 65 | include $(CLEAR_VARS) |
| 66 | |
| 67 | LOCAL_MODULE_TAGS := tests |
| 68 | LOCAL_CPP_EXTENSION := .cc |
| 69 | LOCAL_SRC_FILES:= \ |
andrew@webrtc.org | 4d5d5c1 | 2011-10-19 01:40:33 +0000 | [diff] [blame] | 70 | $(call all-proto-files-under, .) \ |
| 71 | test/process_test.cc |
leozwang@google.com | 81520b7 | 2011-08-05 22:20:03 +0000 | [diff] [blame] | 72 | |
| 73 | # Flags passed to both C and C++ files. |
| 74 | LOCAL_CFLAGS := \ |
| 75 | $(MY_WEBRTC_COMMON_DEFS) |
| 76 | |
| 77 | LOCAL_C_INCLUDES := \ |
andrew@webrtc.org | b9d7d93 | 2012-01-25 19:21:13 +0000 | [diff] [blame^] | 78 | $(LOCAL_PATH)/include \ |
andrew@webrtc.org | 4d5d5c1 | 2011-10-19 01:40:33 +0000 | [diff] [blame] | 79 | $(LOCAL_PATH)/../interface \ |
| 80 | $(LOCAL_PATH)/../.. \ |
| 81 | $(LOCAL_PATH)/../../system_wrappers/interface \ |
leozwang@google.com | 81520b7 | 2011-08-05 22:20:03 +0000 | [diff] [blame] | 82 | external/gtest/include |
| 83 | |
| 84 | LOCAL_STATIC_LIBRARIES := \ |
| 85 | libgtest \ |
| 86 | libprotobuf-cpp-2.3.0-lite |
| 87 | |
| 88 | LOCAL_SHARED_LIBRARIES := \ |
| 89 | libutils \ |
| 90 | libstlport \ |
| 91 | libwebrtc_audio_preprocessing |
| 92 | |
| 93 | LOCAL_MODULE:= webrtc_apm_process_test |
| 94 | |
| 95 | ifdef NDK_ROOT |
| 96 | include $(BUILD_EXECUTABLE) |
| 97 | else |
| 98 | include external/stlport/libstlport.mk |
| 99 | include $(BUILD_NATIVE_TEST) |
| 100 | endif |
| 101 | |
| 102 | # apm unit test app |
| 103 | |
| 104 | include $(CLEAR_VARS) |
| 105 | |
| 106 | LOCAL_MODULE_TAGS := tests |
| 107 | LOCAL_CPP_EXTENSION := .cc |
| 108 | LOCAL_SRC_FILES:= \ |
andrew@webrtc.org | 4d5d5c1 | 2011-10-19 01:40:33 +0000 | [diff] [blame] | 109 | $(call all-proto-files-under, test) \ |
kma@webrtc.org | 913644b | 2011-10-24 21:36:33 +0000 | [diff] [blame] | 110 | test/unit_test.cc \ |
| 111 | ../../../test/testsupport/fileutils.cc |
leozwang@google.com | 81520b7 | 2011-08-05 22:20:03 +0000 | [diff] [blame] | 112 | |
| 113 | # Flags passed to both C and C++ files. |
| 114 | LOCAL_CFLAGS := \ |
| 115 | $(MY_WEBRTC_COMMON_DEFS) \ |
| 116 | '-DWEBRTC_APM_UNIT_TEST_FIXED_PROFILE' |
| 117 | |
| 118 | LOCAL_C_INCLUDES := \ |
andrew@webrtc.org | b9d7d93 | 2012-01-25 19:21:13 +0000 | [diff] [blame^] | 119 | $(LOCAL_PATH)/include \ |
andrew@webrtc.org | 4d5d5c1 | 2011-10-19 01:40:33 +0000 | [diff] [blame] | 120 | $(LOCAL_PATH)/../interface \ |
| 121 | $(LOCAL_PATH)/../.. \ |
kma@webrtc.org | 913644b | 2011-10-24 21:36:33 +0000 | [diff] [blame] | 122 | $(LOCAL_PATH)/../../../test \ |
andrew@webrtc.org | 4d5d5c1 | 2011-10-19 01:40:33 +0000 | [diff] [blame] | 123 | $(LOCAL_PATH)/../../system_wrappers/interface \ |
kjellander@webrtc.org | 0403ef4 | 2011-11-17 08:35:47 +0000 | [diff] [blame] | 124 | $(LOCAL_PATH)/../../common_audio/signal_processing/include \ |
leozwang@google.com | 81520b7 | 2011-08-05 22:20:03 +0000 | [diff] [blame] | 125 | external/gtest/include \ |
| 126 | external/protobuf/src |
| 127 | |
| 128 | LOCAL_STATIC_LIBRARIES := \ |
| 129 | libgtest \ |
| 130 | libprotobuf-cpp-2.3.0-lite |
| 131 | |
| 132 | LOCAL_SHARED_LIBRARIES := \ |
| 133 | libstlport \ |
| 134 | libwebrtc_audio_preprocessing |
| 135 | |
| 136 | LOCAL_MODULE:= webrtc_apm_unit_test |
| 137 | |
| 138 | ifdef NDK_ROOT |
| 139 | include $(BUILD_EXECUTABLE) |
| 140 | else |
| 141 | include external/stlport/libstlport.mk |
| 142 | include $(BUILD_NATIVE_TEST) |
| 143 | endif |