Android.bp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. subdirs = ["tests"]
  2. cc_defaults {
  3. name: "audio_utils_defaults",
  4. local_include_dirs: ["include"],
  5. export_include_dirs: ["include"],
  6. cflags: [
  7. "-Werror",
  8. "-Wall",
  9. ],
  10. }
  11. cc_library {
  12. name: "libaudioutils",
  13. vendor_available: true,
  14. vndk: {
  15. enabled: true,
  16. },
  17. double_loadable: true,
  18. host_supported: true,
  19. defaults: ["audio_utils_defaults"],
  20. srcs: [
  21. "Balance.cpp",
  22. "channels.c",
  23. "ErrorLog.cpp",
  24. "fifo.cpp",
  25. "fifo_index.cpp",
  26. "fifo_writer32.cpp",
  27. "format.c",
  28. "limiter.c",
  29. "minifloat.c",
  30. "power.cpp",
  31. "PowerLog.cpp",
  32. "primitives.c",
  33. "roundup.c",
  34. "sample.c",
  35. ],
  36. header_libs: [
  37. "libaudio_system_headers",
  38. "libutils_headers",
  39. ],
  40. export_header_lib_headers: [
  41. "libaudio_system_headers",
  42. "libutils_headers",
  43. ],
  44. shared_libs: [
  45. "libcutils",
  46. "liblog",
  47. ],
  48. target: {
  49. android: {
  50. srcs: [
  51. "mono_blend.cpp",
  52. "resampler.c",
  53. "echo_reference.c",
  54. ],
  55. whole_static_libs: ["libaudioutils_fixedfft"],
  56. shared_libs: [
  57. "libspeexresampler",
  58. ],
  59. },
  60. host: {
  61. cflags: ["-D__unused=__attribute__((unused))"],
  62. },
  63. },
  64. }
  65. cc_library_static {
  66. name: "libaudioutils_fixedfft",
  67. vendor_available: true,
  68. defaults: ["audio_utils_defaults"],
  69. arch: {
  70. arm: {
  71. instruction_set: "arm",
  72. },
  73. },
  74. srcs: ["fixedfft.cpp"],
  75. }
  76. cc_library_static {
  77. name: "libsndfile",
  78. defaults: ["audio_utils_defaults"],
  79. host_supported: true,
  80. srcs: ["tinysndfile.c"],
  81. cflags: [
  82. "-UHAVE_STDERR",
  83. ],
  84. }
  85. cc_library_static {
  86. name: "libfifo",
  87. defaults: ["audio_utils_defaults"],
  88. srcs: [
  89. "fifo.cpp",
  90. "fifo_index.cpp",
  91. "primitives.c",
  92. "roundup.c",
  93. ],
  94. }
  95. cc_library_shared {
  96. name: "libaudiospdif",
  97. defaults: ["audio_utils_defaults"],
  98. srcs: [
  99. "spdif/BitFieldParser.cpp",
  100. "spdif/FrameScanner.cpp",
  101. "spdif/AC3FrameScanner.cpp",
  102. "spdif/DTSFrameScanner.cpp",
  103. "spdif/SPDIFEncoder.cpp",
  104. ],
  105. shared_libs: [
  106. "libcutils",
  107. "liblog",
  108. ],
  109. }