1/*
2 * Copyright (C) 2024 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17cc_defaults {
18    name: "android.hardware.health-service.automotive-defaults",
19    defaults: [
20        "libhealth_aidl_impl_user",
21        "libhealth_aidl_charger_defaults",
22    ],
23
24    relative_install_path: "hw",
25
26    overrides: [
27        "android.hardware.health-service.example",
28        "com.google.cf.health",
29    ],
30
31    vintf_fragments: ["android.hardware.health-service.automotive.xml"],
32
33    srcs: [
34        "HealthImpl.cpp",
35    ],
36
37    cflags: [
38        "-Wall",
39        "-Werror",
40    ],
41
42    static_libs: [
43        "libhealth_aidl_impl",
44    ],
45}
46
47cc_binary {
48    name: "android.hardware.health-service.automotive",
49    defaults: ["android.hardware.health-service.automotive-defaults"],
50    proprietary: true,
51    init_rc: ["android.hardware.health-service.automotive.rc"],
52    overrides: ["charger"],
53}
54
55cc_binary {
56    name: "android.hardware.health-service.automotive_recovery",
57    defaults: ["android.hardware.health-service.automotive-defaults"],
58    recovery: true,
59    init_rc: ["android.hardware.health-service.automotive_recovery.rc"],
60    overrides: ["charger.recovery"],
61}
62