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/boomerang/include", 22 "${device_status_root_path}/services/native/include", 23 ] 24} 25 26ohos_source_set("intention_stationary_server") { 27 sanitize = { 28 integer_overflow = true 29 ubsan = true 30 boundary_sanitize = true 31 cfi = true 32 cfi_cross_dso = true 33 debug = false 34 } 35 36 branch_protector_ret = "pac_ret" 37 38 include_dirs = [ 39 "include", 40 "${device_status_root_path}/interfaces/innerkits/include", 41 "${device_status_root_path}/libs/interface", 42 "${device_status_root_path}/services/boomerang/include", 43 "${device_status_root_path}/services/native/include", 44 ] 45 46 sources = [ 47 "${device_status_root_path}/services/native/src/devicestatus_dumper.cpp", 48 "${device_status_root_path}/services/native/src/devicestatus_hisysevent.cpp", 49 "${device_status_root_path}/services/native/src/devicestatus_manager.cpp", 50 "${device_status_root_path}/services/native/src/devicestatus_msdp_client_impl.cpp", 51 "${device_status_root_path}/services/native/src/devicestatus_napi_manager.cpp", 52 "src/stationary_server.cpp", 53 "src/sensor_manager.cpp", 54 ] 55 56 public_configs = [ ":intention_stationary_server_public_config" ] 57 58 defines = device_status_default_defines 59 60 deps = [ 61 "${device_status_root_path}/intention/prototype:intention_prototype", 62 "${device_status_root_path}/intention/stationary/data:intention_stationary_data", 63 "${device_status_root_path}/utils/common:devicestatus_util", 64 "${device_status_root_path}/utils/ipc:devicestatus_ipc", 65 ] 66 67 external_deps = [ 68 "access_token:libaccesstoken_sdk", 69 "ace_engine:ui_session", 70 "bundle_framework:appexecfwk_core", 71 "eventhandler:libeventhandler", 72 "graphic_2d:librender_service_client", 73 "hilog:libhilog", 74 "input:libmmi-client", 75 "os_account:os_account_innerkits", 76 "samgr:samgr_proxy", 77 "window_manager:libdm", 78 ] 79 80 if (device_status_hisysevent_enable) { 81 external_deps += [ "hisysevent:libhisysevent" ] 82 defines += [ "MSDP_HIVIEWDFX_HISYSEVENT_ENABLE" ] 83 } 84 85 if (device_status_hitrace_enable) { 86 external_deps += [ "hitrace:hitrace_meter" ] 87 defines += [ "MSDP_HIVIEWDFX_HITRACE_ENABLE" ] 88 } 89 90 if (device_status_motion_enable) { 91 defines += [ "MOTION_ENABLE" ] 92 external_deps += [ "motion:motion_interface_native" ] 93 } 94 95 if (device_status_sensor_enable) { 96 defines += [ "DEVICE_STATUS_SENSOR_ENABLE" ] 97 external_deps += [ "sensor:sensor_interface_native" ] 98 } 99 100 if (device_status_boomerang_onestep) { 101 defines += [ "BOOMERANG_ONESTEP" ] 102 external_deps += [ 103 "accessibility:accessibility_common", 104 "accessibility:accessibleability", 105 "accessibility:accessibilityclient", 106 "window_manager:libwm", 107 ] 108 sources += [ 109 "${device_status_root_path}/services/boomerang/src/accessibility_manager.cpp", 110 ] 111 } 112 113 if (device_status_boomerang_support_hdr) { 114 defines += [ "BOOMERANG_SUPPORT_HDR" ] 115 external_deps += [ "image_framework:image_utils" ] 116 } 117 118 subsystem_name = "${device_status_subsystem_name}" 119 part_name = "${device_status_part_name}" 120} 121