blob: c14d19dd7f19ea19b916807b139684babbfd2b19 [file] [log] [blame]
Mikhail Naganov614e4b52022-06-30 21:05:11 +00001/*
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
17package {
Aditya Choudharyc5c6c622024-01-31 11:06:17 +000018 default_team: "trendy_team_android_media_audio_framework",
Mikhail Naganov614e4b52022-06-30 21:05:11 +000019 // See: http://go/android-license-faq
20 // A large-scale-change added 'default_applicable_licenses' to import
21 // all of the 'license_kinds' from "hardware_interfaces_license"
22 // to get the below license kinds:
23 // SPDX-license-identifier-Apache-2.0
24 default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
Mikhail Naganov0b9c5fe2022-08-08 18:28:36 +000027cc_library {
Mikhail Naganov614e4b52022-06-30 21:05:11 +000028 name: "libaudioaidlcommon",
29 host_supported: true,
30 vendor_available: true,
31 export_include_dirs: ["include"],
32 header_libs: [
33 "libbase_headers",
Mikhail Naganov48e2e8f2022-07-22 00:07:03 +000034 "libsystem_headers",
François Gaffie57ccab72024-04-17 11:47:51 +020035 "libutils_headers",
Mikhail Naganov614e4b52022-06-30 21:05:11 +000036 ],
37 export_header_lib_headers: [
38 "libbase_headers",
Mikhail Naganov48e2e8f2022-07-22 00:07:03 +000039 "libsystem_headers",
François Gaffie57ccab72024-04-17 11:47:51 +020040 "libutils_headers",
Mikhail Naganov614e4b52022-06-30 21:05:11 +000041 ],
Mikhail Naganov0b9c5fe2022-08-08 18:28:36 +000042 srcs: [
43 "StreamWorker.cpp",
44 ],
Mikhail Naganov614e4b52022-06-30 21:05:11 +000045}
46
Ram Mohan9c477192023-03-28 05:54:11 +053047cc_library {
48 name: "libaudioaidlranges",
49 host_supported: true,
50 vendor_available: true,
Shunkai Yao195d3d62023-10-10 19:26:07 +000051 defaults: [
52 "latest_android_hardware_audio_effect_ndk_shared",
Ram Mohan9c477192023-03-28 05:54:11 +053053 ],
54 export_include_dirs: ["include"],
55 header_libs: ["libaudioaidl_headers"],
56 srcs: [
57 "EffectRangeSpecific.cpp",
58 ],
59}
60
Mikhail Naganov614e4b52022-06-30 21:05:11 +000061cc_test {
62 name: "libaudioaidlcommon_test",
63 host_supported: true,
64 vendor_available: true,
Shunkai Yao195d3d62023-10-10 19:26:07 +000065 defaults: [
66 "latest_android_media_audio_common_types_ndk_static",
67 ],
Mikhail Naganov0b9c5fe2022-08-08 18:28:36 +000068 static_libs: [
Mikhail Naganov614e4b52022-06-30 21:05:11 +000069 "libaudioaidlcommon",
70 ],
71 shared_libs: [
72 "liblog",
73 ],
74 cflags: [
75 "-Wall",
76 "-Wextra",
77 "-Werror",
78 "-Wthread-safety",
79 ],
80 srcs: [
81 "tests/streamworker_tests.cpp",
Mikhail Naganova2c71412022-08-19 21:37:35 +000082 "tests/utils_tests.cpp",
Mikhail Naganov614e4b52022-06-30 21:05:11 +000083 ],
84 test_suites: [
85 "general-tests",
86 ],
87}