Home | History | Annotate | Download | only in audio_processing
      1 # Copyright (c) 2012 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 LOCAL_PATH := $(call my-dir)
     10 
     11 include $(CLEAR_VARS)
     12 
     13 include $(LOCAL_PATH)/../../../android-webrtc.mk
     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 := \
     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
     32 
     33 # Flags passed to both C and C++ files.
     34 LOCAL_CFLAGS := \
     35     $(MY_WEBRTC_COMMON_DEFS) \
     36     '-DWEBRTC_NS_FIXED' \
     37     '-DWEBRTC_ANDROID_PLATFORM_BUILD' \
     38     '-DWEBRTC_AUDIOPROC_DEBUG_DUMP'
     39 #   floating point
     40 #   -DWEBRTC_NS_FLOAT'
     41 
     42 LOCAL_C_INCLUDES := \
     43     $(LOCAL_PATH)/include \
     44     $(LOCAL_PATH)/aec/include \
     45     $(LOCAL_PATH)/aecm/include \
     46     $(LOCAL_PATH)/agc/include \
     47     $(LOCAL_PATH)/ns/include \
     48     $(LOCAL_PATH)/../interface \
     49     $(LOCAL_PATH)/../.. \
     50     $(LOCAL_PATH)/../../common_audio/signal_processing/include \
     51     $(LOCAL_PATH)/../../common_audio/vad/include \
     52     $(LOCAL_PATH)/../../system_wrappers/interface \
     53     external/protobuf/src \
     54     external/webrtc
     55 
     56 LOCAL_SHARED_LIBRARIES := \
     57     libcutils \
     58     libdl \
     59     libstlport
     60 
     61 ifndef NDK_ROOT
     62 include external/stlport/libstlport.mk
     63 endif
     64 include $(BUILD_STATIC_LIBRARY)
     65 
     66 # apm process test app
     67 
     68 include $(CLEAR_VARS)
     69 
     70 LOCAL_MODULE_TAGS := tests
     71 LOCAL_CPP_EXTENSION := .cc
     72 LOCAL_SRC_FILES:= \
     73     $(call all-proto-files-under, .) \
     74     test/process_test.cc
     75 
     76 # Flags passed to both C and C++ files.
     77 LOCAL_CFLAGS := \
     78     $(MY_WEBRTC_COMMON_DEFS) \
     79     '-DWEBRTC_ANDROID_PLATFORM_BUILD' \
     80     '-DWEBRTC_AUDIOPROC_DEBUG_DUMP'
     81 
     82 LOCAL_C_INCLUDES := \
     83     $(LOCAL_PATH)/include \
     84     $(LOCAL_PATH)/../interface \
     85     $(LOCAL_PATH)/../.. \
     86     $(LOCAL_PATH)/../../system_wrappers/interface \
     87     external/gtest/include \
     88     external/webrtc
     89 
     90 LOCAL_STATIC_LIBRARIES := \
     91     libgtest \
     92     libwebrtc_test_support \
     93     libprotobuf-cpp-2.3.0-lite
     94 
     95 LOCAL_SHARED_LIBRARIES := \
     96     libutils \
     97     libstlport \
     98     libwebrtc_audio_preprocessing
     99 
    100 LOCAL_MODULE:= webrtc_audioproc
    101 
    102 ifdef NDK_ROOT
    103 include $(BUILD_EXECUTABLE)
    104 else
    105 include external/stlport/libstlport.mk
    106 include $(BUILD_NATIVE_TEST)
    107 endif
    108 
    109 # apm unit test app
    110 
    111 include $(CLEAR_VARS)
    112 
    113 LOCAL_MODULE_TAGS := tests
    114 LOCAL_CPP_EXTENSION := .cc
    115 LOCAL_SRC_FILES:= \
    116     $(call all-proto-files-under, test) \
    117     test/audio_processing_unittest.cc
    118 
    119 # Flags passed to both C and C++ files.
    120 LOCAL_CFLAGS := \
    121     $(MY_WEBRTC_COMMON_DEFS) \
    122     '-DWEBRTC_AUDIOPROC_FIXED_PROFILE' \
    123     '-DWEBRTC_ANDROID_PLATFORM_BUILD' \
    124     '-DWEBRTC_AUDIOPROC_DEBUG_DUMP'
    125 
    126 LOCAL_C_INCLUDES := \
    127     $(LOCAL_PATH)/include \
    128     $(LOCAL_PATH)/../interface \
    129     $(LOCAL_PATH)/../.. \
    130     $(LOCAL_PATH)/../../../test \
    131     $(LOCAL_PATH)/../../system_wrappers/interface \
    132     $(LOCAL_PATH)/../../common_audio/signal_processing/include \
    133     external/gtest/include \
    134     external/protobuf/src \
    135     external/webrtc
    136 
    137 LOCAL_STATIC_LIBRARIES := \
    138     libgtest \
    139     libwebrtc_test_support \
    140     libprotobuf-cpp-2.3.0-lite
    141 
    142 LOCAL_SHARED_LIBRARIES := \
    143     libstlport \
    144     libwebrtc_audio_preprocessing
    145 
    146 LOCAL_MODULE:= webrtc_audioproc_unittest
    147 
    148 ifdef NDK_ROOT
    149 include $(BUILD_EXECUTABLE)
    150 else
    151 include external/stlport/libstlport.mk
    152 include $(BUILD_NATIVE_TEST)
    153 endif
    154