• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2022 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
17soong_namespace {
18    imports: [
19        "hardware/google/pixel",
20    ],
21}
22
23package {
24    default_applicable_licenses: ["Android-Apache-2.0"],
25}
26
27cc_binary {
28    vendor: true,
29    name: "battery_mitigation",
30    relative_install_path: "hw",
31    proprietary: true,
32    init_rc: ["battery_mitigation.rc"],
33    shared_libs: [
34        "libpixelmitigation",
35        "libbase",
36        "libbinder_ndk",
37        "libcutils",
38        "libhardware",
39        "liblog",
40        "libutils",
41        "android.hardware.thermal@2.0",
42        "android.hardware.thermal-V1-ndk"
43    ],
44    srcs: [
45        "battery_mitigation.cpp",
46    ],
47    cflags: [
48        "-Wall",
49        "-Werror",
50    ],
51}
52