blob: e2e0a9379890df5ac33cfa2ba53b1dbc3b5692b6 [file] [log] [blame]
Bob Badourb224b362021-02-12 20:13:01 -08001package {
Aditya Choudharyc5c6c622024-01-31 11:06:17 +00002 default_team: "trendy_team_android_media_audio_framework",
Bob Badourb224b362021-02-12 20:13:01 -08003 // See: http://go/android-license-faq
4 // A large-scale-change added 'default_applicable_licenses' to import
5 // all of the 'license_kinds' from "hardware_interfaces_license"
6 // to get the below license kinds:
7 // SPDX-license-identifier-Apache-2.0
8 default_applicable_licenses: ["hardware_interfaces_license"],
9}
10
Carter Hsu150dded2021-11-08 18:30:24 +080011soong_config_module_type {
12 name: "android_hardware_audio_config_default",
13 module_type: "cc_defaults",
14 config_namespace: "android_hardware_audio",
15 bool_variables: [
16 "run_64bit",
17 ],
18 properties: ["compile_multilib"],
19}
20
21android_hardware_audio_config_default {
22 name: "android_hardware_audio_config_defaults",
23
24 soong_config_variables: {
25 run_64bit: {
26 conditions_default: {
27 // Prefer 32 bit as the binary must always be installed at the same
28 // location for init to start it and the build system does not support
29 // having two binaries installable to the same location even if they are
30 // not installed in the same build.
31 compile_multilib: "prefer32",
32 },
33 compile_multilib: "64",
34 },
35 },
36}
37
Kevin Rocardad17f582019-06-18 16:38:16 -070038cc_binary {
39 name: "android.hardware.audio.service",
40
41 init_rc: ["android.hardware.audio.service.rc"],
42 relative_install_path: "hw",
43 vendor: true,
Carter Hsu150dded2021-11-08 18:30:24 +080044
Vlad Popaf4fe41c2022-12-14 11:57:26 +010045 defaults: [
46 "android_hardware_audio_config_defaults",
Vlad Popaf4fe41c2022-12-14 11:57:26 +010047 ],
48
Kevin Rocardad17f582019-06-18 16:38:16 -070049 srcs: ["service.cpp"],
50
51 cflags: [
52 "-Wall",
53 "-Wextra",
54 "-Werror",
55 ],
56
57 shared_libs: [
58 "libcutils",
59 "libbinder",
Jasmine Chad90c4742022-02-15 16:31:13 +080060 "libbinder_ndk",
Kevin Rocardad17f582019-06-18 16:38:16 -070061 "libhidlbase",
62 "liblog",
63 "libutils",
64 "libhardware",
Kevin Rocardad17f582019-06-18 16:38:16 -070065 ],
Kevin Rocardad17f582019-06-18 16:38:16 -070066}
67
68// Legacy service name, use android.hardware.audio.service instead
69phony {
70 name: "android.hardware.audio@2.0-service",
71 required: ["android.hardware.audio.service"],
72}