Wei Wang | 61c2a33 | 2020-01-08 16:51:47 -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 | |
Bob Badour | c22b35b | 2021-02-23 14:26:20 -0800 | [diff] [blame] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 22 | } |
| 23 | |
Wei Wang | 61c2a33 | 2020-01-08 16:51:47 -0800 | [diff] [blame] | 24 | cc_binary { |
| 25 | name: "android.hardware.power-service.example", |
Matt Buckley | 1fde90c | 2023-06-28 19:55:26 +0000 | [diff] [blame] | 26 | defaults: ["android.hardware.power-ndk_shared"], |
Wei Wang | 61c2a33 | 2020-01-08 16:51:47 -0800 | [diff] [blame] | 27 | relative_install_path: "hw", |
Daniel Norman | 0f956a6 | 2021-10-19 15:40:01 -0700 | [diff] [blame] | 28 | init_rc: [":android.hardware.power.rc"], |
| 29 | vintf_fragments: [":android.hardware.power.xml"], |
Wei Wang | 61c2a33 | 2020-01-08 16:51:47 -0800 | [diff] [blame] | 30 | vendor: true, |
| 31 | shared_libs: [ |
| 32 | "libbase", |
| 33 | "libbinder_ndk", |
Wei Wang | 61c2a33 | 2020-01-08 16:51:47 -0800 | [diff] [blame] | 34 | ], |
| 35 | srcs: [ |
| 36 | "main.cpp", |
| 37 | "Power.cpp", |
Peiyong Lin | 5851c3a | 2022-10-18 20:47:56 +0000 | [diff] [blame] | 38 | "PowerHintSession.cpp", |
Wei Wang | 61c2a33 | 2020-01-08 16:51:47 -0800 | [diff] [blame] | 39 | ], |
| 40 | } |
Daniel Norman | 0f956a6 | 2021-10-19 15:40:01 -0700 | [diff] [blame] | 41 | |
Jooyung Han | cadd26d | 2023-10-10 10:55:42 +0900 | [diff] [blame] | 42 | prebuilt_etc { |
Daniel Norman | 0f956a6 | 2021-10-19 15:40:01 -0700 | [diff] [blame] | 43 | name: "android.hardware.power.xml", |
Jooyung Han | cadd26d | 2023-10-10 10:55:42 +0900 | [diff] [blame] | 44 | src: "power-default.xml", |
| 45 | sub_dir: "vintf", |
| 46 | installable: false, |
Daniel Norman | 0f956a6 | 2021-10-19 15:40:01 -0700 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | filegroup { |
| 50 | name: "android.hardware.power.rc", |
| 51 | srcs: ["power-default.rc"], |
| 52 | } |