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 14base_root = "../../../../../../" 15import("//build/ohos_var.gni") 16import("//test/xts/tools/build/suite.gni") 17import("$base_root/drivers/peripheral/input/input.gni") 18 19base_root = "../../../../../../" 20module_output_path = "hats/input" 21ohos_moduletest_suite("HatsHdfInputTest") { 22 module_out_path = module_output_path 23 24 configs = [ ":hdf_input" ] 25 cflags_cc = [ 26 "-Wall", 27 "-Wextra", 28 "-Werror", 29 "-Wno-error", 30 "-DGST_DISABLE_DEPRECATED", 31 "-DHAVE_CONFIG_H", 32 "-DCOLORSPACE=\"videoconvert\"", 33 "-fno-strict-aliasing", 34 "-Wno-sign-compare", 35 "-Wno-builtin-requires-header", 36 "-WnO-unused-variable", 37 "-Wno-unused-label", 38 "-Wno-implicit-function-declaration", 39 "-Wno-format", 40 "-Wno-int32_t-conversion", 41 "-Wno-unused-function", 42 "-Wno-thread-sagety-attributes", 43 "-Wno-inconsistent-missing-override", 44 "-fno-rtti", 45 "-fno-exceptions", 46 "-ffunction-sections", 47 "-fdata-sections", 48 ] 49 if (drivers_peripheral_input_feature_model) { 50 deps = [ "$base_root/drivers/peripheral/input/hal:hdi_input" ] 51 sources = [ "./common/hdi_input_test.cpp" ] 52 } 53 if (drivers_peripheral_input_feature_udriver) { 54 deps = [ "$base_root/drivers/peripheral/input/udriver:hdi_input_udriver" ] 55 sources = [ "./hdi_input/hdi_input_test.cpp" ] 56 } 57 if (is_standard_system) { 58 external_deps = [ 59 "c_utils:utils", 60 "hdf_core:libhdf_utils", 61 "hilog:libhilog", 62 ] 63 } else { 64 external_deps = [ "hilog:libhilog" ] 65 } 66 subsystem_name = "xts" 67 part_name = "hats" 68} 69config("hdf_input") { 70 include_dirs = [ 71 "//third_party/FreeBSD/sys/dev/evdev", 72 "$base_root/drivers/peripheral/input/interfaces/include", 73 ] 74 include_dirs += [ "$base_root/drivers/peripheral/input/hal/include" ] 75 include_dirs += [ "$base_root/drivers/peripheral/input/udriver/include" ] 76} 77