blob: 1580b8f639d52e245ec32239452fe622474ee2fe [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 Hung1798b122023-06-15 18:52:23 -070042 "PropertyUtils.cpp",
Andy Hungb776e372023-05-24 11:53:47 -070043 "TypedLogger.cpp",
44 ],
45
46 shared_libs: [
47 "libaudioutils",
48 "libbase",
Andy Hung1798b122023-06-15 18:52:23 -070049 "libcutils", // property_get_int32
Andy Hungb776e372023-05-24 11:53:47 -070050 "liblog",
51 "libnbaio",
52 "libnblog",
53 "libutils",
54 ],
55
56 static_libs: [
57 "libsndfile",
58 ],
59
Andy Hung1798b122023-06-15 18:52:23 -070060 header_libs: [
61 "libaaudio_headers", // PropertyUtils.cpp
62 ],
63
Andy Hungb776e372023-05-24 11:53:47 -070064 include_dirs: [
65 "frameworks/av/services/audioflinger", // for configuration
66 ],
67}