1# 2# Copyright (C) 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 38source_set("sbc_encoder") { 39 sources = [ 40 "encoder/srce/sbc_analysis.c", 41 "encoder/srce/sbc_dct.c", 42 "encoder/srce/sbc_dct_coeffs.c", 43 "encoder/srce/sbc_enc_bit_alloc_mono.c", 44 "encoder/srce/sbc_enc_bit_alloc_ste.c", 45 "encoder/srce/sbc_enc_coeffs.c", 46 "encoder/srce/sbc_encoder.c", 47 "encoder/srce/sbc_packing.c", 48 ] 49 50 include_dirs = [ 51 "encoder/include", 52 "//include", 53 "//stack/include", 54 ] 55} 56 57static_library("sbc") { 58 deps = [ 59 ":sbc_decoder", 60 ":sbc_encoder", 61 ] 62} 63