Bob Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 1 | package { |
| 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 | |
Kevin Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 10 | cc_binary { |
| 11 | name: "android.hardware.audio.service", |
| 12 | |
| 13 | init_rc: ["android.hardware.audio.service.rc"], |
| 14 | relative_install_path: "hw", |
| 15 | vendor: true, |
Alistair Delva | cc8dabb | 2020-06-09 11:34:28 -0700 | [diff] [blame] | 16 | // 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] | 17 | // location for init to start it and the build system does not support |
| 18 | // having two binaries installable to the same location even if they are |
| 19 | // not installed in the same build. |
Alistair Delva | cc8dabb | 2020-06-09 11:34:28 -0700 | [diff] [blame] | 20 | compile_multilib: "prefer32", |
Kevin Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 21 | srcs: ["service.cpp"], |
| 22 | |
| 23 | cflags: [ |
| 24 | "-Wall", |
| 25 | "-Wextra", |
| 26 | "-Werror", |
| 27 | ], |
| 28 | |
| 29 | shared_libs: [ |
| 30 | "libcutils", |
| 31 | "libbinder", |
| 32 | "libhidlbase", |
| 33 | "liblog", |
| 34 | "libutils", |
| 35 | "libhardware", |
Kevin Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 36 | ], |
| 37 | } |
| 38 | |
| 39 | // Legacy service name, use android.hardware.audio.service instead |
| 40 | phony { |
| 41 | name: "android.hardware.audio@2.0-service", |
| 42 | required: ["android.hardware.audio.service"], |
| 43 | } |