Files
hardware_interfaces/audio/common/all-versions/default/service/Android.bp
Aditya Choudhary c5c6c62995 [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
<add g3 doc link>

Bug: 304529413
Test: N/A
Change-Id: I3322344f595f974f730dc824af0110388076d838
2024-01-31 11:06:17 +00:00

73 lines
1.9 KiB
Plaintext

package {
default_team: "trendy_team_android_media_audio_framework",
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_interfaces_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_interfaces_license"],
}
soong_config_module_type {
name: "android_hardware_audio_config_default",
module_type: "cc_defaults",
config_namespace: "android_hardware_audio",
bool_variables: [
"run_64bit",
],
properties: ["compile_multilib"],
}
android_hardware_audio_config_default {
name: "android_hardware_audio_config_defaults",
soong_config_variables: {
run_64bit: {
conditions_default: {
// Prefer 32 bit as the binary must always be installed at the same
// location for init to start it and the build system does not support
// having two binaries installable to the same location even if they are
// not installed in the same build.
compile_multilib: "prefer32",
},
compile_multilib: "64",
},
},
}
cc_binary {
name: "android.hardware.audio.service",
init_rc: ["android.hardware.audio.service.rc"],
relative_install_path: "hw",
vendor: true,
defaults: [
"android_hardware_audio_config_defaults",
],
srcs: ["service.cpp"],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
],
shared_libs: [
"libcutils",
"libbinder",
"libbinder_ndk",
"libhidlbase",
"liblog",
"libutils",
"libhardware",
],
}
// Legacy service name, use android.hardware.audio.service instead
phony {
name: "android.hardware.audio@2.0-service",
required: ["android.hardware.audio.service"],
}