1# Copyright (c) 2022-2024 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/test.gni") 15import( 16 "//foundation/distributedhardware/distributed_camera/distributedcamera.gni") 17 18module_out_path = "distributed_camera/dcamera_data_process_test" 19 20config("module_private_config") { 21 visibility = [ ":*" ] 22 include_dirs = [ 23 "${services_path}/data_process/include/interfaces", 24 "${services_path}/data_process/include/eventbus", 25 "${services_path}/data_process/include/pipeline", 26 "${services_path}/data_process/include/utils", 27 "${services_path}/data_process/include/pipeline_node/multimedia_codec/decoder", 28 "${services_path}/data_process/include/pipeline_node/multimedia_codec/encoder", 29 "${services_path}/data_process/include/pipeline_node/fpscontroller", 30 "${services_path}/data_process/include/pipeline_node/scale_conversion", 31 "${services_path}/cameraservice/sinkservice/include/distributedcameramgr", 32 "${common_path}/include/constants", 33 "${common_path}/include/utils", 34 "${innerkits_path}/native_cpp/camera_source/include", 35 "${feeding_smoother_path}/base", 36 "${services_path}/cameraservice/base/include", 37 ] 38} 39 40ohos_unittest("DCameraDataProcessPipelineTest") { 41 module_out_path = module_out_path 42 43 cflags = [ 44 "-g", 45 "-O0", 46 "-Wno-unused-variable", 47 "-fno-omit-frame-pointer", 48 "-Dprivate=public", 49 "-Dprotected=public", 50 ] 51 52 sources = [ 53 "dcamera_pipeline_sink_test.cpp", 54 "dcamera_pipeline_source_test.cpp", 55 ] 56 57 configs = [ ":module_private_config" ] 58 59 deps = [ 60 "${common_path}:distributed_camera_utils", 61 "${services_path}/data_process:distributed_camera_data_process", 62 ] 63 64 external_deps = [ 65 "av_codec:av_codec_client", 66 "c_utils:utils", 67 "distributed_hardware_fwk:distributedhardwareutils", 68 "eventhandler:libeventhandler", 69 "ffmpeg:libohosffmpeg", 70 "graphic_surface:surface", 71 "hilog:libhilog", 72 "hitrace:hitrace_meter", 73 ] 74 75 defines = [ 76 "HI_LOG_ENABLE", 77 "DH_LOG_TAG=\"DCameraDataProcessPipelineTest\"", 78 "LOG_DOMAIN=0xD004150", 79 ] 80} 81 82group("dcamera_pipeline_test") { 83 testonly = true 84 deps = [ ":DCameraDataProcessPipelineTest" ] 85} 86