# Copyright (c) 2022 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/test.gni") hdi_input_base_path = "./../../.." module_output_path = "drivers_peripheral_input/input" config("camhdi_impl_utest_config") { visibility = [ ":*" ] cflags_cc = [ "-Wall", "-Wextra", "-Werror", "-Wno-error", "-DGST_DISABLE_DEPRECATED", "-DHAVE_CONFIG_H", "-DCOLORSPACE=\"videoconvert\"", "-fno-strict-aliasing", "-Wno-sign-compare", "-Wno-builtin-requires-header", "-Wno-unused-variable", "-Wno-unused-label", "-Wno-implicit-function-declaration", "-Wno-format", "-Wno-int-conversion", "-Wno-unused-function", "-Wno-thread-safety-attributes", "-Wno-inconsistent-missing-override", "-fno-rtti", "-fno-exceptions", "-ffunction-sections", "-fdata-sections", ] } ohos_unittest("input_udriver_unittest") { testonly = true module_out_path = module_output_path install_enable = true sources = [ "./hdi_input_test.cpp" ] include_dirs = [ "$hdi_input_base_path/interfaces/include", "$hdi_input_base_path/utils/include", "$hdi_input_base_path/udriver/include", ] deps = [ "$hdi_input_base_path/udriver:hdi_input_udriver" ] if (is_standard_system) { external_deps = [ "c_utils:utils", "hdf_core:libhdf_ipc_adapter", "hdf_core:libhdf_utils", "hdf_core:libhdi", "hilog:libhilog", ] } else { external_deps = [ "hilog:libhilog" ] } public_configs = [ ":camhdi_impl_utest_config" ] }