# 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/ohos_var.gni") import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") import("//drivers/peripheral/audio/audio.gni") import("//test/xts/tools/build/suite.gni") import("//build/ohos.gni") import("//build/test.gni") import("//drivers/peripheral/camera/hal/camera.gni") module_output_path = "hats/camera" config("cameraTest_config") { visibility = [ ":*" ] } ohos_moduletest_suite("HatsHdfCameraPipelineTest") { testonly = true module_out_path = module_output_path sources = [ "./pipeline_core_test.cpp", "./stream_pipeline_builder_test.cpp", "./stream_pipeline_dispatcher_test.cpp", "./stream_pipeline_strategy_test.cpp", ] include_dirs = [ "//third_party/googletest/googletest/include/gtest", "$camera_path/../interfaces/include", "$camera_path/../interfaces/hdi_ipc", "$camera_path/../interfaces/hdi_ipc/utils/include", "$camera_path/../interfaces/hdi_ipc/callback/host/include", "$camera_path/../interfaces/hdi_ipc/callback/device/include", "$camera_path/../interfaces/hdi_ipc/callback/operator/include", "$camera_path/include", "$camera_path/hdi_impl", "$camera_path/hdi_impl/include", "$camera_path/hdi_impl/include/camera_host", "$camera_path/hdi_impl/include/camera_device", "$camera_path/hdi_impl/include/stream_operator", "$camera_path/hdi_impl/include/offline_stream_operator", "$camera_path/hdi_impl/src/stream_operator/stream_tunnel/standard", "$camera_path/device_manager/include/", "$camera_path/device_manager/include/v4l2", "$camera_path/utils/event", "//drivers/peripheral/camera/interfaces/metadata/include", "//drivers/peripheral/display/interfaces/include", "//drivers/peripheral/display/hdi_service/gralloc/include", "//drivers/peripheral/base", "//base/hiviewdfx/interfaces/innerkits/libhilog/include", #producer "//commonlibrary/c_utils/base/include", "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include", "$camera_path/pipeline_core/utils", "$camera_path/pipeline_core/include", "$camera_path/pipeline_core/host_stream/include", "$camera_path/pipeline_core/nodes/include", "$camera_path/pipeline_core/nodes/src/node_base", "$camera_path/pipeline_core/nodes/src/dummy_node", "$camera_path/pipeline_core/pipeline_impl/src/strategy/config", "$camera_path/pipeline_core/pipeline_impl/include", "$camera_path/pipeline_core/pipeline_impl/src", "$camera_path/pipeline_core/pipeline_impl/src/builder", "$camera_path/pipeline_core/pipeline_impl/src/dispatcher", "$camera_path/pipeline_core/pipeline_impl/src/parser", "$camera_path/pipeline_core/pipeline_impl/src/strategy", "$camera_path/pipeline_core/ipp/include", # hcs parser "//system/core/include/cutils", ] deps = [ "$camera_path/buffer_manager:camera_buffer_manager", "$camera_path/device_manager:camera_device_manager", "$camera_path/hdi_impl:camera_host_service_1.0", "$camera_path/pipeline_core:camera_pipeline_core", "//drivers/interface/camera/v1_0:libcamera_proxy_1.0", "//drivers/peripheral/camera/interfaces/metadata:metadata", "//third_party/googletest:gmock", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest", "//third_party/googletest:gtest_main", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "graphic_chipsetsdk:surface", "hdf_core:libhdf_host", "hdf_core:libhdf_ipc_adapter", "hdf_core:libhdf_utils", "hdf_core:libhdi", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_single", ] } else { external_deps = [ "hilog:libhilog" ] } external_deps += [ "init:libbegetutil", "ipc:ipc_single", "samgr:samgr_proxy", ] public_configs = [ ":cameraTest_config" ] subsystem_name = "hdf" part_name = "drivers_peripheral_camera" }