blob: 5c0c685bdfb4ed9cbc8fd4195e16880e1ebae597 [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",
Mikhail Naganov614e4b52022-06-30 21:05:11 +000035 ],
36 export_header_lib_headers: [
37 "libbase_headers",
Mikhail Naganov48e2e8f2022-07-22 00:07:03 +000038 "libsystem_headers",
Mikhail Naganov614e4b52022-06-30 21:05:11 +000039 ],
Mikhail Naganov0b9c5fe2022-08-08 18:28:36 +000040 srcs: [
41 "StreamWorker.cpp",
42 ],
Mikhail Naganov614e4b52022-06-30 21:05:11 +000043}
44
Ram Mohan9c477192023-03-28 05:54:11 +053045cc_library {
46 name: "libaudioaidlranges",
47 host_supported: true,
48 vendor_available: true,
Shunkai Yao195d3d62023-10-10 19:26:07 +000049 defaults: [
50 "latest_android_hardware_audio_effect_ndk_shared",
Ram Mohan9c477192023-03-28 05:54:11 +053051 ],
52 export_include_dirs: ["include"],
53 header_libs: ["libaudioaidl_headers"],
54 srcs: [
55 "EffectRangeSpecific.cpp",
56 ],
57}
58
Mikhail Naganov614e4b52022-06-30 21:05:11 +000059cc_test {
60 name: "libaudioaidlcommon_test",
61 host_supported: true,
62 vendor_available: true,
Shunkai Yao195d3d62023-10-10 19:26:07 +000063 defaults: [
64 "latest_android_media_audio_common_types_ndk_static",
65 ],
Mikhail Naganov0b9c5fe2022-08-08 18:28:36 +000066 static_libs: [
Mikhail Naganov614e4b52022-06-30 21:05:11 +000067 "libaudioaidlcommon",
68 ],
69 shared_libs: [
70 "liblog",
71 ],
72 cflags: [
73 "-Wall",
74 "-Wextra",
75 "-Werror",
76 "-Wthread-safety",
77 ],
78 srcs: [
79 "tests/streamworker_tests.cpp",
Mikhail Naganova2c71412022-08-19 21:37:35 +000080 "tests/utils_tests.cpp",
Mikhail Naganov614e4b52022-06-30 21:05:11 +000081 ],
82 test_suites: [
83 "general-tests",
84 ],
85}