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 15package { 16 default_team: "trendy_team_aaos_framework", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_defaults { 21 name: "powerpolicyclient_lib_build_defaults", 22 cflags: [ 23 "-Wall", 24 "-Wno-missing-field-initializers", 25 "-Werror", 26 "-Wno-unused-variable", 27 "-Wunused-parameter", 28 ], 29 shared_libs: [ 30 "android.frameworks.automotive.powerpolicy-V3-ndk", 31 "libbase", 32 "libbinder_ndk", 33 "libutils", 34 ], 35} 36 37cc_defaults { 38 name: "powerpolicyclient_defaults", 39 shared_libs: [ 40 "android.frameworks.automotive.powerpolicy-V3-ndk", 41 "libpowerpolicyclient", 42 ], 43} 44 45cc_library { 46 name: "libpowerpolicyclient", 47 vendor_available: true, 48 system_ext_specific: true, 49 srcs: [ 50 "src/PowerPolicyClientBase.cpp", 51 ], 52 defaults: [ 53 "powerpolicyclient_lib_build_defaults", 54 ], 55 export_include_dirs: ["include"], 56} 57