blob: d513062c256ac14fb0a13714facd9155d426da4a [file] [log] [blame]
Bob Badourb224b362021-02-12 20:13:01 -08001package {
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 "hardware_interfaces_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
Carter Hsu150dded2021-11-08 18:30:24 +080010soong_config_module_type {
11 name: "android_hardware_audio_config_default",
12 module_type: "cc_defaults",
13 config_namespace: "android_hardware_audio",
14 bool_variables: [
15 "run_64bit",
16 ],
17 properties: ["compile_multilib"],
18}
19
20android_hardware_audio_config_default {
21 name: "android_hardware_audio_config_defaults",
22
23 soong_config_variables: {
24 run_64bit: {
25 conditions_default: {
26 // Prefer 32 bit as the binary must always be installed at the same
27 // location for init to start it and the build system does not support
28 // having two binaries installable to the same location even if they are
29 // not installed in the same build.
30 compile_multilib: "prefer32",
31 },
32 compile_multilib: "64",
33 },
34 },
35}
36
Kevin Rocardad17f582019-06-18 16:38:16 -070037cc_binary {
38 name: "android.hardware.audio.service",
39
40 init_rc: ["android.hardware.audio.service.rc"],
41 relative_install_path: "hw",
42 vendor: true,
Carter Hsu150dded2021-11-08 18:30:24 +080043
Vlad Popaf4fe41c2022-12-14 11:57:26 +010044 defaults: [
45 "android_hardware_audio_config_defaults",
Vlad Popaf4fe41c2022-12-14 11:57:26 +010046 ],
47
Kevin Rocardad17f582019-06-18 16:38:16 -070048 srcs: ["service.cpp"],
49
50 cflags: [
51 "-Wall",
52 "-Wextra",
53 "-Werror",
54 ],
55
56 shared_libs: [
57 "libcutils",
58 "libbinder",
Jasmine Chad90c4742022-02-15 16:31:13 +080059 "libbinder_ndk",
Kevin Rocardad17f582019-06-18 16:38:16 -070060 "libhidlbase",
61 "liblog",
62 "libutils",
63 "libhardware",
Kevin Rocardad17f582019-06-18 16:38:16 -070064 ],
Kevin Rocardad17f582019-06-18 16:38:16 -070065}
66
67// Legacy service name, use android.hardware.audio.service instead
68phony {
69 name: "android.hardware.audio@2.0-service",
70 required: ["android.hardware.audio.service"],
71}