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_av_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_av_license"], 8} 9 10// libraries that are included whole_static for test apps 11ndk_libs = [ 12 "android.hardware.health-V3-ndk", 13 "android.hardware.power.stats-V1-cpp", 14] 15 16// Power, System, Health utils 17cc_library { 18 name: "libpshutils", 19 local_include_dirs: ["include"], 20 export_include_dirs: ["include"], 21 srcs: [ 22 "AudioPowerManager.cpp", 23 "AudioToken.cpp", 24 "HealthStats.cpp", 25 "HealthStatsProvider.cpp", 26 "PowerClientStats.cpp", 27 "PowerStats.cpp", 28 "PowerStatsCollector.cpp", 29 "PowerStatsProvider.cpp", 30 ], 31 shared_libs: [ 32 "com.android.media.audio-aconfig-cc", 33 "libaudioutils", 34 "libbase", 35 "libbinder", 36 "libbinder_ndk", 37 "libcutils", 38 "liblog", 39 "libmediautils", 40 "libutils", 41 ], 42 cflags: [ 43 "-Wall", 44 "-Werror", 45 "-Wthread-safety", 46 ], 47 shared: { 48 shared_libs: ndk_libs, 49 }, 50 static: { 51 whole_static_libs: ndk_libs, 52 }, 53} 54