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_C_INCLUDES := \
     54     $(LOCAL_PATH)/../interface \
     55     $(LOCAL_PATH)/../../../../../.. \
     56     $(LOCAL_PATH)/../../../../../../common_audio/signal_processing/include
     57 
     58 LOCAL_SHARED_LIBRARIES := \
     59     libcutils \
     60     libdl
     61 
     62 ifndef NDK_ROOT
     63 ifndef WEBRTC_STL
     64 LOCAL_SHARED_LIBRARIES += libstlport
     65 include external/stlport/libstlport.mk
     66 else
     67 LOCAL_NDK_STL_VARIANT := $(WEBRTC_STL)
     68 LOCAL_SDK_VERSION := 14
     69 LOCAL_MODULE := $(LOCAL_MODULE)_$(WEBRTC_STL)
     70 endif
     71 else
     72 LOCAL_SHARED_LIBRARIES += libstlport
     73 endif
     74 
     75 include $(BUILD_STATIC_LIBRARY)
     76