Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame^] | 1 | // Copyright (C) 2020 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. |
| 14 | package { |
| 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/google/gs101:device_google_gs101_license" |
| 18 | // to get the below license kinds: |
| 19 | // SPDX-license-identifier-Apache-2.0 |
| 20 | default_applicable_licenses: [ |
| 21 | "//device/google/gs101:device_google_gs101_license", |
| 22 | ], |
| 23 | } |
| 24 | |
| 25 | cc_binary { |
| 26 | // TODO(b/167628903) : remove this |
| 27 | name: "android.hardware.power.stats@1.0-service.gs101", |
| 28 | header_libs: [ |
| 29 | "device_kernel_headers", |
| 30 | ], |
| 31 | relative_install_path: "hw", |
| 32 | init_rc: ["android.hardware.power.stats@1.0-service.gs101.rc"], |
| 33 | vintf_fragments: ["android.hardware.power.stats@1.0-service.gs101.xml"], |
| 34 | srcs: [ |
| 35 | "AocStateResidencyDataProvider.cpp", |
| 36 | "DvfsStateResidencyDataProvider.cpp", |
| 37 | "RailDataProvider.cpp", |
| 38 | "service.cpp", |
| 39 | "UfsStateResidencyDataProvider.cpp", |
| 40 | ], |
| 41 | cflags: [ |
| 42 | "-Wall", |
| 43 | "-Werror", |
| 44 | ], |
| 45 | static_libs: [ |
| 46 | "libpixelpowerstats", |
| 47 | ], |
| 48 | shared_libs: [ |
| 49 | "android.hardware.power.stats@1.0", |
| 50 | "pixelpowerstats_provider_aidl_interface-cpp", |
| 51 | "libbase", |
| 52 | "libbinder", |
| 53 | "libcutils", |
| 54 | "libfmq", |
| 55 | "libhidlbase", |
| 56 | "liblog", |
| 57 | "libutils", |
| 58 | ], |
| 59 | vendor: true, |
| 60 | } |
| 61 | |
| 62 | cc_binary { |
| 63 | name: "android.hardware.power.stats-service.pixel", |
| 64 | init_rc: ["android.hardware.power.stats-service.pixel.rc"], |
| 65 | vintf_fragments: ["android.hardware.power.stats-service.pixel.xml"], |
| 66 | srcs: [ |
| 67 | "AocStateResidencyDataProviderAidl.cpp", |
| 68 | "DvfsStateResidencyDataProviderAidl.cpp", |
| 69 | "serviceaidl.cpp" |
| 70 | ], |
| 71 | cflags: [ |
| 72 | "-Wall", |
| 73 | "-Werror", |
| 74 | ], |
| 75 | static_libs: [ |
| 76 | "android.hardware.power.stats-impl.pixel", |
| 77 | ], |
| 78 | shared_libs: [ |
| 79 | "libbase", |
| 80 | "libcutils", |
| 81 | "liblog", |
| 82 | "libutils", |
| 83 | "libbinder_ndk", |
| 84 | "android.hardware.power.stats-V1-ndk_platform", |
| 85 | ], |
| 86 | relative_install_path: "hw", |
| 87 | vendor: true, |
| 88 | proprietary: true, |
| 89 | } |