xts_hats/hdf/input/hdi_passthrough_additional/BUILD.gn
wangchao582 96cf70fd99 Add hdi test suites -input
Signed-off-by: wangchao582 <wangchao582@huawei.com>
2023-12-14 17:43:32 +08:00

60 lines
1.7 KiB
Plaintext

# Copyright (c) 2023 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.
base_root = "../../../../../../"
import("//build/ohos.gni")
import("//build/test.gni")
import("//test/xts/tools/build/suite.gni")
import("$base_root/drivers/peripheral/input/input.gni")
module_output_path = "hats/input"
ohos_moduletest_suite("HatsHdfInputPassthroughAdditionalTest") {
module_out_path = module_output_path
configs = [ ":hdf_input_through_additional" ]
sources = [
"hdf_input_hdi_test.cpp",
"input_callback_impl.cpp",
]
cflags = [
"-Wall",
"-Wextra",
"-Werror",
"-fsigned-char",
"-fno-common",
"-fno-strict-aliasing",
]
if (is_standard_system) {
external_deps = [
"c_utils:utils",
"drivers_interface_input:libinput_proxy_1.0",
"hdf_core:libhdf_utils",
"hilog:libhilog",
"ipc:ipc_single",
]
} else {
external_deps = [ "hilog:libhilog" ]
}
external_deps += [ "ipc:ipc_single" ]
}
config("hdf_input_through_additional") {
include_dirs = [
"$base_root/drivers/peripheral/input/interfaces/include",
"$base_root./drivers/peripheral/input/interfaces",
"//third_party/FreeBSD/sys/dev/evdev",
"$base_root/drivers/peripheral/input/hdi_service",
]
}