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", |
Isaac Chen | 901023a | 2017-04-10 14:43:30 +0800 | [diff] [blame] | 25 | vendor: 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", |
| 29 | "alsa_logging.c", |
| 30 | "alsa_format.c", |
| 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: [ |
| 40 | "liblog", |
| 41 | "libcutils", |
Dan Willemsen | a2b50fb | 2016-09-22 16:05:13 -0700 | [diff] [blame] | 42 | "libaudioutils", |
| 43 | ], |
| 44 | cflags: [ |
| 45 | "-Werror", |
| 46 | "-Wall", |
| 47 | "-Wno-unused-parameter", |
| 48 | ], |
| 49 | } |
David Li | 5cc38a0 | 2021-01-29 09:07:09 +0000 | [diff] [blame] | 50 | |
| 51 | cc_library_shared { |
| 52 | name: "libalsautils", |
| 53 | defaults: ["libalsautils_defaults"], |
| 54 | shared_libs: [ |
| 55 | "libtinyalsa", |
| 56 | ], |
| 57 | } |
| 58 | |
| 59 | cc_library_shared { |
| 60 | name: "libalsautilsv2", |
| 61 | defaults: ["libalsautils_defaults"], |
| 62 | shared_libs: [ |
| 63 | "libtinyalsav2", |
| 64 | ], |
| 65 | } |