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("../../../device_status.gni") 15 16config("intention_stationary_server_public_config") { 17 include_dirs = [ 18 "include", 19 "${device_status_root_path}/interfaces/innerkits/include", 20 "${device_status_root_path}/libs/interface", 21 "${device_status_root_path}/services/native/include", 22 ] 23} 24 25ohos_source_set("intention_stationary_server") { 26 sanitize = { 27 integer_overflow = true 28 ubsan = true 29 boundary_sanitize = true 30 cfi = true 31 cfi_cross_dso = true 32 debug = false 33 } 34 35 branch_protector_ret = "pac_ret" 36 37 include_dirs = [ 38 "include", 39 "${device_status_root_path}/interfaces/innerkits/include", 40 "${device_status_root_path}/libs/interface", 41 "${device_status_root_path}/services/native/include", 42 ] 43 44 sources = [ 45 "${device_status_root_path}/services/native/src/devicestatus_dumper.cpp", 46 "${device_status_root_path}/services/native/src/devicestatus_hisysevent.cpp", 47 "${device_status_root_path}/services/native/src/devicestatus_manager.cpp", 48 "${device_status_root_path}/services/native/src/devicestatus_msdp_client_impl.cpp", 49 "src/stationary_server.cpp", 50 ] 51 52 public_configs = [ ":intention_stationary_server_public_config" ] 53 54 defines = device_status_default_defines 55 56 deps = [ 57 "${device_status_root_path}/intention/data:intention_data", 58 "${device_status_root_path}/intention/prototype:intention_prototype", 59 "${device_status_root_path}/intention/stationary/data:intention_stationary_data", 60 "${device_status_root_path}/utils/common:devicestatus_util", 61 "${device_status_root_path}/utils/ipc:devicestatus_ipc", 62 ] 63 64 external_deps = [ 65 "access_token:libaccesstoken_sdk", 66 "graphic_2d:librender_service_client", 67 "hilog:libhilog", 68 "hisysevent:libhisysevent", 69 "hitrace:hitrace_meter", 70 "input:libmmi-client", 71 "window_manager:libdm", 72 ] 73 74 subsystem_name = "${device_status_subsystem_name}" 75 part_name = "${device_status_part_name}" 76} 77