1# Copyright (c) 2021-2022 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("//build/ohos.gni") 15import("../../multimodalinput_mini.gni") 16mmi_connect_manager_path = "${mmi_path}/service/connect_manager" 17 18config("mmi_connect_manager_config") { 19 include_dirs = [ 20 "${mmi_path}/interfaces/native/innerkits/common/include", 21 "${mmi_path}/interfaces/native/innerkits/event/include", 22 "${mmi_path}/interfaces/native/innerkits/proxy/include", 23 "${mmi_path}/util/common/include", 24 "${mmi_path}/util/network/include", 25 "${mmi_path}/util/socket/include", 26 "${mmi_path}/service/delegate_task/include", 27 "${mmi_path}/service/filter/include", 28 "${mmi_path}/service/message_handle/include", 29 "${mmi_path}/service/permission_helper/include", 30 "${mmi_path}/frameworks/proxy/event_handler/include", 31 "${mmi_connect_manager_path}/include", 32 ] 33} 34 35ohos_source_set("mmi_connect_manager_service") { 36 part_name = "input" 37 subsystem_name = "multimodalinput" 38 sources = [ 39 "${mmi_connect_manager_path}/src/multimodal_input_connect_def_parcel.cpp", 40 "${mmi_connect_manager_path}/src/multimodal_input_connect_stub.cpp", 41 ] 42 43 configs = [ ":mmi_connect_manager_config" ] 44 45 external_deps = [ 46 "access_token:libaccesstoken_sdk", 47 "hilog:libhilog", 48 "image_framework:image_native", 49 "ipc:ipc_single", 50 "safwk:system_ability_fwk", 51 "samgr:samgr_proxy", 52 ] 53} 54 55ohos_source_set("mmi_connect_manager_proxy") { 56 part_name = "input" 57 subsystem_name = "multimodalinput" 58 sources = [ 59 "${mmi_connect_manager_path}/src/multimodal_input_connect_death_recipient.cpp", 60 "${mmi_connect_manager_path}/src/multimodal_input_connect_def_parcel.cpp", 61 "${mmi_connect_manager_path}/src/multimodal_input_connect_manager.cpp", 62 "${mmi_connect_manager_path}/src/multimodal_input_connect_proxy.cpp", 63 ] 64 65 configs = [ ":mmi_connect_manager_config" ] 66 67 external_deps = [ 68 "hilog:libhilog", 69 "image_framework:image_native", 70 "ipc:ipc_single", 71 "safwk:system_ability_fwk", 72 "samgr:samgr_proxy", 73 ] 74} 75