1/* 2 * Copyright (C) 2018 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 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "//device/google/zumapro:device_google_zumapro_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: [ 24 "//device/google/zumapro:device_google_zumapro_license", 25 ], 26} 27 28cc_defaults { 29 name: "android.hardware.health-service.zumapro-defaults", 30 defaults: [ 31 "libhealth_aidl_impl_user", 32 "libhealth_aidl_charger_defaults", 33 ], 34 relative_install_path: "hw", 35 vintf_fragments: ["android.hardware.health-service.zumapro.xml"], 36 srcs: [ 37 "Health.cpp", 38 ], 39 40 cflags: [ 41 "-Wall", 42 "-Werror", 43 ], 44 45 static_libs: [ 46 "libhealth_aidl_impl", 47 ], 48} 49 50cc_binary { 51 name: "android.hardware.health-service.zumapro", 52 defaults: ["android.hardware.health-service.zumapro-defaults"], 53 proprietary: true, 54 init_rc: ["android.hardware.health-service.zumapro.rc"], 55 overrides: ["charger"], 56 shared_libs: [ 57 "libpixelhealth", 58 ], 59} 60 61cc_binary { 62 name: "android.hardware.health-service.zumapro_recovery", 63 defaults: ["android.hardware.health-service.zumapro-defaults"], 64 recovery: true, 65 init_rc: ["android.hardware.health-service.zumapro_recovery.rc"], 66 overrides: ["charger.recovery"], 67} 68