2012-01-25 19:21:13 +00:00
|
|
|
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-08-05 21:01:02 +00:00
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2011-12-03 18:34:50 +00:00
|
|
|
#############################
|
|
|
|
|
# Build the non-neon library.
|
2011-07-07 08:21:25 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
2011-10-19 01:40:33 +00:00
|
|
|
include $(LOCAL_PATH)/../../../../android-webrtc.mk
|
2011-08-05 21:01:02 +00:00
|
|
|
|
2011-07-07 08:21:25 +00:00
|
|
|
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
|
|
|
|
|
LOCAL_MODULE := libwebrtc_ns
|
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
|
LOCAL_GENERATED_SOURCES :=
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
|
noise_suppression_x.c \
|
2011-08-09 04:30:06 +00:00
|
|
|
nsx_core.c
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2011-12-03 18:34:50 +00:00
|
|
|
# Files for floating point.
|
2011-07-07 08:21:25 +00:00
|
|
|
# noise_suppression.c ns_core.c
|
|
|
|
|
|
|
|
|
|
# Flags passed to both C and C++ files.
|
2011-12-03 18:34:50 +00:00
|
|
|
LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS)
|
2011-08-09 04:30:06 +00:00
|
|
|
|
2011-07-25 22:49:00 +00:00
|
|
|
LOCAL_C_INCLUDES := \
|
2012-01-25 19:21:13 +00:00
|
|
|
$(LOCAL_PATH)/include \
|
2011-10-19 01:40:33 +00:00
|
|
|
$(LOCAL_PATH)/../utility \
|
|
|
|
|
$(LOCAL_PATH)/../../.. \
|
2011-12-03 18:34:50 +00:00
|
|
|
$(LOCAL_PATH)/../../../common_audio/signal_processing/include \
|
|
|
|
|
$(LOCAL_PATH)/../../../system_wrappers/interface
|
|
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES += libwebrtc_system_wrappers
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2011-07-25 22:49:00 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
|
libcutils \
|
2011-07-07 08:21:25 +00:00
|
|
|
libdl \
|
|
|
|
|
libstlport
|
|
|
|
|
|
2011-07-25 22:49:00 +00:00
|
|
|
ifndef NDK_ROOT
|
2011-07-07 08:21:25 +00:00
|
|
|
include external/stlport/libstlport.mk
|
2011-07-25 22:49:00 +00:00
|
|
|
endif
|
2011-07-07 08:21:25 +00:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2011-12-03 18:34:50 +00:00
|
|
|
|
|
|
|
|
#############################
|
|
|
|
|
# Build the neon library.
|
2012-01-04 17:47:57 +00:00
|
|
|
ifeq ($(WEBRTC_BUILD_NEON_LIBS),true)
|
2011-12-03 18:34:50 +00:00
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
2012-01-04 17:47:57 +00:00
|
|
|
LOCAL_ARM_MODE := arm
|
2011-12-03 18:34:50 +00:00
|
|
|
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
|
|
|
|
|
LOCAL_MODULE := libwebrtc_ns_neon
|
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := nsx_core_neon.c
|
|
|
|
|
|
|
|
|
|
# Flags passed to both C and C++ files.
|
|
|
|
|
LOCAL_CFLAGS := \
|
|
|
|
|
$(MY_WEBRTC_COMMON_DEFS) \
|
|
|
|
|
-mfpu=neon \
|
2012-01-04 17:47:57 +00:00
|
|
|
-mfloat-abi=softfp \
|
2011-12-03 18:34:50 +00:00
|
|
|
-flax-vector-conversions
|
|
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := \
|
2012-01-25 19:21:13 +00:00
|
|
|
$(LOCAL_PATH)/include \
|
2011-12-03 18:34:50 +00:00
|
|
|
$(LOCAL_PATH)/../../.. \
|
|
|
|
|
$(LOCAL_PATH)/../../../common_audio/signal_processing/include
|
|
|
|
|
|
|
|
|
|
ifndef NDK_ROOT
|
|
|
|
|
include external/stlport/libstlport.mk
|
|
|
|
|
endif
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2012-01-04 17:47:57 +00:00
|
|
|
endif # ifeq ($(WEBRTC_BUILD_NEON_LIBS),true)
|