1# Copyright (c) 2023 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_service_config") { 17 include_dirs = [ 18 "include", 19 "${device_status_root_path}/intention/cooperate/server/include", 20 "${device_status_root_path}/intention/drag/server/include", 21 "${device_status_root_path}/intention/stationary/server/include", 22 "${device_status_root_path}/interfaces/innerkits/interaction/include", 23 ] 24} 25 26ohos_shared_library("intention_service") { 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 defines = device_status_default_defines 39 40 include_dirs = [ 41 "include", 42 "${device_status_root_path}/interfaces/innerkits/interaction/include", 43 ] 44 45 sources = [ "src/intention_service.cpp" ] 46 47 public_configs = [ ":intention_service_config" ] 48 49 deps = [ 50 "${device_status_root_path}/intention/cooperate/server:intention_cooperate_server", 51 "${device_status_root_path}/intention/drag/server:intention_drag_server", 52 "${device_status_root_path}/intention/ipc/socket:intention_socket_server", 53 "${device_status_root_path}/intention/ipc/tunnel:intention_tunnel_server", 54 "${device_status_root_path}/intention/prototype:intention_prototype", 55 "${device_status_root_path}/intention/stationary/server:intention_stationary_server", 56 "${device_status_root_path}/utils/common:devicestatus_util", 57 "${device_status_root_path}/utils/ipc:devicestatus_ipc", 58 ] 59 60 external_deps = [ 61 "access_token:libaccesstoken_sdk", 62 "graphic_2d:librender_service_client", 63 "hilog:libhilog", 64 "image_framework:image_native", 65 "input:libmmi-client", 66 ] 67 68 subsystem_name = "${device_status_subsystem_name}" 69 part_name = "${device_status_part_name}" 70} 71