blob: 1bd6abeb4775fbefc4e5d030f725d6523afa89a3 [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
Kevin Rocardad17f582019-06-18 16:38:16 -070044 srcs: ["service.cpp"],
45
46 cflags: [
47 "-Wall",
48 "-Wextra",
49 "-Werror",
50 ],
51
52 shared_libs: [
53 "libcutils",
54 "libbinder",
55 "libhidlbase",
56 "liblog",
57 "libutils",
58 "libhardware",
Kevin Rocardad17f582019-06-18 16:38:16 -070059 ],
Carter Hsu150dded2021-11-08 18:30:24 +080060
61 defaults: [
62 "android_hardware_audio_config_defaults",
63 ],
Kevin Rocardad17f582019-06-18 16:38:16 -070064}
65
66// Legacy service name, use android.hardware.audio.service instead
67phony {
68 name: "android.hardware.audio@2.0-service",
69 required: ["android.hardware.audio.service"],
70}