1# Copyright (c) 2023 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:$base_root/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 14base_root = "../../../../../" 15import("$base_root/test/xts/tools/build/suite.gni") 16module_output_path = "hats/distributedhardware" 17 18config("dcamera_hdf_demo_config") { 19 visibility = [ ":*" ] 20} 21 22ohos_moduletest_suite("HatsdisCameraProviderCaseAdditionalTest") { 23 module_out_path = module_output_path 24 install_enable = true 25 sources = [ "dcameraprovidercase.cpp" ] 26 27 include_dirs = [ 28 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr", 29 "$base_root/drivers/peripheral/distributed_camera/hdi_service/include/dcamera_provider", 30 "$base_root/third_party/googletest/googletest/include", 31 "$base_root/base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter", 32 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcamera", 33 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcameracontrol", 34 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcameradata", 35 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcamerahdf", 36 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcamerainterface", 37 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcamerastate", 38 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/include", 39 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/base/include", 40 "$base_root/foundation/distributedhardware/distributed_camera/services/channel/include", 41 "$base_root/foundation/distributedhardware/distributed_camera/services/data_process/include/pipeline", 42 "$base_root/foundation/distributedhardware/distributed_camera/services/data_process/include/interfaces", 43 "$base_root/foundation/distributedhardware/distributed_camera/services/data_process/include/utils", 44 "$base_root/foundation/distributedhardware/distributed_camera/services/data_process/include/eventbus", 45 "$base_root/foundation/distributedhardware/distributed_camera/common/include/constants", 46 "$base_root/foundation/distributedhardware/distributed_camera/common/include/utils", 47 48 "$base_root/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_source/include", 49 "$base_root/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_source/include/callback", 50 "$base_root/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_sink/include", 51 52 "$base_root/foundation/distributedhardware/distributed_hardware_fwk/utils/include", 53 "$base_root/foundation/distributedhardware/distributed_hardware_fwk/utils/include/eventbus", 54 "$base_root/foundation/distributedhardware/distributed_hardware_fwk/common/utils/include", 55 "$base_root/commonlibrary/c_utils/base/include", 56 "$base_root/utils/system/safwk/native/include", 57 "$base_root/third_party/jsoncpp/include", 58 "$base_root/drivers/peripheral/base/", 59 "$base_root/third_party/cJSON", 60 ] 61 62 deps = [ 63 "$base_root/drivers/interface/camera/v1_0:libcamera_stub_1.0", 64 "$base_root/drivers/peripheral/distributed_camera/hdi_service:libdistributed_camera_hdf_service_1.1", 65 "$base_root/foundation/distributedhardware/distributed_camera/common:distributed_camera_utils", 66 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice:distributed_camera_source", 67 "$base_root/foundation/distributedhardware/distributed_camera/services/channel:distributed_camera_channel", 68 "$base_root/third_party/cJSON:cjson", 69 "$base_root/third_party/googletest:gtest_main", 70 "$base_root/third_party/jsoncpp:jsoncpp", 71 ] 72 73 cflags = [ 74 "-fPIC", 75 "-Wall", 76 ] 77 78 external_deps = [ 79 "c_utils:utils", 80 "drivers_interface_camera:libcamera_proxy_1.0", 81 "drivers_interface_distributed_camera:libdistributed_camera_provider_proxy_1.1", 82 "dsoftbus:softbus_client", 83 "eventhandler:libeventhandler", 84 "hilog:libhilog", 85 "ipc:ipc_core", 86 ] 87 88 defines = [ 89 "HI_LOG_ENABLE", 90 "DH_LOG_TAG=\"DCameraHdfCase\"", 91 "LOG_DOMAIN=0xD004100", 92 ] 93 94 cflags_cc = cflags 95 subsystem_name = "hdf" 96 part_name = "drivers_peripheral_distributed_camera" 97} 98