Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 1 | // Copyright (C) 2022 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 | |
| 15 | // Headers module is in frameworks/av/Android.bp because modules are not allowed |
| 16 | // to refer to headers in parent directories and the headers live in |
| 17 | // frameworks/av/include. |
| 18 | |
| 19 | package { |
| 20 | default_applicable_licenses: ["frameworks_av_license"], |
| 21 | } |
| 22 | |
Shunkai Yao | 5c71834 | 2023-02-23 23:49:51 +0000 | [diff] [blame] | 23 | cc_defaults { |
| 24 | name: "AudioHalTestDefaults", |
Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 25 | test_suites: ["device-tests"], |
Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 26 | defaults: [ |
Shunkai Yao | 242521c | 2023-01-29 18:08:09 +0000 | [diff] [blame] | 27 | "latest_android_media_audio_common_types_ndk_shared", |
Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 28 | ], |
Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 29 | cflags: [ |
| 30 | "-Wall", |
| 31 | "-Wextra", |
| 32 | "-Werror", |
| 33 | "-Wthread-safety", |
Shunkai Yao | 242521c | 2023-01-29 18:08:09 +0000 | [diff] [blame] | 34 | "-DBACKEND_NDK", |
Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 35 | ], |
| 36 | |
| 37 | shared_libs: [ |
| 38 | "audioclient-types-aidl-cpp", |
Shunkai Yao | 242521c | 2023-01-29 18:08:09 +0000 | [diff] [blame] | 39 | "libaudio_aidl_conversion_common_ndk", |
Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 40 | "libaudiohal", |
Shunkai Yao | 242521c | 2023-01-29 18:08:09 +0000 | [diff] [blame] | 41 | "liblog", |
Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 42 | "libutils", |
Shunkai Yao | 96a7c01 | 2023-02-10 00:00:48 +0000 | [diff] [blame] | 43 | "libvibrator", |
Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 44 | ], |
Shunkai Yao | 5c71834 | 2023-02-23 23:49:51 +0000 | [diff] [blame] | 45 | } |
Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 46 | |
Shunkai Yao | 5c71834 | 2023-02-23 23:49:51 +0000 | [diff] [blame] | 47 | cc_test { |
| 48 | name: "EffectsFactoryHalInterfaceTest", |
| 49 | srcs: ["EffectsFactoryHalInterface_test.cpp"], |
| 50 | defaults: ["AudioHalTestDefaults"], |
| 51 | header_libs: ["libaudiohal_headers"], |
| 52 | } |
| 53 | |
| 54 | cc_test { |
| 55 | name: "EffectProxyTest", |
| 56 | srcs: [ |
| 57 | "EffectProxy_test.cpp", |
| 58 | ":audio_effectproxy_src_files", |
Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 59 | ], |
Shunkai Yao | 5c71834 | 2023-02-23 23:49:51 +0000 | [diff] [blame] | 60 | defaults: [ |
| 61 | "AudioHalTestDefaults", |
| 62 | "latest_android_hardware_audio_effect_ndk_shared", |
| 63 | "libaudiohal_default", |
| 64 | "use_libaidlvintf_gtest_helper_static", |
| 65 | ], |
| 66 | shared_libs: [ |
| 67 | "android.hardware.common.fmq-V1-ndk", |
| 68 | "libbinder_ndk", |
| 69 | "libfmq", |
| 70 | ], |
| 71 | header_libs: ["libaudiohalimpl_headers"], |
Shunkai Yao | 5120250 | 2022-12-12 06:11:46 +0000 | [diff] [blame] | 72 | } |