blob: 9890be2954f8c5f613da794c001669721635d7fd [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",
Jasmine Chad90c4742022-02-15 16:31:13 +080055 "libbinder_ndk",
Kevin Rocardad17f582019-06-18 16:38:16 -070056 "libhidlbase",
57 "liblog",
58 "libutils",
59 "libhardware",
Kevin Rocardad17f582019-06-18 16:38:16 -070060 ],
Carter Hsu150dded2021-11-08 18:30:24 +080061
62 defaults: [
63 "android_hardware_audio_config_defaults",
64 ],
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}