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("//build/ohos.gni")
15import("//build/test.gni")
16import("//foundation/multimodalinput/input/multimodalinput_mini.gni")
17
18module_output_path = "multimodalinput/mmi_unit_out"
19
20ohos_unittest("InputNativeTest") {
21  module_out_path = module_output_path
22  include_dirs = [ "${mmi_path}/interfaces/kits/c/input" ]
23
24  if (input_ext_feature_anco) {
25    include_dirs += [ "${mmi_path}/interfaces/native/innerkits/event/include" ]
26  }
27
28  sources =
29      [ "${mmi_path}/test/unittest/interfaces/kits/input_native_test.cpp" ]
30
31  configs = [
32    "${mmi_path}:coverage_flags",
33    "${mmi_path}/frameworks/proxy:libmmi_test_util",
34  ]
35
36  deps = [
37    "${mmi_path}/frameworks/native/input:oh_input_manager",
38    "${mmi_path}/frameworks/proxy:libmmi-client",
39    "${mmi_path}/util:libmmi-util",
40    "//third_party/googletest:gmock_main",
41    "//third_party/googletest:gtest_main",
42  ]
43
44  external_deps = [
45    "c_utils:utils",
46    "hilog:libhilog",
47    "image_framework:image_native",
48  ]
49
50  if (input_ext_feature_anco && input_feature_product == "__other") {
51    external_deps += [
52      "drivers_interface_rtos_extra:libconsumerir_proxy_1.0",
53      "hdf_core:libhdi",
54    ]
55  }
56
57  subsystem_name = "multimodalinput"
58  part_name = "input"
59}
60