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