blob: ba24a2021721ed18d5196741f48412b75636a8d1 [file] [log] [blame]
#
# Copyright 2023 Google, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
config("lc3_includes_config") {
include_dirs = [ "src/include" ]
}
config("lc3_warnings") {
cflags = [ "-Wno-conversion" ]
}
source_set("lc3_codec") {
visibility = [
"//src/media/codec/codecs/sw/lc3:*",
"//third_party/github.com/google/liblc3:*",
]
sources = [
"src/src/attdet.c",
"src/src/attdet.h",
"src/src/bits.c",
"src/src/bits.h",
"src/src/bwdet.c",
"src/src/bwdet.h",
"src/src/common.h",
"src/src/energy.c",
"src/src/energy.h",
"src/src/fastmath.h",
"src/src/lc3.c",
"src/src/ltpf.c",
"src/src/ltpf.h",
"src/src/ltpf_arm.h",
"src/src/ltpf_neon.h",
"src/src/mdct.c",
"src/src/mdct.h",
"src/src/mdct_neon.h",
"src/src/plc.c",
"src/src/plc.h",
"src/src/sns.c",
"src/src/sns.h",
"src/src/spec.c",
"src/src/spec.h",
"src/src/tables.c",
"src/src/tables.h",
"src/src/tns.c",
"src/src/tns.h",
]
configs += [ ":lc3_warnings" ]
public_configs = [ ":lc3_includes_config" ]
}
static_library("lc3") {
deps = [ ":lc3_codec" ]
}