Andy Hung | b776e37 | 2023-05-24 11:53:47 -0700 | [diff] [blame] | 1 | package { |
| 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 Hung | 04eb986 | 2023-06-12 15:04:00 -0700 | [diff] [blame] | 10 | // TODO(b/275642749) Reenable these warnings |
| 11 | audioflinger_utils_tidy_errors = audioflinger_base_tidy_errors + [ |
Andy Hung | d6699ce | 2023-06-08 14:13:54 -0700 | [diff] [blame] | 12 | "-misc-non-private-member-variables-in-classes", |
| 13 | ] |
| 14 | |
| 15 | // Eventually use common tidy defaults |
| 16 | cc_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 Hung | 510d130 | 2023-06-12 16:56:30 -0700 | [diff] [blame] | 20 | cflags: audioflinger_base_cflags, |
Andy Hung | d6699ce | 2023-06-08 14:13:54 -0700 | [diff] [blame] | 21 | // 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 Hung | b776e37 | 2023-05-24 11:53:47 -0700 | [diff] [blame] | 30 | cc_library { |
| 31 | name: "libaudioflinger_utils", |
| 32 | |
| 33 | defaults: [ |
Andy Hung | d6699ce | 2023-06-08 14:13:54 -0700 | [diff] [blame] | 34 | "audioflinger_utils_flags_defaults", |
Andy Hung | 1798b12 | 2023-06-15 18:52:23 -0700 | [diff] [blame] | 35 | "latest_android_media_audio_common_types_cpp_shared", // PropertyUtils.cpp |
Andy Hung | b776e37 | 2023-05-24 11:53:47 -0700 | [diff] [blame] | 36 | ], |
| 37 | |
| 38 | srcs: [ |
| 39 | "AudioWatchdog.cpp", |
| 40 | "BufLog.cpp", |
| 41 | "NBAIO_Tee.cpp", |
Andy Hung | c510631 | 2023-07-19 16:56:19 -0700 | [diff] [blame] | 42 | "Permission.cpp", |
Andy Hung | 1798b12 | 2023-06-15 18:52:23 -0700 | [diff] [blame] | 43 | "PropertyUtils.cpp", |
Andy Hung | b776e37 | 2023-05-24 11:53:47 -0700 | [diff] [blame] | 44 | "TypedLogger.cpp", |
Andy Hung | 9554ec0 | 2023-07-20 21:23:42 -0700 | [diff] [blame^] | 45 | "Vibrator.cpp", |
Andy Hung | b776e37 | 2023-05-24 11:53:47 -0700 | [diff] [blame] | 46 | ], |
| 47 | |
| 48 | shared_libs: [ |
Andy Hung | c510631 | 2023-07-19 16:56:19 -0700 | [diff] [blame] | 49 | "framework-permission-aidl-cpp", |
| 50 | "libaudioclient_aidl_conversion", |
Andy Hung | b776e37 | 2023-05-24 11:53:47 -0700 | [diff] [blame] | 51 | "libaudioutils", |
| 52 | "libbase", |
Andy Hung | c510631 | 2023-07-19 16:56:19 -0700 | [diff] [blame] | 53 | "libbinder", |
Andy Hung | 1798b12 | 2023-06-15 18:52:23 -0700 | [diff] [blame] | 54 | "libcutils", // property_get_int32 |
Andy Hung | b776e37 | 2023-05-24 11:53:47 -0700 | [diff] [blame] | 55 | "liblog", |
| 56 | "libnbaio", |
| 57 | "libnblog", |
| 58 | "libutils", |
Andy Hung | 9554ec0 | 2023-07-20 21:23:42 -0700 | [diff] [blame^] | 59 | "libvibrator", |
Andy Hung | b776e37 | 2023-05-24 11:53:47 -0700 | [diff] [blame] | 60 | ], |
| 61 | |
| 62 | static_libs: [ |
| 63 | "libsndfile", |
| 64 | ], |
| 65 | |
Andy Hung | 1798b12 | 2023-06-15 18:52:23 -0700 | [diff] [blame] | 66 | header_libs: [ |
| 67 | "libaaudio_headers", // PropertyUtils.cpp |
| 68 | ], |
| 69 | |
Andy Hung | b776e37 | 2023-05-24 11:53:47 -0700 | [diff] [blame] | 70 | include_dirs: [ |
| 71 | "frameworks/av/services/audioflinger", // for configuration |
| 72 | ], |
| 73 | } |