# 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/ohos_var.gni") import("//build/test.gni") import("//test/xts/tools/build/suite.gni") import("$base_root/drivers/peripheral/camera/camera.gni") module_output_path = "hats/camera" ohos_moduletest_suite("HatsHdfCameraMgv1AdditionalTest") { #testonly = true configs = [ ":hdf_cameramgv1_additional" ] module_out_path = module_output_path sources = [ "./src/camera_hdi_uttest_v1_1.cpp", "./src/hdi_common_v1_1.cpp", ] deps = [ "//third_party/googletest:gmock_main", "//third_party/googletest:gtest", "//third_party/googletest:gtest_main", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "hdf_core:libhdf_host", "hdf_core:libhdf_ipc_adapter", "hdf_core:libhdf_utils", "hdf_core:libhdi", "hilog:libhilog", "ipc:ipc_single", ] } else { external_deps = [ "hilog:libhilog" ] } external_deps += [ "drivers_interface_camera:libbuffer_producer_sequenceable_1.0", "drivers_interface_camera:libcamera_proxy_1.1", "drivers_interface_camera:metadata", "drivers_interface_display:libdisplay_composer_proxy_1.0", "graphic_surface:surface", "samgr:samgr_proxy", ] # public_configs = [ ":cameraTest_config" ] subsystem_name = "xts" part_name = "hats" } config("hdf_cameramgv1_additional") { include_dirs = [ # common includes "./include", "//third_party/googletest/googletest/include", "$camera_path/../../../display/interfaces/include", "$camera_path/../../../display/hdi_service/gralloc/include", "$camera_path/../../interfaces/include", "$camera_path/include", ] }