blob: e3af179ea9108272966393b934a5cfb02faf6f93 [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"],
29 vintf_fragments: [":android.hardware.power.xml"],
Wei Wang61c2a332020-01-08 16:51:47 -080030 vendor: true,
31 shared_libs: [
32 "libbase",
33 "libbinder_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
Jooyung Hancadd26d2023-10-10 10:55:42 +090042prebuilt_etc {
Daniel Norman0f956a62021-10-19 15:40:01 -070043 name: "android.hardware.power.xml",
Jooyung Hancadd26d2023-10-10 10:55:42 +090044 src: "power-default.xml",
45 sub_dir: "vintf",
46 installable: false,
Daniel Norman0f956a62021-10-19 15:40:01 -070047}
48
49filegroup {
50 name: "android.hardware.power.rc",
51 srcs: ["power-default.rc"],
52}