xref: /aosp_15_r20/hardware/interfaces/audio/aidl/common/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
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
17package {
18    default_team: "trendy_team_android_media_audio_framework",
19    // 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
27cc_library {
28    name: "libaudioaidlcommon",
29    host_supported: true,
30    vendor_available: true,
31    export_include_dirs: ["include"],
32    header_libs: [
33        "libbase_headers",
34        "libsystem_headers",
35        "libutils_headers",
36    ],
37    export_header_lib_headers: [
38        "libbase_headers",
39        "libsystem_headers",
40        "libutils_headers",
41    ],
42    srcs: [
43        "StreamWorker.cpp",
44    ],
45}
46
47cc_library {
48    name: "libaudioaidlranges",
49    host_supported: true,
50    vendor_available: true,
51    defaults: [
52        "latest_android_hardware_audio_effect_ndk_shared",
53    ],
54    export_include_dirs: ["include"],
55    header_libs: ["libaudioaidl_headers"],
56    srcs: [
57        "EffectRangeSpecific.cpp",
58    ],
59}
60
61cc_test {
62    name: "libaudioaidlcommon_test",
63    host_supported: true,
64    vendor_available: true,
65    defaults: [
66        "latest_android_media_audio_common_types_ndk_static",
67    ],
68    static_libs: [
69        "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",
82        "tests/utils_tests.cpp",
83    ],
84    test_suites: [
85        "general-tests",
86    ],
87}
88