1package { 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 10audioflinger_sounddose_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 22cc_defaults { 23 name: "audioflinger_sounddose_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_sounddose_tidy_errors, 30 tidy_checks_as_errors: audioflinger_sounddose_tidy_errors, 31 tidy_flags: [ 32 "-format-style=file", 33 ], 34} 35 36cc_library { 37 name: "libsounddose", 38 39 double_loadable: true, 40 41 defaults: [ 42 "audioflinger_sounddose_flags_defaults", 43 "latest_android_hardware_audio_core_sounddose_ndk_shared", 44 "latest_android_hardware_audio_sounddose_ndk_shared", 45 "latest_android_media_audio_common_types_ndk_shared", 46 ], 47 48 srcs: [ 49 "SoundDoseManager.cpp", 50 ], 51 52 shared_libs: [ 53 "audioflinger-aidl-cpp", 54 "libaudio_aidl_conversion_common_ndk", 55 "libaudiofoundation", 56 "libaudioutils", 57 "libbase", 58 "libbinder", 59 "libbinder_ndk", 60 "liblog", 61 "libutils", 62 ], 63 64 header_libs: [ 65 "libaudioutils_headers", 66 ], 67 68 cflags: [ 69 "-DBACKEND_NDK", 70 "-Wall", 71 "-Werror", 72 ], 73} 74 75cc_library_headers { 76 name: "libsounddose_headers", 77 host_supported: true, 78 device_supported: true, 79 export_include_dirs: ["."], 80} 81