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 | |
Carter Hsu | 150dded | 2021-11-08 18:30:24 +0800 | [diff] [blame] | 10 | soong_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 | |
| 20 | android_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 Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 37 | cc_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 Hsu | 150dded | 2021-11-08 18:30:24 +0800 | [diff] [blame] | 43 | |
Kevin Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 44 | srcs: ["service.cpp"], |
| 45 | |
| 46 | cflags: [ |
| 47 | "-Wall", |
| 48 | "-Wextra", |
| 49 | "-Werror", |
| 50 | ], |
| 51 | |
| 52 | shared_libs: [ |
| 53 | "libcutils", |
| 54 | "libbinder", |
Jasmine Cha | d90c474 | 2022-02-15 16:31:13 +0800 | [diff] [blame] | 55 | "libbinder_ndk", |
Kevin Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 56 | "libhidlbase", |
| 57 | "liblog", |
| 58 | "libutils", |
| 59 | "libhardware", |
Kevin Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 60 | ], |
Carter Hsu | 150dded | 2021-11-08 18:30:24 +0800 | [diff] [blame] | 61 | |
| 62 | defaults: [ |
| 63 | "android_hardware_audio_config_defaults", |
| 64 | ], |
Kevin Rocard | ad17f58 | 2019-06-18 16:38:16 -0700 | [diff] [blame] | 65 | } |
| 66 | |
| 67 | // Legacy service name, use android.hardware.audio.service instead |
| 68 | phony { |
| 69 | name: "android.hardware.audio@2.0-service", |
| 70 | required: ["android.hardware.audio.service"], |
| 71 | } |