BUILD.gn 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. source_set("sbc_decoder") {
  17. sources = [
  18. "decoder/srce/alloc.c",
  19. "decoder/srce/bitalloc.c",
  20. "decoder/srce/bitalloc-sbc.c",
  21. "decoder/srce/bitstream-decode.c",
  22. "decoder/srce/decoder-oina.c",
  23. "decoder/srce/decoder-private.c",
  24. "decoder/srce/decoder-sbc.c",
  25. "decoder/srce/dequant.c",
  26. "decoder/srce/framing.c",
  27. "decoder/srce/framing-sbc.c",
  28. "decoder/srce/oi_codec_version.c",
  29. "decoder/srce/synthesis-8-generated.c",
  30. "decoder/srce/synthesis-dct8.c",
  31. "decoder/srce/synthesis-sbc.c",
  32. ]
  33. include_dirs = [ "decoder/include" ]
  34. }
  35. source_set("sbc_encoder") {
  36. sources = [
  37. "encoder/srce/sbc_analysis.c",
  38. "encoder/srce/sbc_dct.c",
  39. "encoder/srce/sbc_dct_coeffs.c",
  40. "encoder/srce/sbc_enc_bit_alloc_mono.c",
  41. "encoder/srce/sbc_enc_bit_alloc_ste.c",
  42. "encoder/srce/sbc_enc_coeffs.c",
  43. "encoder/srce/sbc_encoder.c",
  44. "encoder/srce/sbc_packing.c",
  45. ]
  46. include_dirs = [
  47. "encoder/include",
  48. "//internal_include",
  49. "//stack/include",
  50. ]
  51. }
  52. static_library("sbc") {
  53. deps = [
  54. ":sbc_decoder",
  55. ":sbc_encoder",
  56. ]
  57. }