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 "${device_status_root_path}/services/native/src/devicestatus_napi_manager.cpp", 50 "src/stationary_server.cpp", 51 ] 52 53 public_configs = [ ":intention_stationary_server_public_config" ] 54 55 defines = device_status_default_defines 56 57 deps = [ 58 "${device_status_root_path}/intention/data:intention_data", 59 "${device_status_root_path}/intention/prototype:intention_prototype", 60 "${device_status_root_path}/intention/stationary/data:intention_stationary_data", 61 "${device_status_root_path}/utils/common:devicestatus_util", 62 "${device_status_root_path}/utils/ipc:devicestatus_ipc", 63 ] 64 65 external_deps = [ 66 "access_token:libaccesstoken_sdk", 67 "graphic_2d:librender_service_client", 68 "hilog:libhilog", 69 "input:libmmi-client", 70 "window_manager:libdm", 71 ] 72 73 if (device_status_hisysevent_enable) { 74 external_deps += [ "hisysevent:libhisysevent" ] 75 defines += [ "MSDP_HIVIEWDFX_HISYSEVENT_ENABLE" ] 76 } 77 78 if (device_status_hitrace_enable) { 79 external_deps += [ "hitrace:hitrace_meter" ] 80 defines += [ "MSDP_HIVIEWDFX_HITRACE_ENABLE" ] 81 } 82 83 if (device_status_motion_enable) { 84 defines += [ "MOTION_ENABLE" ] 85 external_deps += [ "motion:motion_interface_native" ] 86 } 87 88 subsystem_name = "${device_status_subsystem_name}" 89 part_name = "${device_status_part_name}" 90} 91