Home | History | Annotate | Download | only in ns
      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 #############################
     10 # Build the non-neon library.
     11 LOCAL_PATH := $(call my-dir)
     12 
     13 include $(CLEAR_VARS)
     14 
     15 include $(LOCAL_PATH)/../../../../android-webrtc.mk
     16 
     17 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
     18 LOCAL_MODULE := libwebrtc_ns
     19 LOCAL_MODULE_TAGS := optional
     20 LOCAL_GENERATED_SOURCES :=
     21 LOCAL_SRC_FILES := \
     22     noise_suppression_x.c \
     23     nsx_core.c
     24 
     25 # Files for floating point.
     26 # noise_suppression.c ns_core.c 
     27 
     28 # Flags passed to both C and C++ files.
     29 LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS)
     30 
     31 LOCAL_C_INCLUDES := \
     32     $(LOCAL_PATH)/interface \
     33     $(LOCAL_PATH)/../utility \
     34     $(LOCAL_PATH)/../../.. \
     35     $(LOCAL_PATH)/../../../common_audio/signal_processing/include \
     36     $(LOCAL_PATH)/../../../system_wrappers/interface
     37 
     38 LOCAL_STATIC_LIBRARIES += libwebrtc_system_wrappers
     39 
     40 LOCAL_SHARED_LIBRARIES := \
     41     libcutils \
     42     libdl \
     43     libstlport
     44 
     45 ifndef NDK_ROOT
     46 include external/stlport/libstlport.mk
     47 endif
     48 include $(BUILD_STATIC_LIBRARY)
     49 
     50 #############################
     51 # Build the neon library.
     52 ifeq ($(WEBRTC_BUILD_NEON_LIBS),true)
     53 
     54 include $(CLEAR_VARS)
     55 
     56 LOCAL_ARM_MODE := arm
     57 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
     58 LOCAL_MODULE := libwebrtc_ns_neon
     59 LOCAL_MODULE_TAGS := optional
     60 
     61 LOCAL_SRC_FILES := nsx_core_neon.c
     62 
     63 # Flags passed to both C and C++ files.
     64 LOCAL_CFLAGS := \
     65     $(MY_WEBRTC_COMMON_DEFS) \
     66     -mfpu=neon \
     67     -mfloat-abi=softfp \
     68     -flax-vector-conversions
     69 
     70 LOCAL_C_INCLUDES := \
     71     $(LOCAL_PATH)/interface \
     72     $(LOCAL_PATH)/../../.. \
     73     $(LOCAL_PATH)/../../../common_audio/signal_processing/include
     74 
     75 ifndef NDK_ROOT
     76 include external/stlport/libstlport.mk
     77 endif
     78 include $(BUILD_STATIC_LIBRARY)
     79 endif # ifeq ($(WEBRTC_BUILD_NEON_LIBS),true)
     80