1# 2# Copyright 2015 Google, Inc. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at: 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17source_set("sbc_decoder") { 18 sources = [ 19 "decoder/srce/alloc.c", 20 "decoder/srce/bitalloc.c", 21 "decoder/srce/bitalloc-sbc.c", 22 "decoder/srce/bitstream-decode.c", 23 "decoder/srce/decoder-oina.c", 24 "decoder/srce/decoder-private.c", 25 "decoder/srce/decoder-sbc.c", 26 "decoder/srce/dequant.c", 27 "decoder/srce/framing.c", 28 "decoder/srce/framing-sbc.c", 29 "decoder/srce/oi_codec_version.c", 30 "decoder/srce/synthesis-8-generated.c", 31 "decoder/srce/synthesis-dct8.c", 32 "decoder/srce/synthesis-sbc.c", 33 ] 34 35 include_dirs = [ "decoder/include" ] 36 37 configs += [ "//bt:target_defaults" ] 38} 39 40source_set("sbc_encoder") { 41 sources = [ 42 "encoder/srce/sbc_analysis.c", 43 "encoder/srce/sbc_dct.c", 44 "encoder/srce/sbc_dct_coeffs.c", 45 "encoder/srce/sbc_enc_bit_alloc_mono.c", 46 "encoder/srce/sbc_enc_bit_alloc_ste.c", 47 "encoder/srce/sbc_enc_coeffs.c", 48 "encoder/srce/sbc_encoder.c", 49 "encoder/srce/sbc_packing.c", 50 ] 51 52 include_dirs = [ 53 "encoder/include", 54 "//bt/internal_include", 55 "//bt/stack/include", 56 ] 57 58 configs += [ "//bt:target_defaults" ] 59} 60 61static_library("sbc") { 62 deps = [ 63 ":sbc_decoder", 64 ":sbc_encoder", 65 ] 66} 67