blob: e934bc501873aa362ff542171d1c1f1ba61c54a4 [file] [log] [blame]
Wei Wang61c2a332020-01-08 16:51:47 -08001// 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 Badourc22b35b2021-02-23 14:26:20 -080015package {
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 Wang61c2a332020-01-08 16:51:47 -080024cc_binary {
25 name: "android.hardware.power-service.example",
Matt Buckley1fde90c2023-06-28 19:55:26 +000026 defaults: ["android.hardware.power-ndk_shared"],
Wei Wang61c2a332020-01-08 16:51:47 -080027 relative_install_path: "hw",
Daniel Norman0f956a62021-10-19 15:40:01 -070028 init_rc: [":android.hardware.power.rc"],
Cole Faustbe7e47f2024-10-22 16:30:58 -070029 vintf_fragments: ["power-default.xml"],
Wei Wang61c2a332020-01-08 16:51:47 -080030 vendor: true,
31 shared_libs: [
Matt Buckleycaac1472023-12-12 03:55:50 +000032 "android.hardware.common-V2-ndk",
33 "android.hardware.common.fmq-V1-ndk",
Wei Wang61c2a332020-01-08 16:51:47 -080034 "libbase",
35 "libbinder_ndk",
Matt Buckleycaac1472023-12-12 03:55:50 +000036 "libcutils",
37 "libfmq",
Matt Buckleyf7c36d42024-02-27 01:31:43 +000038 "libutils",
Wei Wang61c2a332020-01-08 16:51:47 -080039 ],
40 srcs: [
41 "main.cpp",
42 "Power.cpp",
Peiyong Lin5851c3a2022-10-18 20:47:56 +000043 "PowerHintSession.cpp",
Wei Wang61c2a332020-01-08 16:51:47 -080044 ],
45}
Daniel Norman0f956a62021-10-19 15:40:01 -070046
Jooyung Hancadd26d2023-10-10 10:55:42 +090047prebuilt_etc {
Daniel Norman0f956a62021-10-19 15:40:01 -070048 name: "android.hardware.power.xml",
Jooyung Hancadd26d2023-10-10 10:55:42 +090049 src: "power-default.xml",
50 sub_dir: "vintf",
51 installable: false,
Daniel Norman0f956a62021-10-19 15:40:01 -070052}
53
54filegroup {
55 name: "android.hardware.power.rc",
56 srcs: ["power-default.rc"],
57}