| Andy Hung | 1ef7738 | 2023-06-15 14:50:18 -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 | |
| 10 | audioflinger_datapath_tidy_errors = audioflinger_base_tidy_errors + [ |
| 11 | "modernize-avoid-c-arrays", |
| 12 | "modernize-deprecated-headers", |
| 13 | "modernize-pass-by-value", |
| 14 | "modernize-use-auto", |
| 15 | "modernize-use-nodiscard", |
| 16 | |
| 17 | // TODO(b/275642749) Reenable these warnings |
| 18 | "-misc-non-private-member-variables-in-classes", |
| 19 | ] |
| 20 | |
| 21 | // Eventually use common tidy defaults |
| 22 | cc_defaults { |
| 23 | name: "audioflinger_datapath_flags_defaults", |
| 24 | // https://clang.llvm.org/docs/UsersManual.html#command-line-options |
| 25 | // https://clang.llvm.org/docs/DiagnosticsReference.html |
| 26 | cflags: audioflinger_base_cflags, |
| 27 | // https://clang.llvm.org/extra/clang-tidy/ |
| 28 | tidy: true, |
| 29 | tidy_checks: audioflinger_datapath_tidy_errors, |
| 30 | tidy_checks_as_errors: audioflinger_datapath_tidy_errors, |
| 31 | tidy_flags: [ |
| Andy Hung | a159e4b | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 32 | "-format-style=file", |
| Andy Hung | 1ef7738 | 2023-06-15 14:50:18 -0700 | [diff] [blame] | 33 | ], |
| 34 | } |
| 35 | |
| 36 | cc_library { |
| 37 | name: "libaudioflinger_datapath", |
| 38 | |
| 39 | defaults: [ |
| 40 | "audioflinger_datapath_flags_defaults", |
| 41 | "latest_android_media_audio_common_types_cpp_shared", |
| 42 | ], |
| 43 | |
| 44 | srcs: [ |
| 45 | "AudioHwDevice.cpp", |
| Dean Wheatley | 6c00951 | 2023-10-23 09:34:14 +1100 | [diff] [blame] | 46 | "AudioStreamIn.cpp", |
| Andy Hung | 1ef7738 | 2023-06-15 14:50:18 -0700 | [diff] [blame] | 47 | "AudioStreamOut.cpp", |
| Dean Wheatley | 6c00951 | 2023-10-23 09:34:14 +1100 | [diff] [blame] | 48 | "SpdifStreamIn.cpp", |
| Andy Hung | 1ef7738 | 2023-06-15 14:50:18 -0700 | [diff] [blame] | 49 | "SpdifStreamOut.cpp", |
| 50 | ], |
| 51 | |
| 52 | header_libs: [ |
| Dean Wheatley | 6c00951 | 2023-10-23 09:34:14 +1100 | [diff] [blame] | 53 | "libaudioclient_headers", |
| Andy Hung | 1ef7738 | 2023-06-15 14:50:18 -0700 | [diff] [blame] | 54 | "libaudiohal_headers", |
| 55 | "liberror_headers", |
| 56 | ], |
| 57 | |
| 58 | shared_libs: [ |
| 59 | "audioclient-types-aidl-cpp", |
| 60 | "av-types-aidl-cpp", |
| Dean Wheatley | ace1eeb | 2023-11-06 21:58:14 +1100 | [diff] [blame] | 61 | "libaudioflinger_utils", // NBAIO_Tee |
| 62 | "libaudioprocessing", |
| Andy Hung | 1ef7738 | 2023-06-15 14:50:18 -0700 | [diff] [blame] | 63 | "libaudiospdif", |
| 64 | "libaudioutils", |
| 65 | "libbase", |
| Dean Wheatley | ace1eeb | 2023-11-06 21:58:14 +1100 | [diff] [blame] | 66 | "libcutils", |
| Andy Hung | 1ef7738 | 2023-06-15 14:50:18 -0700 | [diff] [blame] | 67 | "liblog", |
| Dean Wheatley | ace1eeb | 2023-11-06 21:58:14 +1100 | [diff] [blame] | 68 | "libnbaio", |
| Andy Hung | 1ef7738 | 2023-06-15 14:50:18 -0700 | [diff] [blame] | 69 | "libutils", // refbase |
| 70 | ], |
| Dean Wheatley | ace1eeb | 2023-11-06 21:58:14 +1100 | [diff] [blame] | 71 | |
| 72 | include_dirs: [ |
| Andy Hung | a159e4b | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 73 | "frameworks/av/services/audioflinger", // for configuration |
| Dean Wheatley | ace1eeb | 2023-11-06 21:58:14 +1100 | [diff] [blame] | 74 | ], |
| Andy Hung | 1ef7738 | 2023-06-15 14:50:18 -0700 | [diff] [blame] | 75 | } |