blob: da91ee6690b7078800f22f5b78eacccac35c6006 [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",
26 relative_install_path: "hw",
Daniel Norman0f956a62021-10-19 15:40:01 -070027 init_rc: [":android.hardware.power.rc"],
28 vintf_fragments: [":android.hardware.power.xml"],
Wei Wang61c2a332020-01-08 16:51:47 -080029 vendor: true,
30 shared_libs: [
31 "libbase",
32 "libbinder_ndk",
Matt Buckley13843882022-09-15 22:32:56 +000033 "android.hardware.power-V4-ndk",
Wei Wang61c2a332020-01-08 16:51:47 -080034 ],
35 srcs: [
36 "main.cpp",
37 "Power.cpp",
Peiyong Lin5851c3a2022-10-18 20:47:56 +000038 "PowerHintSession.cpp",
Wei Wang61c2a332020-01-08 16:51:47 -080039 ],
40}
Daniel Norman0f956a62021-10-19 15:40:01 -070041
42filegroup {
43 name: "android.hardware.power.xml",
44 srcs: ["power-default.xml"],
45}
46
47filegroup {
48 name: "android.hardware.power.rc",
49 srcs: ["power-default.rc"],
50}