Home | History | Annotate | Download | only in source
      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 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_CLASS := STATIC_LIBRARIES
     17 LOCAL_MODULE := libwebrtc_isac
     18 LOCAL_MODULE_TAGS := optional
     19 LOCAL_SRC_FILES := \
     20     arith_routines.c \
     21     arith_routines_hist.c \
     22     arith_routines_logist.c \
     23     bandwidth_estimator.c \
     24     crc.c \
     25     decode.c \
     26     decode_bwe.c \
     27     encode.c \
     28     encode_lpc_swb.c \
     29     entropy_coding.c \
     30     fft.c \
     31     filter_functions.c \
     32     filterbank_tables.c \
     33     intialize.c \
     34     isac.c \
     35     filterbanks.c \
     36     pitch_lag_tables.c \
     37     lattice.c \
     38     lpc_gain_swb_tables.c \
     39     lpc_analysis.c \
     40     lpc_shape_swb12_tables.c \
     41     lpc_shape_swb16_tables.c \
     42     lpc_tables.c \
     43     pitch_estimator.c \
     44     pitch_filter.c \
     45     pitch_gain_tables.c \
     46     spectrum_ar_model_tables.c \
     47     transform.c
     48 
     49 # Flags passed to both C and C++ files.
     50 LOCAL_CFLAGS := \
     51     $(MY_WEBRTC_COMMON_DEFS)
     52 
     53 LOCAL_CFLAGS_arm := $(MY_WEBRTC_COMMON_DEFS_arm)
     54 LOCAL_CFLAGS_x86 := $(MY_WEBRTC_COMMON_DEFS_x86)
     55 LOCAL_CFLAGS_mips := $(MY_WEBRTC_COMMON_DEFS_mips)
     56 LOCAL_CFLAGS_arm64 := $(MY_WEBRTC_COMMON_DEFS_arm64)
     57 LOCAL_CFLAGS_x86_64 := $(MY_WEBRTC_COMMON_DEFS_x86_64)
     58 LOCAL_CFLAGS_mips64 := $(MY_WEBRTC_COMMON_DEFS_mips64)
     59 
     60 LOCAL_C_INCLUDES := \
     61     $(LOCAL_PATH)/../interface \
     62     $(LOCAL_PATH)/../../../../../.. \
     63     $(LOCAL_PATH)/../../../../../../common_audio/signal_processing/include
     64 
     65 ifndef WEBRTC_STL
     66 LOCAL_SHARED_LIBRARIES += libstlport
     67 include external/stlport/libstlport.mk
     68 else
     69 LOCAL_NDK_STL_VARIANT := $(WEBRTC_STL)
     70 LOCAL_SDK_VERSION := 14
     71 LOCAL_MODULE := $(LOCAL_MODULE)_$(WEBRTC_STL)
     72 endif
     73 
     74 include $(BUILD_STATIC_LIBRARY)
     75