1cc_binary {
2    name: "android.hardware.audio.service",
3
4    init_rc: ["android.hardware.audio.service.rc"],
5    relative_install_path: "hw",
6    vendor: true,
7    // Prefer 32 bit as the binary must always be installed at the same
8    // location for init to start it and the build system does not support
9    // having two binaries installable to the same location even if they are
10    // not installed in the same build.
11    compile_multilib: "prefer32",
12    srcs: ["service.cpp"],
13
14    cflags: [
15        "-Wall",
16        "-Wextra",
17        "-Werror",
18    ],
19
20    shared_libs: [
21        "libcutils",
22        "libbinder",
23        "libhidlbase",
24        "liblog",
25        "libutils",
26        "libhardware",
27    ],
28}
29
30// Legacy service name, use android.hardware.audio.service instead
31phony {
32    name: "android.hardware.audio@2.0-service",
33    required: ["android.hardware.audio.service"],
34}
35