blob: 8210f7d5af7c0d35382565e3878c766cb3a20b39 [file] [log] [blame]
Shunkai Yao51202502022-12-12 06:11:46 +00001// 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
19package {
20 default_applicable_licenses: ["frameworks_av_license"],
21}
22
Shunkai Yao5c718342023-02-23 23:49:51 +000023cc_defaults {
24 name: "AudioHalTestDefaults",
Shunkai Yao51202502022-12-12 06:11:46 +000025 test_suites: ["device-tests"],
Shunkai Yao51202502022-12-12 06:11:46 +000026 defaults: [
Shunkai Yao242521c2023-01-29 18:08:09 +000027 "latest_android_media_audio_common_types_ndk_shared",
Shunkai Yao51202502022-12-12 06:11:46 +000028 ],
Shunkai Yao51202502022-12-12 06:11:46 +000029 cflags: [
30 "-Wall",
31 "-Wextra",
32 "-Werror",
33 "-Wthread-safety",
Shunkai Yao242521c2023-01-29 18:08:09 +000034 "-DBACKEND_NDK",
Shunkai Yao51202502022-12-12 06:11:46 +000035 ],
36
37 shared_libs: [
38 "audioclient-types-aidl-cpp",
Shunkai Yao242521c2023-01-29 18:08:09 +000039 "libaudio_aidl_conversion_common_ndk",
Shunkai Yao51202502022-12-12 06:11:46 +000040 "libaudiohal",
Shunkai Yao242521c2023-01-29 18:08:09 +000041 "liblog",
Shunkai Yao51202502022-12-12 06:11:46 +000042 "libutils",
Shunkai Yao96a7c012023-02-10 00:00:48 +000043 "libvibrator",
Shunkai Yao51202502022-12-12 06:11:46 +000044 ],
Shunkai Yao5c718342023-02-23 23:49:51 +000045}
Shunkai Yao51202502022-12-12 06:11:46 +000046
Shunkai Yao5c718342023-02-23 23:49:51 +000047cc_test {
48 name: "EffectsFactoryHalInterfaceTest",
49 srcs: ["EffectsFactoryHalInterface_test.cpp"],
50 defaults: ["AudioHalTestDefaults"],
51 header_libs: ["libaudiohal_headers"],
52}
53
54cc_test {
55 name: "EffectProxyTest",
56 srcs: [
57 "EffectProxy_test.cpp",
58 ":audio_effectproxy_src_files",
Shunkai Yao51202502022-12-12 06:11:46 +000059 ],
Shunkai Yao5c718342023-02-23 23:49:51 +000060 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 Yao51202502022-12-12 06:11:46 +000072}