Shunkai Yao | 4590517 | 2022-08-24 18:14:02 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 The Android Open Source Project |
| 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 | |
| 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 24 | } |
| 25 | |
| 26 | cc_library_shared { |
| 27 | name: "libequalizer", |
| 28 | vendor: true, |
| 29 | shared_libs: [ |
Shunkai Yao | ea24c1a | 2022-09-28 17:39:23 +0000 | [diff] [blame^] | 30 | "libaudioaidlcommon", |
Shunkai Yao | 4590517 | 2022-08-24 18:14:02 +0000 | [diff] [blame] | 31 | "libbase", |
Shunkai Yao | ea24c1a | 2022-09-28 17:39:23 +0000 | [diff] [blame^] | 32 | "android.hardware.common-V2-ndk", |
Shunkai Yao | 4590517 | 2022-08-24 18:14:02 +0000 | [diff] [blame] | 33 | ], |
| 34 | defaults: [ |
Shunkai Yao | ea24c1a | 2022-09-28 17:39:23 +0000 | [diff] [blame^] | 35 | "aidlaudioservice_defaults", |
Shunkai Yao | 4590517 | 2022-08-24 18:14:02 +0000 | [diff] [blame] | 36 | "latest_android_media_audio_common_types_ndk_shared", |
| 37 | "latest_android_hardware_audio_effect_ndk_shared", |
| 38 | ], |
Shunkai Yao | ea24c1a | 2022-09-28 17:39:23 +0000 | [diff] [blame^] | 39 | include_dirs: [ |
| 40 | "hardware/interfaces/audio/aidl/default/include", |
| 41 | "system/media/audio/include", |
| 42 | ], |
Shunkai Yao | 4590517 | 2022-08-24 18:14:02 +0000 | [diff] [blame] | 43 | srcs: [ |
| 44 | "Equalizer.cpp", |
Shunkai Yao | ea24c1a | 2022-09-28 17:39:23 +0000 | [diff] [blame^] | 45 | ":effectCommonFile", |
| 46 | ], |
| 47 | cflags: [ |
| 48 | "-Wall", |
| 49 | "-Wextra", |
| 50 | "-Werror", |
| 51 | "-Wthread-safety", |
Shunkai Yao | 4590517 | 2022-08-24 18:14:02 +0000 | [diff] [blame] | 52 | ], |
| 53 | visibility: [ |
| 54 | "//hardware/interfaces/audio/aidl/default", |
| 55 | ], |
| 56 | } |