blob: b5131eba872fb6ba368a6211a1e84d9957e8ae59 [file] [log] [blame]
Andy Hungb776e372023-05-24 11:53:47 -07001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_base_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_av_services_audioflinger_license"],
8}
9
Andy Hung04eb9862023-06-12 15:04:00 -070010// TODO(b/275642749) Reenable these warnings
11audioflinger_utils_tidy_errors = audioflinger_base_tidy_errors + [
Andy Hungd6699ce2023-06-08 14:13:54 -070012 "-misc-non-private-member-variables-in-classes",
13]
14
15// Eventually use common tidy defaults
16cc_defaults {
17 name: "audioflinger_utils_flags_defaults",
18 // https://clang.llvm.org/docs/UsersManual.html#command-line-options
19 // https://clang.llvm.org/docs/DiagnosticsReference.html
Andy Hung510d1302023-06-12 16:56:30 -070020 cflags: audioflinger_base_cflags,
Andy Hungd6699ce2023-06-08 14:13:54 -070021 // https://clang.llvm.org/extra/clang-tidy/
22 tidy: true,
23 tidy_checks: audioflinger_utils_tidy_errors,
24 tidy_checks_as_errors: audioflinger_utils_tidy_errors,
25 tidy_flags: [
26 "-format-style=file",
27 ],
28}
29
Andy Hungb776e372023-05-24 11:53:47 -070030cc_library {
31 name: "libaudioflinger_utils",
32
33 defaults: [
Andy Hungd6699ce2023-06-08 14:13:54 -070034 "audioflinger_utils_flags_defaults",
Andy Hung1798b122023-06-15 18:52:23 -070035 "latest_android_media_audio_common_types_cpp_shared", // PropertyUtils.cpp
Andy Hungb776e372023-05-24 11:53:47 -070036 ],
37
38 srcs: [
39 "AudioWatchdog.cpp",
40 "BufLog.cpp",
41 "NBAIO_Tee.cpp",
Andy Hungc5106312023-07-19 16:56:19 -070042 "Permission.cpp",
Andy Hung1798b122023-06-15 18:52:23 -070043 "PropertyUtils.cpp",
Andy Hungb776e372023-05-24 11:53:47 -070044 "TypedLogger.cpp",
45 ],
46
47 shared_libs: [
Andy Hungc5106312023-07-19 16:56:19 -070048 "framework-permission-aidl-cpp",
49 "libaudioclient_aidl_conversion",
Andy Hungb776e372023-05-24 11:53:47 -070050 "libaudioutils",
51 "libbase",
Andy Hungc5106312023-07-19 16:56:19 -070052 "libbinder",
Andy Hung1798b122023-06-15 18:52:23 -070053 "libcutils", // property_get_int32
Andy Hungb776e372023-05-24 11:53:47 -070054 "liblog",
55 "libnbaio",
56 "libnblog",
57 "libutils",
58 ],
59
60 static_libs: [
61 "libsndfile",
62 ],
63
Andy Hung1798b122023-06-15 18:52:23 -070064 header_libs: [
65 "libaaudio_headers", // PropertyUtils.cpp
66 ],
67
Andy Hungb776e372023-05-24 11:53:47 -070068 include_dirs: [
69 "frameworks/av/services/audioflinger", // for configuration
70 ],
71}