blob: 5e29ce946abadeb6a745c06a69c2a9a1a1e6789e [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",
Andy Hung9554ec02023-07-20 21:23:42 -070045 "Vibrator.cpp",
Andy Hungb776e372023-05-24 11:53:47 -070046 ],
47
48 shared_libs: [
Andy Hungc5106312023-07-19 16:56:19 -070049 "framework-permission-aidl-cpp",
50 "libaudioclient_aidl_conversion",
Andy Hungb776e372023-05-24 11:53:47 -070051 "libaudioutils",
52 "libbase",
Andy Hungc5106312023-07-19 16:56:19 -070053 "libbinder",
Andy Hung1798b122023-06-15 18:52:23 -070054 "libcutils", // property_get_int32
Andy Hungb776e372023-05-24 11:53:47 -070055 "liblog",
56 "libnbaio",
57 "libnblog",
58 "libutils",
Andy Hung9554ec02023-07-20 21:23:42 -070059 "libvibrator",
Andy Hungb776e372023-05-24 11:53:47 -070060 ],
61
62 static_libs: [
63 "libsndfile",
64 ],
65
Andy Hung1798b122023-06-15 18:52:23 -070066 header_libs: [
67 "libaaudio_headers", // PropertyUtils.cpp
68 ],
69
Andy Hungb776e372023-05-24 11:53:47 -070070 include_dirs: [
71 "frameworks/av/services/audioflinger", // for configuration
72 ],
73}