1# Copyright (c) 2024 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//base/powermgr/power_manager/powermgr.gni") 15 16config("private_config") { 17 include_dirs = [ 18 "include", 19 "../native/include", 20 "${powermgr_inner_api}/native/include", 21 ] 22} 23 24config("public_config") { 25 include_dirs = [ "include" ] 26} 27 28ohos_source_set("power_intf_wrapper") { 29 sanitize = { 30 cfi = true 31 cfi_cross_dso = true 32 debug = false 33 } 34 branch_protector_ret = "pac_ret" 35 36 sources = [ "src/power_ext_intf_wrapper.cpp" ] 37 38 configs = [ 39 ":private_config", 40 "${powermgr_utils_path}:coverage_flags", 41 ] 42 43 public_configs = [ ":public_config" ] 44 45 deps = [ 46 "${powermgr_inner_api}:powermgr_client", 47 "${powermgr_utils_path}/lib_loader:power_lib_loader", 48 ] 49 50 external_deps = [ 51 "c_utils:utils", 52 "hilog:libhilog", 53 ] 54 55 if (power_manager_feature_watch_limit_screen_common_event_publish) { 56 defines += 57 [ "POWER_MANAGER_ENABLE_WATCH_CUSTOMIZED_SCREEN_COMMON_EVENT_RULES" ] 58 } 59 60 subsystem_name = "powermgr" 61 part_name = "${powermgr_part_name}" 62} 63