# Copyright (c) 2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//build/test.gni") import("//foundation/multimodalinput/input/multimodalinput_mini.gni") module_output_path = "multimodalinput/mmi_unit_out" ohos_unittest("InputNativeTest") { module_out_path = module_output_path include_dirs = [ "${mmi_path}/interfaces/kits/c/input" ] if (input_ext_feature_anco) { include_dirs += [ "${mmi_path}/interfaces/native/innerkits/event/include" ] } sources = [ "${mmi_path}/test/unittest/interfaces/kits/input_native_test.cpp" ] configs = [ "${mmi_path}:coverage_flags", "${mmi_path}/frameworks/proxy:libmmi_test_util", ] deps = [ "${mmi_path}/frameworks/native/input:oh_input_manager", "${mmi_path}/frameworks/proxy:libmmi-client", "${mmi_path}/util:libmmi-util", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest_main", ] external_deps = [ "c_utils:utils", "hilog:libhilog", "image_framework:image_native", ] if (input_ext_feature_anco && input_feature_product == "__other") { external_deps += [ "drivers_interface_rtos_extra:libconsumerir_proxy_1.0", "hdf_core:libhdi", ] } subsystem_name = "multimodalinput" part_name = "input" }