Bob Badour | 8117c2a | 2021-02-03 18:31:58 -0800 | [diff] [blame] | 1 | package { |
| 2 | // http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // the below license kinds from "system_media_license": |
| 5 | // SPDX-license-identifier-Apache-2.0 |
| 6 | default_applicable_licenses: ["system_media_license"], |
| 7 | } |
| 8 | |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 9 | subdirs = ["tests"] |
| 10 | |
| 11 | cc_defaults { |
| 12 | name: "audio_utils_defaults", |
| 13 | |
| 14 | local_include_dirs: ["include"], |
| 15 | export_include_dirs: ["include"], |
| 16 | |
| 17 | cflags: [ |
| 18 | "-Werror", |
| 19 | "-Wall", |
| 20 | ], |
| 21 | } |
| 22 | |
Andy Hung | 45ddd21 | 2020-01-28 16:02:28 -0800 | [diff] [blame] | 23 | cc_library_headers { |
| 24 | name: "libaudioutils_headers", |
| 25 | host_supported: true, |
| 26 | vendor_available: true, |
Justin Yun | e1f7b8b | 2020-11-11 19:27:40 +0900 | [diff] [blame] | 27 | product_available: true, |
Andy Hung | 45ddd21 | 2020-01-28 16:02:28 -0800 | [diff] [blame] | 28 | export_include_dirs: ["include"], |
Ray Essick | 2be3a5b | 2021-06-20 16:27:46 -0700 | [diff] [blame] | 29 | // referenced from CTS/MTS test suite which must run on sdk 29, make sure it's compatible |
| 30 | // (revisit if/when we add features to this library that require newer sdk. |
| 31 | sdk_version: "29", |
Andy Hung | 45ddd21 | 2020-01-28 16:02:28 -0800 | [diff] [blame] | 32 | } |
| 33 | |
Kevin Rocard | 0e586f4 | 2018-01-24 06:09:44 +0000 | [diff] [blame] | 34 | cc_library { |
| 35 | name: "libaudioutils", |
| 36 | vendor_available: true, |
Justin Yun | e1f7b8b | 2020-11-11 19:27:40 +0900 | [diff] [blame] | 37 | product_available: true, |
Kevin Rocard | 0e586f4 | 2018-01-24 06:09:44 +0000 | [diff] [blame] | 38 | vndk: { |
| 39 | enabled: true, |
| 40 | }, |
Jooyung Han | d79bd6d | 2019-01-18 18:14:02 +0900 | [diff] [blame] | 41 | double_loadable: true, |
Kevin Rocard | 0e586f4 | 2018-01-24 06:09:44 +0000 | [diff] [blame] | 42 | host_supported: true, |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 43 | defaults: ["audio_utils_defaults"], |
| 44 | |
| 45 | srcs: [ |
Andy Hung | 65e7a1b | 2019-01-18 15:49:12 -0800 | [diff] [blame] | 46 | "Balance.cpp", |
Andy Hung | ad861e6 | 2021-05-18 11:51:54 -0700 | [diff] [blame] | 47 | "channels.cpp", |
Andy Hung | bb8f172 | 2017-03-15 14:52:09 -0700 | [diff] [blame] | 48 | "ErrorLog.cpp", |
Dan Willemsen | 03e86bd | 2016-09-12 21:34:12 -0700 | [diff] [blame] | 49 | "fifo.cpp", |
Glenn Kasten | 7cc8f54 | 2016-12-01 16:12:59 -0800 | [diff] [blame] | 50 | "fifo_index.cpp", |
Glenn Kasten | 2652f99 | 2020-01-21 13:14:14 -0800 | [diff] [blame] | 51 | "fifo_writer_T.cpp", |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 52 | "format.c", |
| 53 | "limiter.c", |
jiabin | 3da7453 | 2020-03-18 11:25:47 -0700 | [diff] [blame] | 54 | "Metadata.cpp", |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 55 | "minifloat.c", |
Domingo 🐻 Hui | 490fe66 | 2019-07-26 09:45:53 -0700 | [diff] [blame] | 56 | "mono_blend.cpp", |
Andy Hung | 459a2a3 | 2017-03-20 09:24:53 -0700 | [diff] [blame] | 57 | "power.cpp", |
| 58 | "PowerLog.cpp", |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 59 | "primitives.c", |
| 60 | "roundup.c", |
Glenn Kasten | 9c0dc7e | 2014-05-18 13:36:37 -0700 | [diff] [blame] | 61 | "sample.c", |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 62 | ], |
| 63 | |
Tri Vo | 82d9450 | 2017-06-23 15:42:32 -0700 | [diff] [blame] | 64 | header_libs: [ |
Kevin Rocard | 0e586f4 | 2018-01-24 06:09:44 +0000 | [diff] [blame] | 65 | "libaudio_system_headers", |
Tri Vo | a6bddef | 2017-06-27 09:54:36 -0700 | [diff] [blame] | 66 | "libutils_headers", |
Tri Vo | 82d9450 | 2017-06-23 15:42:32 -0700 | [diff] [blame] | 67 | ], |
| 68 | |
| 69 | export_header_lib_headers: [ |
Kevin Rocard | 0e586f4 | 2018-01-24 06:09:44 +0000 | [diff] [blame] | 70 | "libaudio_system_headers", |
Tri Vo | a6bddef | 2017-06-27 09:54:36 -0700 | [diff] [blame] | 71 | "libutils_headers", |
Tri Vo | 82d9450 | 2017-06-23 15:42:32 -0700 | [diff] [blame] | 72 | ], |
| 73 | |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 74 | shared_libs: [ |
| 75 | "libcutils", |
| 76 | "liblog", |
| 77 | ], |
| 78 | |
| 79 | target: { |
| 80 | android: { |
| 81 | srcs: [ |
Domingo 🐻 Hui | 490fe66 | 2019-07-26 09:45:53 -0700 | [diff] [blame] | 82 | // "mono_blend.cpp", |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 83 | "resampler.c", |
| 84 | "echo_reference.c", |
| 85 | ], |
| 86 | whole_static_libs: ["libaudioutils_fixedfft"], |
| 87 | shared_libs: [ |
| 88 | "libspeexresampler", |
| 89 | ], |
| 90 | }, |
| 91 | host: { |
Colin Cross | 00afd76 | 2016-09-29 14:08:28 -0700 | [diff] [blame] | 92 | cflags: ["-D__unused=__attribute__((unused))"], |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 93 | }, |
| 94 | }, |
Jooyung Han | 7fe723a | 2020-04-16 18:48:35 +0900 | [diff] [blame] | 95 | min_sdk_version: "29", |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | cc_library_static { |
| 99 | name: "libaudioutils_fixedfft", |
Jiyong Park | 09d178f | 2017-05-15 15:31:44 +0900 | [diff] [blame] | 100 | vendor_available: true, |
Justin Yun | e1f7b8b | 2020-11-11 19:27:40 +0900 | [diff] [blame] | 101 | product_available: true, |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 102 | defaults: ["audio_utils_defaults"], |
| 103 | |
| 104 | arch: { |
| 105 | arm: { |
| 106 | instruction_set: "arm", |
| 107 | }, |
| 108 | }, |
| 109 | |
| 110 | srcs: ["fixedfft.cpp"], |
Jooyung Han | 7fe723a | 2020-04-16 18:48:35 +0900 | [diff] [blame] | 111 | min_sdk_version: "29", |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 112 | } |
| 113 | |
| 114 | cc_library_static { |
| 115 | name: "libsndfile", |
| 116 | defaults: ["audio_utils_defaults"], |
| 117 | host_supported: true, |
| 118 | srcs: ["tinysndfile.c"], |
| 119 | cflags: [ |
| 120 | "-UHAVE_STDERR", |
| 121 | ], |
| 122 | } |
| 123 | |
| 124 | cc_library_static { |
| 125 | name: "libfifo", |
| 126 | defaults: ["audio_utils_defaults"], |
| 127 | srcs: [ |
Dan Willemsen | 03e86bd | 2016-09-12 21:34:12 -0700 | [diff] [blame] | 128 | "fifo.cpp", |
Glenn Kasten | 7cc8f54 | 2016-12-01 16:12:59 -0800 | [diff] [blame] | 129 | "fifo_index.cpp", |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 130 | "primitives.c", |
| 131 | "roundup.c", |
| 132 | ], |
Jooyung Han | 7fe723a | 2020-04-16 18:48:35 +0900 | [diff] [blame] | 133 | min_sdk_version: "29", |
Ayushi Khopkar | 2ffb917 | 2020-05-21 11:33:11 +0530 | [diff] [blame] | 134 | host_supported: true, |
| 135 | target: { |
| 136 | darwin: { |
| 137 | enabled: false, |
| 138 | }, |
| 139 | }, |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 140 | } |
| 141 | |
| 142 | cc_library_shared { |
| 143 | name: "libaudiospdif", |
Glenn Kasten | 0fef07e | 2020-08-17 10:47:04 -0700 | [diff] [blame] | 144 | host_supported: true, |
Dan Willemsen | c017c20 | 2016-09-12 16:15:40 -0700 | [diff] [blame] | 145 | defaults: ["audio_utils_defaults"], |
| 146 | |
| 147 | srcs: [ |
| 148 | "spdif/BitFieldParser.cpp", |
| 149 | "spdif/FrameScanner.cpp", |
| 150 | "spdif/AC3FrameScanner.cpp", |
| 151 | "spdif/DTSFrameScanner.cpp", |
| 152 | "spdif/SPDIFEncoder.cpp", |
| 153 | ], |
| 154 | |
| 155 | shared_libs: [ |
| 156 | "libcutils", |
| 157 | "liblog", |
| 158 | ], |
| 159 | } |