Kevin Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 1 | cc_binary { |
| 2 | name: "android.hardware.audio.service", |
| 3 | |
| 4 | init_rc: ["android.hardware.audio.service.rc"], |
| 5 | relative_install_path: "hw", |
| 6 | vendor: true, |
Alistair Delva | cc8dabb | 2020-06-09 11:34:28 -0700 | [diff] [blame^] | 7 | // Prefer 32 bit as the binary must always be installed at the same |
Kevin Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 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. |
Alistair Delva | cc8dabb | 2020-06-09 11:34:28 -0700 | [diff] [blame^] | 11 | compile_multilib: "prefer32", |
Kevin Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 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", |
Kevin Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 27 | ], |
| 28 | } |
| 29 | |
| 30 | // Legacy service name, use android.hardware.audio.service instead |
| 31 | phony { |
| 32 | name: "android.hardware.audio@2.0-service", |
| 33 | required: ["android.hardware.audio.service"], |
| 34 | } |