| Dan Willemsen | a2b50fb | 2016-09-22 16:05:13 -0700 | [diff] [blame] | 1 | // Copyright (C) 2015 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| Bob Badour | 8117c2a | 2021-02-03 18:31:58 -0800 | [diff] [blame] | 15 | package { |
| 16 | // http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // the below license kinds from "system_media_license": |
| 19 | // SPDX-license-identifier-Apache-2.0 |
| 20 | default_applicable_licenses: ["system_media_license"], |
| 21 | } |
| 22 | |
| David Li | 5cc38a0 | 2021-01-29 09:07:09 +0000 | [diff] [blame] | 23 | cc_defaults { |
| 24 | name: "libalsautils_defaults", |
| Weilin Xu | 5a8dbea | 2024-09-19 20:30:42 -0700 | [diff] [blame] | 25 | vendor_available: true, |
| Dan Willemsen | a2b50fb | 2016-09-22 16:05:13 -0700 | [diff] [blame] | 26 | srcs: [ |
| 27 | "alsa_device_profile.c", |
| 28 | "alsa_device_proxy.c", |
| Dan Willemsen | a2b50fb | 2016-09-22 16:05:13 -0700 | [diff] [blame] | 29 | "alsa_format.c", |
| Andy Hung | 579797b | 2024-03-05 16:08:02 -0800 | [diff] [blame] | 30 | "alsa_logging.c", |
| Dan Willemsen | a2b50fb | 2016-09-22 16:05:13 -0700 | [diff] [blame] | 31 | ], |
| 32 | export_include_dirs: ["include"], |
| Tri Vo | 82d9450 | 2017-06-23 15:42:32 -0700 | [diff] [blame] | 33 | header_libs: [ |
| 34 | "libaudio_system_headers", |
| 35 | ], |
| 36 | export_header_lib_headers: [ |
| 37 | "libaudio_system_headers", |
| 38 | ], |
| Dan Willemsen | a2b50fb | 2016-09-22 16:05:13 -0700 | [diff] [blame] | 39 | shared_libs: [ |
| Dan Willemsen | a2b50fb | 2016-09-22 16:05:13 -0700 | [diff] [blame] | 40 | "libaudioutils", |
| Andy Hung | 579797b | 2024-03-05 16:08:02 -0800 | [diff] [blame] | 41 | "libcutils", |
| 42 | "liblog", |
| Dan Willemsen | a2b50fb | 2016-09-22 16:05:13 -0700 | [diff] [blame] | 43 | ], |
| 44 | cflags: [ |
| Dan Willemsen | a2b50fb | 2016-09-22 16:05:13 -0700 | [diff] [blame] | 45 | "-Wall", |
| Andy Hung | 579797b | 2024-03-05 16:08:02 -0800 | [diff] [blame] | 46 | "-Werror", |
| Dan Willemsen | a2b50fb | 2016-09-22 16:05:13 -0700 | [diff] [blame] | 47 | "-Wno-unused-parameter", |
| 48 | ], |
| 49 | } |
| David Li | 5cc38a0 | 2021-01-29 09:07:09 +0000 | [diff] [blame] | 50 | |
| Weilin Xu | 5a8dbea | 2024-09-19 20:30:42 -0700 | [diff] [blame] | 51 | cc_library { |
| David Li | 5cc38a0 | 2021-01-29 09:07:09 +0000 | [diff] [blame] | 52 | name: "libalsautils", |
| 53 | defaults: ["libalsautils_defaults"], |
| 54 | shared_libs: [ |
| 55 | "libtinyalsa", |
| 56 | ], |
| 57 | } |
| 58 | |
| Weilin Xu | 5a8dbea | 2024-09-19 20:30:42 -0700 | [diff] [blame] | 59 | cc_library { |
| David Li | 5cc38a0 | 2021-01-29 09:07:09 +0000 | [diff] [blame] | 60 | name: "libalsautilsv2", |
| 61 | defaults: ["libalsautils_defaults"], |
| 62 | shared_libs: [ |
| 63 | "libtinyalsav2", |
| 64 | ], |
| 65 | } |