diff options
author | Dan Willemsen <dwillemsen@google.com> | 2017-10-24 19:04:50 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2017-10-25 15:20:25 -0700 |
commit | 7358fda399c8a3dccaf0120bb9cee89807c640bf (patch) | |
tree | d7e9c17332b4c741cd3115663626f3fd2e9c9cfb /webrtc/modules/audio_coding | |
parent | aa415f46df13a1b8f7059e9ad938442a37a6a21f (diff) | |
download | webrtc-7358fda399c8a3dccaf0120bb9cee89807c640bf.tar.gz |
Convert to Android.bp
See build/soong/README.md for more information.
Test: mmma external/webrtc
Change-Id: I821fe8af5da246c7d93c2caee2b7e262a2c0ef53
Diffstat (limited to 'webrtc/modules/audio_coding')
8 files changed, 152 insertions, 199 deletions
diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/Android.bp b/webrtc/modules/audio_coding/codecs/isac/fix/Android.bp new file mode 100644 index 0000000000..374d1b13cf --- /dev/null +++ b/webrtc/modules/audio_coding/codecs/isac/fix/Android.bp @@ -0,0 +1,6 @@ +subdirs = ["*"] + +cc_library_headers { + name: "libwebrtc_isacfix_headers", + export_include_dirs: ["include"], +} diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/source/Android.bp b/webrtc/modules/audio_coding/codecs/isac/fix/source/Android.bp new file mode 100644 index 0000000000..78a56619b9 --- /dev/null +++ b/webrtc/modules/audio_coding/codecs/isac/fix/source/Android.bp @@ -0,0 +1,66 @@ +// Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. +// +// 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. + +cc_library_static { + name: "libwebrtc_isacfix", + defaults: ["webrtc_flags"], + + arch: { + arm: { + // Using .S (instead of .s) extention is to include a C header file in assembly. + srcs: [ + "lattice_armv7.S", + "pitch_filter_armv6.S", + ], + exclude_srcs: [ + "lattice_c.c", + "pitch_filter_c.c", + ], + }, + mips: { + // TODO: Use pitch_estimator_mips.c for mips, pitch_estimator_c.c + }, + }, + + srcs: [ + "arith_routines.c", + "arith_routines_hist.c", + "arith_routines_logist.c", + "bandwidth_estimator.c", + "decode.c", + "decode_bwe.c", + "decode_plc.c", + "encode.c", + "entropy_coding.c", + "fft.c", + "filterbank_tables.c", + "filterbanks.c", + "filters.c", + "initialize.c", + "isacfix.c", + "lattice.c", + "lpc_masking_model.c", + "lpc_tables.c", + "pitch_estimator.c", + "pitch_estimator_c.c", + "pitch_filter.c", + "pitch_gain_tables.c", + "pitch_lag_tables.c", + "spectrum_ar_model_tables.c", + "transform_tables.c", + "transform.c", + + // These are replaced by assembly versions in arm builds + "lattice_c.c", + "pitch_filter_c.c", + ], + + header_libs: ["libwebrtc_isacfix_headers"], + export_header_lib_headers: ["libwebrtc_isacfix_headers"], + static_libs: ["libwebrtc_spl"], +} diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/source/Android.mk b/webrtc/modules/audio_coding/codecs/isac/fix/source/Android.mk deleted file mode 100644 index cac1b2a0cf..0000000000 --- a/webrtc/modules/audio_coding/codecs/isac/fix/source/Android.mk +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. -# -# 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -include $(LOCAL_PATH)/../../../../../../../android-webrtc.mk - -LOCAL_ARM_MODE := arm -LOCAL_MODULE_CLASS := STATIC_LIBRARIES -LOCAL_MODULE := libwebrtc_isacfix -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_TAGS := optional -LOCAL_SRC_FILES := \ - arith_routines.c \ - arith_routines_hist.c \ - arith_routines_logist.c \ - bandwidth_estimator.c \ - decode.c \ - decode_bwe.c \ - decode_plc.c \ - encode.c \ - entropy_coding.c \ - fft.c \ - filterbank_tables.c \ - filterbanks.c \ - filters.c \ - initialize.c \ - isacfix.c \ - lattice.c \ - lpc_masking_model.c \ - lpc_tables.c \ - pitch_estimator.c \ - pitch_estimator_c.c \ - pitch_filter.c \ - pitch_gain_tables.c \ - pitch_lag_tables.c \ - spectrum_ar_model_tables.c \ - transform_tables.c \ - transform.c - -# TODO: Use pitch_estimator_mips.c for mips, pitch_estimator_c.c - -# Using .S (instead of .s) extention is to include a C header file in assembly. -my_as_src := \ - lattice_armv7.S \ - pitch_filter_armv6.S -my_c_src := \ - lattice_c.c \ - pitch_filter_c.c -LOCAL_SRC_FILES_arm += $(my_as_src) -LOCAL_SRC_FILES_x86 += $(my_c_src) -LOCAL_SRC_FILES_mips += $(my_c_src) -LOCAL_SRC_FILES_arm64 += $(my_c_src) -LOCAL_SRC_FILES_x86_64 += $(my_c_src) -LOCAL_SRC_FILES_mips64 += $(my_c_src) - -# Flags passed to both C and C++ files. -LOCAL_CFLAGS := \ - $(MY_WEBRTC_COMMON_DEFS) - -LOCAL_CFLAGS_arm := $(MY_WEBRTC_COMMON_DEFS_arm) -LOCAL_CFLAGS_x86 := $(MY_WEBRTC_COMMON_DEFS_x86) -LOCAL_CFLAGS_mips := $(MY_WEBRTC_COMMON_DEFS_mips) -LOCAL_CFLAGS_arm64 := $(MY_WEBRTC_COMMON_DEFS_arm64) -LOCAL_CFLAGS_x86_64 := $(MY_WEBRTC_COMMON_DEFS_x86_64) -LOCAL_CFLAGS_mips64 := $(MY_WEBRTC_COMMON_DEFS_mips64) - -LOCAL_CFLAGS += $(MY_WEBRTC_COMMON_CFLAGS_WARNINGS) -LOCAL_TIDY_CHECKS := $(MY_WEBRTC_COMMON_TIDY_CHECKS) - -LOCAL_C_INCLUDES := \ - $(LOCAL_PATH)/../interface \ - $(LOCAL_PATH)/../../../../../../.. \ - $(LOCAL_PATH)/../../../../../../common_audio/signal_processing/include - -include $(BUILD_STATIC_LIBRARY) diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/test/Android.bp b/webrtc/modules/audio_coding/codecs/isac/fix/test/Android.bp new file mode 100644 index 0000000000..577744cbe4 --- /dev/null +++ b/webrtc/modules/audio_coding/codecs/isac/fix/test/Android.bp @@ -0,0 +1,28 @@ +// Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. +// +// 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. + +cc_test { + name: "webrtc_isac_test", + defaults: ["webrtc_flags"], + + srcs: ["kenny.cc"], + + static_libs: [ + "libwebrtc_isacfix", + "libwebrtc_spl", + "libwebrtc_system_wrappers", + ], + + shared_libs: ["libutils"], + + arch: { + arm: { + instruction_set: "thumb", + }, + }, +} diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/test/Android.mk b/webrtc/modules/audio_coding/codecs/isac/fix/test/Android.mk deleted file mode 100644 index 161ade83cf..0000000000 --- a/webrtc/modules/audio_coding/codecs/isac/fix/test/Android.mk +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. -# -# 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. - -########################### -# isac test app - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := tests -LOCAL_CPP_EXTENSION := .cc -LOCAL_SRC_FILES:= kenny.cc - -# Flags passed to both C and C++ files. -LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS) - -LOCAL_CFLAGS_arm := $(MY_WEBRTC_COMMON_DEFS_arm) -LOCAL_CFLAGS_x86 := $(MY_WEBRTC_COMMON_DEFS_x86) -LOCAL_CFLAGS_mips := $(MY_WEBRTC_COMMON_DEFS_mips) -LOCAL_CFLAGS_arm64 := $(MY_WEBRTC_COMMON_DEFS_arm64) -LOCAL_CFLAGS_x86_64 := $(MY_WEBRTC_COMMON_DEFS_x86_64) -LOCAL_CFLAGS_mips64 := $(MY_WEBRTC_COMMON_DEFS_mips64) - -LOCAL_CFLAGS += $(MY_WEBRTC_COMMON_CFLAGS_WARNINGS) -LOCAL_TIDY_CHECKS := $(MY_WEBRTC_COMMON_TIDY_CHECKS) - -LOCAL_C_INCLUDES := \ - $(LOCAL_PATH)/../include \ - $(LOCAL_PATH)/../../../../../../.. - -LOCAL_STATIC_LIBRARIES := \ - libwebrtc_isacfix \ - libwebrtc_spl \ - libwebrtc_system_wrappers - -LOCAL_SHARED_LIBRARIES := \ - libutils - -LOCAL_MODULE := webrtc_isac_test - -include $(BUILD_NATIVE_TEST) diff --git a/webrtc/modules/audio_coding/codecs/isac/main/Android.bp b/webrtc/modules/audio_coding/codecs/isac/main/Android.bp new file mode 100644 index 0000000000..19801687a5 --- /dev/null +++ b/webrtc/modules/audio_coding/codecs/isac/main/Android.bp @@ -0,0 +1,6 @@ +subdirs = ["source"] + +cc_library_headers { + name: "libwebrtc_isac_interface", + export_include_dirs: ["include"], +} diff --git a/webrtc/modules/audio_coding/codecs/isac/main/source/Android.bp b/webrtc/modules/audio_coding/codecs/isac/main/source/Android.bp new file mode 100644 index 0000000000..dab60c4034 --- /dev/null +++ b/webrtc/modules/audio_coding/codecs/isac/main/source/Android.bp @@ -0,0 +1,46 @@ +// Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. +// +// 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. + +cc_library_static { + name: "libwebrtc_isac", + defaults: ["webrtc_flags"], + + srcs: [ + "arith_routines.c", + "arith_routines_hist.c", + "arith_routines_logist.c", + "bandwidth_estimator.c", + "crc.c", + "decode.c", + "decode_bwe.c", + "encode.c", + "encode_lpc_swb.c", + "entropy_coding.c", + "fft.c", + "filter_functions.c", + "filterbank_tables.c", + "filterbanks.c", + "intialize.c", + "isac.c", + "pitch_lag_tables.c", + "lattice.c", + "lpc_gain_swb_tables.c", + "lpc_analysis.c", + "lpc_shape_swb12_tables.c", + "lpc_shape_swb16_tables.c", + "lpc_tables.c", + "pitch_estimator.c", + "pitch_filter.c", + "pitch_gain_tables.c", + "spectrum_ar_model_tables.c", + "transform.c", + ], + + header_libs: ["libwebrtc_isac_interface"], + static_libs: ["libwebrtc_spl"], +} diff --git a/webrtc/modules/audio_coding/codecs/isac/main/source/Android.mk b/webrtc/modules/audio_coding/codecs/isac/main/source/Android.mk deleted file mode 100644 index b5f5415b80..0000000000 --- a/webrtc/modules/audio_coding/codecs/isac/main/source/Android.mk +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. -# -# 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -include $(LOCAL_PATH)/../../../../../../../android-webrtc.mk - -LOCAL_ARM_MODE := arm -LOCAL_MODULE_CLASS := STATIC_LIBRARIES -LOCAL_MODULE := libwebrtc_isac -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_TAGS := optional -LOCAL_SRC_FILES := \ - arith_routines.c \ - arith_routines_hist.c \ - arith_routines_logist.c \ - bandwidth_estimator.c \ - crc.c \ - decode.c \ - decode_bwe.c \ - encode.c \ - encode_lpc_swb.c \ - entropy_coding.c \ - fft.c \ - filter_functions.c \ - filterbank_tables.c \ - filterbanks.c \ - intialize.c \ - isac.c \ - pitch_lag_tables.c \ - lattice.c \ - lpc_gain_swb_tables.c \ - lpc_analysis.c \ - lpc_shape_swb12_tables.c \ - lpc_shape_swb16_tables.c \ - lpc_tables.c \ - pitch_estimator.c \ - pitch_filter.c \ - pitch_gain_tables.c \ - spectrum_ar_model_tables.c \ - transform.c - -# Flags passed to both C and C++ files. -LOCAL_CFLAGS := \ - $(MY_WEBRTC_COMMON_DEFS) - -LOCAL_CFLAGS_arm := $(MY_WEBRTC_COMMON_DEFS_arm) -LOCAL_CFLAGS_x86 := $(MY_WEBRTC_COMMON_DEFS_x86) -LOCAL_CFLAGS_mips := $(MY_WEBRTC_COMMON_DEFS_mips) -LOCAL_CFLAGS_arm64 := $(MY_WEBRTC_COMMON_DEFS_arm64) -LOCAL_CFLAGS_x86_64 := $(MY_WEBRTC_COMMON_DEFS_x86_64) -LOCAL_CFLAGS_mips64 := $(MY_WEBRTC_COMMON_DEFS_mips64) - -LOCAL_CFLAGS += $(MY_WEBRTC_COMMON_CFLAGS_WARNINGS) -LOCAL_TIDY_CHECKS := $(MY_WEBRTC_COMMON_TIDY_CHECKS) - -LOCAL_C_INCLUDES := \ - $(LOCAL_PATH)/../include \ - $(LOCAL_PATH)/../../../../../../.. \ - $(LOCAL_PATH)/../../../../../../common_audio/signal_processing/include - -include $(BUILD_STATIC_LIBRARY) |