10704ebd2Sopenharmony_ci# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
20704ebd2Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
30704ebd2Sopenharmony_ci# you may not use this file except in compliance with the License.
40704ebd2Sopenharmony_ci# You may obtain a copy of the License at
50704ebd2Sopenharmony_ci#
60704ebd2Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
70704ebd2Sopenharmony_ci#
80704ebd2Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
90704ebd2Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
100704ebd2Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110704ebd2Sopenharmony_ci# See the License for the specific language governing permissions and
120704ebd2Sopenharmony_ci# limitations under the License.
130704ebd2Sopenharmony_ci
140704ebd2Sopenharmony_cibase_root = "../../../../../"
150704ebd2Sopenharmony_ciimport("//test/xts/tools/build/suite.gni")
160704ebd2Sopenharmony_ci
170704ebd2Sopenharmony_cimodule_out_path = "dcts/distributedhardware"
180704ebd2Sopenharmony_ci
190704ebd2Sopenharmony_ciohos_moduletest_suite("DctsSubDistributedInputTest") {
200704ebd2Sopenharmony_ci  module_out_path = module_out_path
210704ebd2Sopenharmony_ci  include_dirs = [
220704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/include",
230704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/inner_kits/include",
240704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/inner_kits/src",
250704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/include",
260704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src",
270704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/services/include",
280704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/frameworks/include",
290704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/common/include",
300704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/common/log/include",
310704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/common/utils/include",
320704ebd2Sopenharmony_ci    "$base_root/third_party/json/include",
330704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/utils/include/include",
340704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/include",
350704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/include/ipc",
360704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/utils/include",
370704ebd2Sopenharmony_ci  ]
380704ebd2Sopenharmony_ci
390704ebd2Sopenharmony_ci  sources = [
400704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/common/include/white_list_util.cpp",
410704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/inner_kits/src/distributed_input_kit.cpp",
420704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/inner_kits/test/unittest/mock/mock_distributed_input_client.cpp",
430704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/add_white_list_infos_call_back_proxy.cpp",
440704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/add_white_list_infos_call_back_stub.cpp",
450704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/del_white_list_infos_call_back_proxy.cpp",
460704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/del_white_list_infos_call_back_stub.cpp",
470704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/distributed_input_source_proxy.cpp",
480704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/get_sink_screen_infos_call_back_proxy.cpp",
490704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/get_sink_screen_infos_call_back_stub.cpp",
500704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/input_node_listener_proxy.cpp",
510704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/input_node_listener_stub.cpp",
520704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/prepare_d_input_call_back_proxy.cpp",
530704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/prepare_d_input_call_back_stub.cpp",
540704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/register_d_input_call_back_proxy.cpp",
550704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/register_d_input_call_back_stub.cpp",
560704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/sharing_dhid_listener_proxy.cpp",
570704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/sharing_dhid_listener_stub.cpp",
580704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/simulation_event_listener_proxy.cpp",
590704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/simulation_event_listener_stub.cpp",
600704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/start_d_input_call_back_proxy.cpp",
610704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/start_d_input_call_back_stub.cpp",
620704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/start_stop_d_inputs_call_back_proxy.cpp",
630704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/start_stop_d_inputs_call_back_stub.cpp",
640704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/start_stop_result_call_back_proxy.cpp",
650704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/start_stop_result_call_back_stub.cpp",
660704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/stop_d_input_call_back_proxy.cpp",
670704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/stop_d_input_call_back_stub.cpp",
680704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/unprepare_d_input_call_back_proxy.cpp",
690704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/unprepare_d_input_call_back_stub.cpp",
700704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/unregister_d_input_call_back_proxy.cpp",
710704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_input/interfaces/ipc/src/unregister_d_input_call_back_stub.cpp",
720704ebd2Sopenharmony_ci    "distributed_input_test.cpp",
730704ebd2Sopenharmony_ci  ]
740704ebd2Sopenharmony_ci
750704ebd2Sopenharmony_ci  cflags = [
760704ebd2Sopenharmony_ci    "-Wall",
770704ebd2Sopenharmony_ci    "-Werror",
780704ebd2Sopenharmony_ci    "-g3",
790704ebd2Sopenharmony_ci    "-Dprivate=public",
800704ebd2Sopenharmony_ci    "-Dprotected=public",
810704ebd2Sopenharmony_ci  ]
820704ebd2Sopenharmony_ci
830704ebd2Sopenharmony_ci  defines = [
840704ebd2Sopenharmony_ci    "HI_LOG_ENABLE",
850704ebd2Sopenharmony_ci    "DH_LOG_TAG=\"DctsSubDistributedInputTest\"",
860704ebd2Sopenharmony_ci    "LOG_DOMAIN=0xD004100",
870704ebd2Sopenharmony_ci  ]
880704ebd2Sopenharmony_ci
890704ebd2Sopenharmony_ci  deps = [ "$base_root/foundation/distributedhardware/distributed_input/utils:libdinput_utils" ]
900704ebd2Sopenharmony_ci
910704ebd2Sopenharmony_ci  external_deps = [
920704ebd2Sopenharmony_ci    "c_utils:utils",
930704ebd2Sopenharmony_ci    "config_policy:configpolicy_util",
940704ebd2Sopenharmony_ci    "dsoftbus:softbus_client",
950704ebd2Sopenharmony_ci    "eventhandler:libeventhandler",
960704ebd2Sopenharmony_ci    "hilog:libhilog",
970704ebd2Sopenharmony_ci    "ipc:ipc_core",
980704ebd2Sopenharmony_ci    "safwk:system_ability_fwk",
990704ebd2Sopenharmony_ci    "samgr:samgr_proxy",
1000704ebd2Sopenharmony_ci  ]
1010704ebd2Sopenharmony_ci
1020704ebd2Sopenharmony_ci  cflags_cc = [ "-DHILOG_ENABLE" ]
1030704ebd2Sopenharmony_ci  subsystem_name = "distributedhardware"
1040704ebd2Sopenharmony_ci  part_name = "distributed_input"
1050704ebd2Sopenharmony_ci}
106