1 # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 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 MY_WEBRTC_ROOT_PATH := $(call my-dir) 10 11 # voice 12 include $(MY_WEBRTC_ROOT_PATH)/src/common_audio/resampler/Android.mk 13 include $(MY_WEBRTC_ROOT_PATH)/src/common_audio/signal_processing/Android.mk 14 include $(MY_WEBRTC_ROOT_PATH)/src/common_audio/vad/Android.mk 15 include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/isac/fix/source/Android.mk 16 include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/isac/main/source/Android.mk 17 include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/aec/Android.mk 18 include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/aecm/Android.mk 19 include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/agc/Android.mk 20 include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/Android.mk 21 include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/ns/Android.mk 22 include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/utility/Android.mk 23 #include $(MY_WEBRTC_ROOT_PATH)/src/modules/utility/source/Android.mk 24 include $(MY_WEBRTC_ROOT_PATH)/src/system_wrappers/source/Android.mk 25 26 # libwebrtc_audio_coding_gnustl_static dependencies 27 WEBRTC_STL := gnustl_static 28 include $(MY_WEBRTC_ROOT_PATH)/src/system_wrappers/source/Android.mk 29 include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/isac/main/source/Android.mk 30 include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/isac/fix/source/Android.mk 31 include $(MY_WEBRTC_ROOT_PATH)/src/common_audio/signal_processing/Android.mk 32 33 # build .so 34 LOCAL_PATH := $(call my-dir) 35 36 include $(CLEAR_VARS) 37 include $(LOCAL_PATH)/../../external/webrtc/android-webrtc.mk 38 39 LOCAL_ARM_MODE := arm 40 LOCAL_MODULE := libwebrtc_audio_preprocessing 41 LOCAL_MODULE_TAGS := optional 42 43 LOCAL_WHOLE_STATIC_LIBRARIES := \ 44 libwebrtc_spl \ 45 libwebrtc_resampler \ 46 libwebrtc_apm \ 47 libwebrtc_apm_utility \ 48 libwebrtc_vad \ 49 libwebrtc_ns \ 50 libwebrtc_agc \ 51 libwebrtc_aec \ 52 libwebrtc_aecm \ 53 libwebrtc_system_wrappers 54 55 # Add Neon libraries. 56 ifeq ($(WEBRTC_BUILD_NEON_LIBS),true) 57 LOCAL_WHOLE_STATIC_LIBRARIES += \ 58 libwebrtc_aecm_neon \ 59 libwebrtc_ns_neon 60 endif 61 62 LOCAL_STATIC_LIBRARIES := \ 63 libprotobuf-cpp-2.3.0-lite 64 65 LOCAL_SHARED_LIBRARIES := \ 66 libcutils \ 67 libdl \ 68 libstlport 69 70 LOCAL_PRELINK_MODULE := false 71 72 ifndef NDK_ROOT 73 include external/stlport/libstlport.mk 74 endif 75 include $(BUILD_SHARED_LIBRARY) 76 77 78 include $(CLEAR_VARS) 79 include $(LOCAL_PATH)/../../external/webrtc/android-webrtc.mk 80 81 LOCAL_ARM_MODE := arm 82 LOCAL_MODULE := libwebrtc_audio_coding 83 LOCAL_MODULE_TAGS := optional 84 85 LOCAL_WHOLE_STATIC_LIBRARIES := \ 86 libwebrtc_isac \ 87 libwebrtc_isacfix \ 88 libwebrtc_spl \ 89 libwebrtc_system_wrappers 90 ifeq ($(WEBRTC_BUILD_NEON_LIBS),true) 91 LOCAL_WHOLE_STATIC_LIBRARIES += \ 92 libwebrtc_isacfix_neon 93 endif 94 95 LOCAL_STATIC_LIBRARIES := \ 96 libprotobuf-cpp-2.3.0-lite 97 LOCAL_SHARED_LIBRARIES := \ 98 libcutils \ 99 libdl \ 100 libstlport 101 102 LOCAL_PRELINK_MODULE := false 103 104 ifndef NDK_ROOT 105 include external/stlport/libstlport.mk 106 endif 107 include $(BUILD_SHARED_LIBRARY) 108 109 110 include $(CLEAR_VARS) 111 include $(LOCAL_PATH)/../../external/webrtc/android-webrtc.mk 112 113 LOCAL_ARM_MODE := arm 114 LOCAL_MODULE := libwebrtc_audio_coding_gnustl_static 115 LOCAL_MODULE_TAGS := optional 116 117 LOCAL_WHOLE_STATIC_LIBRARIES := \ 118 libwebrtc_isac_gnustl_static \ 119 libwebrtc_isacfix_gnustl_static \ 120 libwebrtc_spl_gnustl_static \ 121 libwebrtc_system_wrappers_gnustl_static 122 ifeq ($(WEBRTC_BUILD_NEON_LIBS),true) 123 LOCAL_WHOLE_STATIC_LIBRARIES += \ 124 libwebrtc_isacfix_neon_gnustl_static 125 endif 126 127 LOCAL_STATIC_LIBRARIES := \ 128 libprotobuf-cpp-2.3.0-lite 129 LOCAL_SHARED_LIBRARIES := \ 130 libcutils \ 131 libdl 132 133 LOCAL_PRELINK_MODULE := false 134 135 LOCAL_NDK_STL_VARIANT := gnustl_static 136 LOCAL_SDK_VERSION := 14 137 138 include $(BUILD_STATIC_LIBRARY) 139