• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14package {
15    // See: http://go/android-license-faq
16    // A large-scale-change added 'default_applicable_licenses' to import
17    // all of the 'license_kinds' from "device_generic_car_license"
18    // to get the below license kinds:
19    //   SPDX-license-identifier-Apache-2.0
20    default_applicable_licenses: ["device_generic_car_license"],
21}
22
23cc_binary {
24    name: "android.hardware.audio.service-caremu",
25
26    init_rc: ["android.hardware.audio.service-caremu.rc"],
27
28    relative_install_path: "hw",
29    vendor: true,
30    // Prefer 32 bit as the binary must always be installed at the same
31    // location for init to start it and the build system does not support
32    // having two binaries installable to the same location even if they are
33    // not installed in the same build.
34    compile_multilib: "prefer32",
35    srcs: [
36        "service.cpp",
37        "PowerPolicyClient.cpp",
38    ],
39
40    cflags: [
41        "-Wall",
42        "-Wextra",
43        "-Werror",
44    ],
45
46    shared_libs: [
47        "android.hardware.audio@6.0",
48        "android.hardware.audio.common@6.0",
49        "android.hardware.audio.effect@6.0",
50        "android.hardware.automotive.audiocontrol-V1-ndk_platform",
51        "android.frameworks.automotive.powerpolicy-V1-ndk_platform",
52        "audiocontrol-caremu",
53        "libbase",
54        "libbinder",
55        "libbinder_ndk",
56        "libhardware",
57        "libhidlbase",
58        "liblog",
59        "libpowerpolicyclient",
60    ],
61
62    header_libs: [
63        "libhardware_headers",
64    ],
65}
66
67cc_library {
68    name: "audiocontrol-caremu",
69    vendor: true,
70    vintf_fragments: ["audiocontrol-caremu.xml"],
71
72    shared_libs: [
73        "android.hardware.audio.common@7.0-enums",
74        "android.hardware.automotive.audiocontrol-V1-ndk_platform",
75        "libbase",
76        "libbinder_ndk",
77        "libcutils",
78        "liblog",
79        "audio.primary.caremu",
80    ],
81
82    srcs: [
83        "AudioControl.cpp",
84    ],
85
86    include_dirs: [
87        "device/generic/car/emulator/audio/driver/include"
88    ],
89}
90